Lines Matching refs:bus

8 static void pci_checkBus(uint8_t bus);
40 uint32_t pci_read_config(uchar bus, uchar slot, uchar func, uchar offset) in pci_read_config() argument
42 uint lbus = (uint)bus; in pci_read_config()
64 uint pci_write_config(uchar bus, uchar slot, uchar func, uchar offset, uint32_t data) in pci_write_config() argument
66 uint lbus = (uint)bus; in pci_write_config()
88 …_device_header(struct pci_device_structure_general_device_t *header, uchar bus, uchar slot, uchar … in pci_read_general_device_header() argument
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()
127 …idge_header(struct pci_device_structure_pci_to_pci_bridge_t *header, uchar bus, uchar slot, uchar … in pci_read_pci_to_pci_bridge_header() argument
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()
181 …_header(struct pci_device_structure_pci_to_cardbus_bridge_t *header, uchar bus, uchar slot, uchar … in pci_read_pci_to_cardbus_bridge_header() argument
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()
230 void *pci_read_header(int *type, uchar bus, uchar slot, uchar func, bool add_to_list) in pci_read_header() argument
233 common_header->bus = bus; in pci_read_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()
273 …pci_read_general_device_header((struct pci_device_structure_general_device_t *)ret, bus, slot, fun… in pci_read_header()
282 …_pci_to_pci_bridge_header((struct pci_device_structure_pci_to_pci_bridge_t *)ret, bus, slot, func); in pci_read_header()
291 …cardbus_bridge_header((struct pci_device_structure_pci_to_cardbus_bridge_t *)ret, bus, slot, func); in pci_read_header()
308 static void pci_checkFunction(uint8_t bus, uint8_t device, uint8_t function) in pci_checkFunction() argument
311 …struct pci_device_structure_header_t *header = pci_read_header(&header_type, bus, device, function… in pci_checkFunction()
328 static int pci_checkDevice(uint8_t bus, uint8_t device) in pci_checkDevice() argument
332 …struct pci_device_structure_header_t *header = pci_read_header(&header_type, bus, device, 0, false… in pci_checkDevice()
351 pci_checkFunction(bus, device, 0); in pci_checkDevice()
361 …tmp_header = (struct pci_device_structure_header_t *)pci_read_header(&header_type, bus, device, fu… in pci_checkDevice()
364 pci_checkFunction(bus, device, func); in pci_checkDevice()
375 static void pci_checkBus(uint8_t bus) in pci_checkBus() argument
379 pci_checkDevice(bus, device); in pci_checkBus()
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()