UbixOS
2.0
|
#include <sys/types.h>
Go to the source code of this file.
Data Structures | |
struct | confadd |
struct | pciConfig |
Macros | |
#define | countof(a) (sizeof(a) / sizeof(a[0])) |
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) |
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().