KolibriOS kernel
pci32.inc File Reference

Functions

void pci_enum ()
 
void get_pcidev_list ()
 Export for drivers. Just returns the pointer to the pci-devices list. More...
 
void pci_read32 (dword bus, dword devfn, dword reg)
 
void pci_read16 (dword bus, dword devfn, dword reg)
 
void pci_read8 (dword bus, dword devfn, dword reg)
 
void pci_write8 (dword bus, dword devfn, dword reg, dword val)
 
void pci_write16 (dword bus, dword devfn, dword reg, dword val)
 
void pci_write32 (dword bus, dword devfn, dword reg, dword val)
 

Variables

label f62call
 
label pci_api
 
label pci_api_drv
 
label pci_fn_0
 
label pci_fn_1
 
label pci_fn_2
 
label pci_service_not_supported
 
label pci_make_config_cmd
 
label pci_read_reg
 
label pci_write_reg
 
label pci_write_reg_2
 
label pci_mmio_init
 *************************************************************************** Function pci_mmio_init More...
 
label pci_mmio_map
 
label pci_mmio_unmap
 
label pci_emu_dat
 VendID (2), DevID (2), Revision = 0 (1), Class Code (3), FNum (1), Bus (1) More...
 
label sys_pcibios
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= More...
 
db _devfn
 
db _bus
 

Function Documentation

◆ get_pcidev_list()

void get_pcidev_list ( )

Export for drivers. Just returns the pointer to the pci-devices list.

Source
bus/pci/pci32.inc:675

◆ pci_enum()

void pci_enum ( )

◆ pci_read16()

void pci_read16 ( dword  bus,
dword  devfn,
dword  reg 
)

◆ pci_read32()

void pci_read32 ( dword  bus,
dword  devfn,
dword  reg 
)

◆ pci_read8()

void pci_read8 ( dword  bus,
dword  devfn,
dword  reg 
)

◆ pci_write16()

void pci_write16 ( dword  bus,
dword  devfn,
dword  reg,
dword  val 
)

◆ pci_write32()

void pci_write32 ( dword  bus,
dword  devfn,
dword  reg,
dword  val 
)

◆ pci_write8()

void pci_write8 ( dword  bus,
dword  devfn,
dword  reg,
dword  val 
)

Variable Documentation

◆ _bus

db _bus
Initial value
?
Source
bus/pci/pci32.inc:616

◆ _devfn

db _devfn
Initial value
?
Source
bus/pci/pci32.inc:615

◆ f62call

label f62call

◆ pci_api

label pci_api

◆ pci_api_drv

label pci_api_drv

◆ pci_emu_dat

label pci_emu_dat

VendID (2), DevID (2), Revision = 0 (1), Class Code (3), FNum (1), Bus (1)

Source
bus/pci/pci32.inc:496

◆ pci_fn_0

label pci_fn_0

◆ pci_fn_1

label pci_fn_1

◆ pci_fn_2

label pci_fn_2

◆ pci_make_config_cmd

label pci_make_config_cmd

◆ pci_mmio_init

label pci_mmio_init

*************************************************************************** Function pci_mmio_init

Description IN: bx = device's PCI bus address (bbbbbbbbdddddfff) Returns eax = user heap space available (bytes) Error codes eax = -1 : PCI user access blocked, eax = -2 : device not registered for uMMIO service eax = -3 : user heap initialization failure

Source
bus/pci/pci32.inc:369

◆ pci_mmio_map

label pci_mmio_map

◆ pci_mmio_unmap

label pci_mmio_unmap

◆ pci_read_reg

label pci_read_reg

◆ pci_service_not_supported

label pci_service_not_supported

◆ pci_write_reg

label pci_write_reg

◆ pci_write_reg_2

label pci_write_reg_2

◆ sys_pcibios

label sys_pcibios

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Source
bus/pci/pci32.inc:501