From ac059d0ac2e2e8bceaf698c10a93fc7868e9e293 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 1 Jul 1999 15:48:11 +0000 Subject: add .h file --- isys/pci/pciprobe.c | 11 +++-------- isys/pci/pciprobe.h | 9 +++++++++ 2 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 isys/pci/pciprobe.h diff --git a/isys/pci/pciprobe.c b/isys/pci/pciprobe.c index 0a85285ad..d83e06c26 100644 --- a/isys/pci/pciprobe.c +++ b/isys/pci/pciprobe.c @@ -9,12 +9,7 @@ #include - -struct pciDevice { - unsigned int vendor, device, type; - char * driver; - char * desc; -}; +#include "pciprobe.h" struct pciDevice * pciDeviceList = NULL; static int numPciDevices = 0; @@ -33,7 +28,7 @@ static int devCmp(const void * a, const void * b) { return y; } -int buildDriverList(const char * fn) { +int probePciReadDrivers(const char * fn) { int fd; struct stat sb; char * buf; @@ -168,7 +163,7 @@ int main(int argc, char **argv) { struct pciDevice **list,*dev; int x=0; - if (buildDriverList("pcitable")) { + if (probePciReadDrivers("pcitable")) { perror("error reading pci table"); exit(0); } diff --git a/isys/pci/pciprobe.h b/isys/pci/pciprobe.h new file mode 100644 index 000000000..51f52a05e --- /dev/null +++ b/isys/pci/pciprobe.h @@ -0,0 +1,9 @@ + +struct pciDevice { + unsigned int vendor, device, type; + char * driver; + char * desc; +}; + +int probePciReadDrivers(const char *fn); +struct pciDevice **probePci(unsigned int type, int all); -- cgit