home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1999 May / pcp151c.iso / misc / src / install / pci-probing / pciprobe.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-06  |  889 b   |  26 lines

  1. #ifndef PCI_PROBE_H
  2. #define PCI_PROBE_H
  3.  
  4.  
  5. /* these are the types of devices we can probe */
  6. enum pciClass {PCI_ETHERNET, PCI_SCSI, PCI_VIDEO, PCI_OTHER, PCI_UNSET};
  7.  
  8. /* these define's define what the kernel message is for each class */
  9. #define CLASS_ETHERNET    "Ethernet controller"
  10. #define CLASS_SCSI        "SCSI storage controller"
  11. #define CLASS_VIDEO       "VGA compatible"
  12. #define CLASS_VIDEO_OTHER "Display controller"
  13. #define CLASS_NONE        "Non-VGA device"
  14.  
  15. struct pciDevice {
  16.     enum pciClass      class;      /* type */
  17.     int                nhits;      /* number of matches in vendor/dev id db */
  18.     char              **name;      /* array of names of PCI cards - malloc! */
  19.     char            **module;      /* array of modules to try - malloc! */
  20. };
  21.  
  22. void pciFreeDevice( struct pciDevice *p );
  23. int pciProbeDevice(enum pciClass type, struct pciDevice ***devs);
  24.  
  25. #endif
  26.