X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/7bb29d226d3215ce817bc123225adf48183923c1..8ed5907015b127d1312c13216a8e4875c962da8e:/pci/pci.c diff --git a/pci/pci.c b/pci/pci.c index c7385de..997ebda 100644 --- a/pci/pci.c +++ b/pci/pci.c @@ -1,3 +1,13 @@ +/* pci.c + * General-purpose PCI probe routines + * NetWatch system management mode administration console + * + * Copyright (c) 2008 Jacob Potter and Joshua Wise. All rights reserved. + * This program is free software; you can redistribute and/or modify it under + * the terms found in the file LICENSE in the root of this source tree. + * + */ + #include #include @@ -109,13 +119,13 @@ static int _probefn(pci_dev_t *dev, void *d) for (i = 0; i < driver->id_count; i++) if ((dev->vid == driver->ids[i].vid) && (dev->did == driver->ids[i].did)) { - outputf("Probing PCI device: %s (%s)", driver->ids[i].name ? driver->ids[i].name : driver->name, driver->ids[i].friendlyname ? driver->ids[i].friendlyname : "no friendly name"); + outputf("Probing PCI device: %s", driver->ids[i].name ? driver->ids[i].name : driver->name); return driver->probe(dev, d); } return 0; } -int pci_probe_driver(pci_driver_t driver) +int pci_probe_driver(pci_driver_t *driver) { - return pci_probe(_probefn, &driver); + return pci_probe(_probefn, driver); }