pci.h

来自「ucos 在arca方舟芯片(mips)上的移植。」· C头文件 代码 · 共 28 行

H
28
字号
#define UCOS_PCI_IO_BASE   0xC0000000#define UCOS_PCI_MEM_BASE0 0xC8000000#define UCOS_PCI_MEM_BASE1 0xD0000000#define UCOS_PCI_MEM_BASE2 0xD8000000#define UCOS_PCI_RES_MEM_BASE   UCOS_PCI_MEM_BASE0#define UCOS_PCI_FB_MEM_BASE    UCOS_PCI_MEM_BASE1#define UCOS_PCI_ALLOC_MEM_BASE UCOS_PCI_MEM_BASE2#define UCOS_PCI_ALLOC_IO_BASE (UCOS_PCI_IO_BASE + 0x00010000)#define UCOS_PCI_SLV_BASE  0x10000000#ifndef UCOS_PCI_CFG_COMMAND_IO#define UCOS_PCI_CFG_COMMAND_IO                    0x0001#define UCOS_PCI_CFG_COMMAND_MEMORY                0x0002#define UCOS_PCI_CFG_COMMAND_MASTER                0x0004#endif /*  UCOS_PCI_CFG_COMMAND_IO  */#define __pci_config_write_byte(bus, devfn, offset, data)#define __pci_config_write_word(bus, devfn, offset, data)#define __pci_config_write_dword(bus, devfn, offset, data)#define __pci_config_read_byte(bus, devfn, offset, data)#define __pci_config_read_word(bus, devfn, offset, data)#define __pci_config_read_dword(bus, devfn, offset, data)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?