Documentation ¶
Index ¶
- Constants
- Variables
- func Breakpcitag(b Pcitag_t) (int, int, int)
- func Pci_bar_mem(tag Pcitag_t, barn int) (uintptr, int)
- func Pci_dump()
- func Pci_read(tag Pcitag_t, reg, width int) int
- func Pci_register(vendor, dev int, attach func(int, int, Pcitag_t))
- func Pci_register_intel(dev int, attach func(int, int, Pcitag_t))
- func Pci_write(tag Pcitag_t, reg, val int)
- func Pcibus_attach()
- type Disk_i
- type Idebuf_t
- type Pcitag_t
Constants ¶
View Source
const ( VENDOR int = 0x0 DEVICE = 0x02 STATUS = 0x06 CLASS = 0x0b SUBCLASS = 0x0a HEADER = 0x0e BAR5 = 0x24 )
View Source
const ( PCI_VEND_INTEL = 0x8086 // PCI_DEV_PIIX3 = 0x7000 // PCI_DEV_3400 = 0x3b20 PCI_DEV_X540T = 0x1528 PCI_DEV_AHCI_QEMU = 0x2922 PCI_DEV_AHCI_BHW = 0x3b22 PCI_DEV_AHCI_BHWX = 0xa102 //PCI_DEV_AHCI_BHW2 = 0x8d02 // (0:31:2) PCI_DEV_AHCI_BHW2 = 0x8d62 // (0:17:4) )
View Source
const BSIZE = 4096
Variables ¶
View Source
var INT_DISK int = -1
View Source
var IRQ_DISK int = -1
Functions ¶
func Pci_bar_mem ¶
some memory bars include size in the low bits; this method doesn't mask such bits out.
func Pcibus_attach ¶
func Pcibus_attach()
Types ¶
Click to show internal directories.
Click to hide internal directories.