PCI总线的扫描流程
extern int pci_hose_read_config_word_via_dword(struct pci_controller *hose, pci_dev_t dev, int where, u16 *val); extern int pci_hose_write_config_byte_via_dword(struct pci_controller *hose, pci_dev_t dev, int where, u8 val); extern int pci_hose_write_config_word_via_dword(str...
读写PCI设备配置空间内容,长度分别为1个,2个,4个字节
if (pci_skip_dev(hose, dev)) continue;ret = pci_read_config_word(dev, PCI_VENDOR_ID, &vendor_id); if (ret) goto error; if ((vendor_id == 0xFFFF) || (vendor_id == 0x0000)) continue;if (!function) { pci_read_config_byte(dev, PCI_HEADER_TYPE,...
CONFIG_XLP_PCI_IO_BASE, CONFIG_XLP_PCI_IO_BASE, CONFIG_XLP_PCI_IO_SIZE, PCI_REGION_IO); hose-region_count = region_count; #endif pci_set_ops(hose, xlp8xx_pci_read_config_byte, xlp8xx_pci_read_config_word, xlp8xx_pci_read_config_dword, xlp8xx_pci_write_config_byte, xlp8xx_...
- 32-bit physical address for 386/486 guests - 36-bit physical address for PSE-36 enabled Pentium guest - 40-bit physical address for PAE enabled P6 or later guests - Update config.guess/config.sub scripts to May 2010 revisions. - Update Visual Studio 2008 project files in build/win32/...
pci_hose_read_config_byte(hose, PCI_BDF(0,17,0), PCI_HEADER_TYPE, &header_type); }#endifhose->last_busno = pci_hose_scan(hose); } 开发者ID:A1DEVS,项目名称:lenovo_a1_07_uboot,代码行数:86,代码来源:pci.c 示例8: ocxl_config_set_TL ...
*/pci_hose_read_config_dword(hose,PCI_BDF(uli_busno,0x1d,0), PCI_BASE_ADDRESS_1, &temp32);if(temp32 >= CONFIG_SYS_PCIE3_MEM_BUS) {void*p = pci_mem_to_virt(PCI_BDF(uli_busno,0x1d,0), temp32,4,0); debug(" uli1572 read to %p\n", p); ...
PCI总线的扫描流程
CONFIG_XLP_PCI_IO_BASE, CONFIG_XLP_PCI_IO_BASE, CONFIG_XLP_PCI_IO_SIZE, PCI_REGION_IO); hose-region_count = region_count; #endif pci_set_ops(hose, xlp8xx_pci_read_config_byte, xlp8xx_pci_read_config_word, xlp8xx_pci_read_config_dword, xlp8xx_pci_write_config_byte, xlp8xx_...