UbixOS  2.0
pci.c File Reference
#include <pci/pci.h>
#include <sys/io.h>
#include <lib/kprintf.h>
Include dependency graph for pci.c:

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 []
 

Function Documentation

◆ pci_init()

◆ pciProbe()

◆ pciRead()

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().

Here is the call graph for this function:

◆ pciWrite()

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().

Here is the call graph for this function:

Variable Documentation

◆ baseClass

uInt8 baseClass

Definition at line 34 of file pci.c.

◆ interface

uInt8 interface

Definition at line 36 of file pci.c.

◆ name

const char* name

◆ pciClasses

const { ... } pciClasses[]

Referenced by pci_init().

◆ subClass

uInt8 subClass

Definition at line 35 of file pci.c.