Skip to content

Commit

Permalink
Add PNP info to PCI attachment of cy driver
Browse files Browse the repository at this point in the history
Reviewed by: imp, chuck
Submitted by: Lakhan Shiva Kamireddy <lakhanshiva@gmail.com>
Sponsored by: Google, Inc. (GSoC 2018)
Pull Request: #5
  • Loading branch information
lakhanshiva authored and bsdimp committed Jul 8, 2018
1 parent dfb1841 commit 7428215
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sys/dev/cy/cy_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ __FBSDID("$FreeBSD$");
static int cy_pci_attach(device_t dev);
static int cy_pci_probe(device_t dev);

static struct cy_dev {
uint32_t deviceid;
const char *description;
} cy_devs[] = {
{0x0100120e, "Cyclades Cyclom-Y Serial Adapter"},
{0x0101120e, "Cyclades Cyclom-Y Serial Adapter"},
{ 0, NULL },
};

static device_method_t cy_pci_methods[] = {
/* Device interface. */
DEVMETHOD(device_probe, cy_pci_probe),
Expand All @@ -85,6 +94,8 @@ static driver_t cy_pci_driver = {
};

DRIVER_MODULE(cy, pci, cy_pci_driver, cy_devclass, 0, 0);
MODULE_PNP_INFO("U32:device", pci, cy, cy_devs,
sizeof(cy_devs[0]), nitems(cy_devs) - 1);
MODULE_DEPEND(cy, pci, 1, 1, 1);

static int
Expand Down

0 comments on commit 7428215

Please sign in to comment.