Skip to content

Commit

Permalink
Add PNP info to the PCI attahement of the puc driver.
Browse files Browse the repository at this point in the history
Adjust sys/conf/files and sys/modules/puc/Makefile to omit
pucdata.c now tht it's included by puc_pci.c.

Submitted by: Lakhan Shiva Kamireddy (with build fixes by me)
Pull Request: #136


git-svn-id: svn+ssh://svn.freebsd.org/base/head@332652 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  • Loading branch information
imp committed Apr 17, 2018
1 parent 4d6c556 commit f013091
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion sys/conf/files
Original file line number Diff line number Diff line change
Expand Up @@ -2771,7 +2771,6 @@ dev/puc/puc.c optional puc
dev/puc/puc_cfg.c optional puc
dev/puc/puc_pccard.c optional puc pccard
dev/puc/puc_pci.c optional puc pci
dev/puc/pucdata.c optional puc pci
dev/quicc/quicc_core.c optional quicc
dev/ral/rt2560.c optional ral
dev/ral/rt2661.c optional ral
Expand Down
3 changes: 3 additions & 0 deletions sys/dev/puc/puc_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ __FBSDID("$FreeBSD$");

#include <dev/puc/puc_cfg.h>
#include <dev/puc/puc_bfe.h>
#include <dev/puc/pucdata.c>

static int puc_msi_disable;
SYSCTL_INT(_hw_puc, OID_AUTO, msi_disable, CTLFLAG_RDTUN,
Expand Down Expand Up @@ -198,3 +199,5 @@ static driver_t puc_pci_driver = {
};

DRIVER_MODULE(puc, pci, puc_pci_driver, puc_devclass, 0, 0);
MODULE_PNP_INFO("U16:vendor;U16:device;U16:#;U16:#;D:#", pci, puc,
puc_pci_devices, sizeof(puc_pci_devices[0]), nitems(puc_pci_devices) - 1);
2 changes: 1 addition & 1 deletion sys/modules/puc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.PATH: ${SRCTOP}/sys/dev/puc

KMOD= puc
SRCS= puc.c puc_cfg.c puc_pci.c puc_pccard.c pucdata.c
SRCS= puc.c puc_cfg.c puc_pci.c puc_pccard.c
SRCS+= bus_if.h device_if.h serdev_if.c serdev_if.h \
card_if.h pci_if.h

Expand Down

0 comments on commit f013091

Please sign in to comment.