diff options
author | Bill Nottingham <notting@redhat.com> | 1999-07-01 15:48:11 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-07-01 15:48:11 +0000 |
commit | ac059d0ac2e2e8bceaf698c10a93fc7868e9e293 (patch) | |
tree | 4a26ac9a8cc4c65ab559baa8e2fcbb70c7b59b36 | |
parent | 350484a64a9f23af061cf361b250073573fa2b1c (diff) | |
download | anaconda-ac059d0ac2e2e8bceaf698c10a93fc7868e9e293.tar.gz anaconda-ac059d0ac2e2e8bceaf698c10a93fc7868e9e293.tar.xz anaconda-ac059d0ac2e2e8bceaf698c10a93fc7868e9e293.zip |
add .h file
-rw-r--r-- | isys/pci/pciprobe.c | 11 | ||||
-rw-r--r-- | isys/pci/pciprobe.h | 9 |
2 files changed, 12 insertions, 8 deletions
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 <pci/pci.h> - -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); |