Lines Matching refs:pci
104 dword offset = a->resources.pci.qoffset; in diva_4bri_set_addresses()
107 a->resources.pci.mem_type_id[MEM_TYPE_RAM] = 2; in diva_4bri_set_addresses()
108 a->resources.pci.mem_type_id[MEM_TYPE_ADDRESS] = 2; in diva_4bri_set_addresses()
109 a->resources.pci.mem_type_id[MEM_TYPE_CONTROL] = 2; in diva_4bri_set_addresses()
110 a->resources.pci.mem_type_id[MEM_TYPE_RESET] = 0; in diva_4bri_set_addresses()
111 a->resources.pci.mem_type_id[MEM_TYPE_CTLREG] = 3; in diva_4bri_set_addresses()
112 a->resources.pci.mem_type_id[MEM_TYPE_PROM] = 0; in diva_4bri_set_addresses()
117 a->xdi_adapter.Address = a->resources.pci.addr[2]; /* BAR2 SDRAM */ in diva_4bri_set_addresses()
120 a->xdi_adapter.Control = a->resources.pci.addr[2]; /* BAR2 SDRAM */ in diva_4bri_set_addresses()
122 a->xdi_adapter.ram = a->resources.pci.addr[2]; /* BAR2 SDRAM */ in diva_4bri_set_addresses()
125 a->xdi_adapter.reset = a->resources.pci.addr[0]; /* BAR0 CONFIG */ in diva_4bri_set_addresses()
129 a->xdi_adapter.ctlReg = a->resources.pci.addr[3]; /* BAR3 CNTRL */ in diva_4bri_set_addresses()
190 a->resources.pci.bus, a->resources.pci.func)) in diva_4bri_init_card()
197 a->resources.pci.bar[bar] = in diva_4bri_init_card()
198 divasa_get_pci_bar(a->resources.pci.bus, in diva_4bri_init_card()
199 a->resources.pci.func, bar, in diva_4bri_init_card()
200 a->resources.pci.hdev); in diva_4bri_init_card()
201 if (!a->resources.pci.bar[bar] in diva_4bri_init_card()
202 || (a->resources.pci.bar[bar] == 0xFFFFFFF0)) { in diva_4bri_init_card()
205 a->resources.pci.bar[bar])) in diva_4bri_init_card()
209 a->resources.pci.irq = in diva_4bri_init_card()
210 (byte) divasa_get_pci_irq(a->resources.pci.bus, in diva_4bri_init_card()
211 a->resources.pci.func, in diva_4bri_init_card()
212 a->resources.pci.hdev); in diva_4bri_init_card()
213 if (!a->resources.pci.irq) { in diva_4bri_init_card()
218 a->xdi_adapter.sdram_bar = a->resources.pci.bar[2]; in diva_4bri_init_card()
225 a->resources.pci.addr[bar] = in diva_4bri_init_card()
226 divasa_remap_pci_bar(a, bar, a->resources.pci.bar[bar], in diva_4bri_init_card()
228 if (!a->resources.pci.addr[bar]) { in diva_4bri_init_card()
241 if (diva_os_register_io_port(a, 1, a->resources.pci.bar[1], in diva_4bri_init_card()
248 a->resources.pci.addr[1] = in diva_4bri_init_card()
249 (void *) (unsigned long) a->resources.pci.bar[1]; in diva_4bri_init_card()
400 diva_current->resources.pci.qoffset = (a->xdi_adapter.MemorySize >> factor); in diva_4bri_init_card()
406 a->xdi_adapter.cfg = (void *) (unsigned long) a->resources.pci.bar[0]; /* BAR0 CONFIG */ in diva_4bri_init_card()
407 a->xdi_adapter.port = (void *) (unsigned long) a->resources.pci.bar[1]; /* BAR1 */ in diva_4bri_init_card()
408 a->xdi_adapter.ctlReg = (void *) (unsigned long) a->resources.pci.bar[3]; /* BAR3 CNTRL */ in diva_4bri_init_card()
433 a->xdi_adapter.irq_info.irq_nr = a->resources.pci.irq; in diva_4bri_init_card()
459 a->resources.pci.irq, a->xdi_adapter.serialNo); in diva_4bri_init_card()
498 if (a->resources.pci.bar[bar] in diva_4bri_cleanup_adapter()
499 && a->resources.pci.addr[bar]) { in diva_4bri_cleanup_adapter()
500 divasa_unmap_pci_bar(a->resources.pci.addr[bar]); in diva_4bri_cleanup_adapter()
501 a->resources.pci.bar[bar] = 0; in diva_4bri_cleanup_adapter()
502 a->resources.pci.addr[bar] = NULL; in diva_4bri_cleanup_adapter()
510 if (a->resources.pci.bar[1] && a->resources.pci.addr[1]) { in diva_4bri_cleanup_adapter()
511 diva_os_register_io_port(a, 0, a->resources.pci.bar[1], in diva_4bri_cleanup_adapter()
517 a->resources.pci.bar[1] = 0; in diva_4bri_cleanup_adapter()
518 a->resources.pci.addr[1] = NULL; in diva_4bri_cleanup_adapter()
537 Bus = a->resources.pci.bus; in _4bri_get_serial_number()
538 Slot = a->resources.pci.func; in _4bri_get_serial_number()
539 hdev = a->resources.pci.hdev; in _4bri_get_serial_number()
566 serNo = a->resources.pci.bar[1] & 0xffff0000; in _4bri_get_serial_number()
567 serNo |= a->resources.pci.bus << 8; in _4bri_get_serial_number()
568 serNo |= a->resources.pci.func; in _4bri_get_serial_number()
676 *data++ = a->resources.pci.bar[i]; in diva_4bri_cmd_card_proc()
678 *data++ = (dword) a->resources.pci.irq; in diva_4bri_cmd_card_proc()