pintos/src/devices/pci_lookup.h File Reference

Go to the source code of this file.

Data Structures

struct  pci_class

Defines

#define pci_lookup_vendor(x)   "Unknown Vendor"
#define pci_lookup_device(x, y)   "Unknown Device"
#define PCI_CLASS_TABLE_SZ   (sizeof(pci_class_table) / sizeof(struct pci_class))

Functions

const char * pci_lookup_class (uint8_t major, uint8_t minor, uint8_t iface)

Variables

struct pci_class pci_class_table []


Define Documentation

#define PCI_CLASS_TABLE_SZ   (sizeof(pci_class_table) / sizeof(struct pci_class))

Definition at line 116 of file pci_lookup.h.

Referenced by pci_lookup_class().

#define pci_lookup_device ( x,
 )     "Unknown Device"

Definition at line 82 of file pci_lookup.h.

Referenced by pci_print_dev_info().

#define pci_lookup_vendor ( x   )     "Unknown Vendor"

Definition at line 81 of file pci_lookup.h.

Referenced by pci_print_dev_info().


Function Documentation

const char * pci_lookup_class ( uint8_t  major,
uint8_t  minor,
uint8_t  iface 
)

Definition at line 120 of file pci_lookup.h.

References pci_class::name, and PCI_CLASS_TABLE_SZ.

Referenced by pci_print_dev_info().


Variable Documentation

Initial value:

 {
  {0, 0, 0, "Pre-PCI 2.0 Non-VGA Device"},
  {0, 1, 0, "Pre-PCI 2.0 VGA Device"},
  {1, 0, 0, "SCSI Controller"},
  {1, 1, 0, "IDE Controller"},
  {1, 2, 0, "Floppy Disk Controller"},
  {2, 0, 0, "Ethernet"},
  {3, 0, 0, "VGA Controller"},
  {3, 1, 0, "XGA Controller"},
  {5, 0, 0, "Memory Controller - RAM"},
  {5, 1, 0, "Memory Controller - Flash"},
  {6, 0, 0, "PCI Host"},
  {6, 1, 0, "PCI-ISA Bridge"},
  {6, 2, 0, "PCI-EISA Bridge"},
  {6, 4, 0, "PCI-PCI Bridge"},
  {6, 5, 0, "PCI-PCMCIA Bridge"},
  {12, 0, 0, "Firewire Adapter"},
  {12, 3, 0, "USB 1.1 Controller (UHCI)"},
  {12, 3, 0x10, "USB 1.1 Controller (OHCI)"},
  {12, 3, 0x20, "USB 2.0 Controller (EHCI)"}
}

Definition at line 94 of file pci_lookup.h.


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6