Lines Matching refs:pci_read_config

40 uint32_t pci_read_config(uchar bus, uchar slot, uchar func, uchar offset)  in pci_read_config()  function
91 header->BAR0 = pci_read_config(bus, slot, func, 0x10); in pci_read_general_device_header()
92 header->BAR1 = pci_read_config(bus, slot, func, 0x14); in pci_read_general_device_header()
93 header->BAR2 = pci_read_config(bus, slot, func, 0x18); in pci_read_general_device_header()
94 header->BAR3 = pci_read_config(bus, slot, func, 0x1c); in pci_read_general_device_header()
95 header->BAR4 = pci_read_config(bus, slot, func, 0x20); in pci_read_general_device_header()
96 header->BAR5 = pci_read_config(bus, slot, func, 0x24); in pci_read_general_device_header()
97 header->Cardbus_CIS_Pointer = pci_read_config(bus, slot, func, 0x28); in pci_read_general_device_header()
99 tmp32 = pci_read_config(bus, slot, func, 0x2c); in pci_read_general_device_header()
103 header->Expansion_ROM_base_address = pci_read_config(bus, slot, func, 0x30); in pci_read_general_device_header()
105 tmp32 = pci_read_config(bus, slot, func, 0x34); in pci_read_general_device_header()
110 header->reserved2 = pci_read_config(bus, slot, func, 0x38); in pci_read_general_device_header()
112 tmp32 = pci_read_config(bus, slot, func, 0x3c); in pci_read_general_device_header()
130 header->BAR0 = pci_read_config(bus, slot, func, 0x10); in pci_read_pci_to_pci_bridge_header()
131 header->BAR1 = pci_read_config(bus, slot, func, 0x14); in pci_read_pci_to_pci_bridge_header()
133 tmp32 = pci_read_config(bus, slot, func, 0x18); in pci_read_pci_to_pci_bridge_header()
140 tmp32 = pci_read_config(bus, slot, func, 0x1c); in pci_read_pci_to_pci_bridge_header()
145 tmp32 = pci_read_config(bus, slot, func, 0x20); in pci_read_pci_to_pci_bridge_header()
149 tmp32 = pci_read_config(bus, slot, func, 0x24); in pci_read_pci_to_pci_bridge_header()
153 header->Prefetchable_Base_Upper_32_Bits = pci_read_config(bus, slot, func, 0x28); in pci_read_pci_to_pci_bridge_header()
154 header->Prefetchable_Limit_Upper_32_Bits = pci_read_config(bus, slot, func, 0x2c); in pci_read_pci_to_pci_bridge_header()
156 tmp32 = pci_read_config(bus, slot, func, 0x30); in pci_read_pci_to_pci_bridge_header()
160 tmp32 = pci_read_config(bus, slot, func, 0x34); in pci_read_pci_to_pci_bridge_header()
165 header->Expansion_ROM_base_address = pci_read_config(bus, slot, func, 0x38); in pci_read_pci_to_pci_bridge_header()
167 tmp32 = pci_read_config(bus, slot, func, 0x3c); in pci_read_pci_to_pci_bridge_header()
185 header->CardBus_Socket_ExCa_base_address = pci_read_config(bus, slot, func, 0x10); in pci_read_pci_to_cardbus_bridge_header()
187 tmp32 = pci_read_config(bus, slot, func, 0x14); in pci_read_pci_to_cardbus_bridge_header()
192 tmp32 = pci_read_config(bus, slot, func, 0x18); in pci_read_pci_to_cardbus_bridge_header()
198 header->Memory_Base_Address0 = pci_read_config(bus, slot, func, 0x1c); in pci_read_pci_to_cardbus_bridge_header()
199 header->Memory_Limit0 = pci_read_config(bus, slot, func, 0x20); in pci_read_pci_to_cardbus_bridge_header()
200 header->Memory_Base_Address1 = pci_read_config(bus, slot, func, 0x24); in pci_read_pci_to_cardbus_bridge_header()
201 header->Memory_Limit1 = pci_read_config(bus, slot, func, 0x28); in pci_read_pci_to_cardbus_bridge_header()
203 header->IO_Base_Address0 = pci_read_config(bus, slot, func, 0x2c); in pci_read_pci_to_cardbus_bridge_header()
204 header->IO_Limit0 = pci_read_config(bus, slot, func, 0x30); in pci_read_pci_to_cardbus_bridge_header()
205 header->IO_Base_Address1 = pci_read_config(bus, slot, func, 0x34); in pci_read_pci_to_cardbus_bridge_header()
206 header->IO_Limit1 = pci_read_config(bus, slot, func, 0x38); in pci_read_pci_to_cardbus_bridge_header()
208 tmp32 = pci_read_config(bus, slot, func, 0x3c); in pci_read_pci_to_cardbus_bridge_header()
213 tmp32 = pci_read_config(bus, slot, func, 0x40); in pci_read_pci_to_cardbus_bridge_header()
217 header->PC_Card_legacy_mode_base_address_16_bit = pci_read_config(bus, slot, func, 0x44); in pci_read_pci_to_cardbus_bridge_header()
239 tmp32 = pci_read_config(bus, slot, func, 0x0); in pci_read_header()
243 tmp32 = pci_read_config(bus, slot, func, 0x4); in pci_read_header()
247 tmp32 = pci_read_config(bus, slot, func, 0x8); in pci_read_header()
253 tmp32 = pci_read_config(bus, slot, func, 0xc); in pci_read_header()
444 …uint32_t tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, ((struct pci_device_structure_gen… in pci_init()
528 tmp = pci_read_config(pci_dev->bus, pci_dev->device, pci_dev->func, cap_offset); in pci_enumerate_capability_list()