| UbixOS
    2.0
    | 

Go to the source code of this file.
| Functions | |
| int | pci_init () | 
| uint32_t | pciProbe (int bus, int dev, int func) | 
| uInt32 | pciRead (int bus, int dev, int func, int reg, int bytes) | 
| void | pciWrite (int bus, int dev, int func, int reg, uInt32 v, int bytes) | 
| Variables | |
| struct { | |
| uInt8 baseClass | |
| uInt8 interface | |
| const char * name | |
| uInt8 subClass | |
| } | pciClasses [] | 
| int pci_init | ( | ) | 
Definition at line 244 of file pci.c.
References pciConfig::bus, pciConfig::classCode, countof, pciConfig::dev, pciConfig::func, pciConfig::intLine, pciConfig::intPin, kprintf(), name, pciClasses, pciProbe(), pciConfig::progIf, pciConfig::subClass, and pciConfig::vendorID.

| uint32_t pciProbe | ( | int | bus, | 
| int | dev, | ||
| int | func | ||
| ) | 
Definition at line 139 of file pci.c.
References pciConfig::bar, pciConfig::bist, pciConfig::bus, pciConfig::cacheLineSize, pciConfig::classCode, pciConfig::command, pciConfig::dev, pciConfig::deviceID, pciConfig::func, pciConfig::headerType, pciConfig::intLine, pciConfig::intPin, kfree(), kmalloc(), kprintf(), pciConfig::latencyTimer, memset(), pciRead(), pciWrite(), pciConfig::progIf, pciConfig::status, pciConfig::subClass, and pciConfig::vendorID.
Referenced by pci_init().

| uInt32 pciRead | ( | int | bus, | 
| int | dev, | ||
| int | func, | ||
| int | reg, | ||
| int | bytes | ||
| ) | 
Definition at line 76 of file pci.c.
References confadd::bus, confadd::dev, confadd::enable, confadd::func, inportByte(), inportDWord(), inportWord(), outportDWord(), and confadd::reg.
Referenced by pciProbe().

| void pciWrite | ( | int | bus, | 
| int | dev, | ||
| int | func, | ||
| int | reg, | ||
| uInt32 | v, | ||
| int | bytes | ||
| ) | 
Definition at line 108 of file pci.c.
References confadd::bus, confadd::dev, confadd::enable, confadd::func, outportByte(), outportDWord(), outportWord(), and confadd::reg.
Referenced by pciProbe().

| const char* name | 
Definition at line 37 of file pci.c.
Referenced by _initHardDisk(), fatfs_format(), lookup(), netif_find(), pci_init(), sysMpiPostMessage(), and ubixfs_cacheNew().
| const { ... } pciClasses[] | 
Referenced by pci_init().