/haiku/src/add-ons/kernel/drivers/dvb/cx23882/ |
H A D | driver.h | 30 extern pci_module_info *gPci;
|
H A D | driver.c | 53 pci_module_info * gPci; variable 101 if (get_module(B_PCI_MODULE_NAME, (module_info **)&gPci) < B_OK) 103 for (res = B_ERROR, i = 0; gPci->get_nth_pci_info(i, &info) == B_OK; i++) { 110 gPci = NULL; 134 if (get_module(B_PCI_MODULE_NAME, (module_info **)&gPci) < B_OK) { 139 for (cards = 0, index = 0; gPci->get_nth_pci_info(index++, item) == B_OK; ) {
|
H A D | dvb_interface.c | 92 val = gPci->read_pci_config(device->pci_info->bus, device->pci_info->device, device->pci_info->function, PCI_command, 2); 94 gPci->write_pci_config(device->pci_info->bus, device->pci_info->device, device->pci_info->function, PCI_command, 2, val); 97 val = gPci->read_pci_config(device->pci_info->bus, device->pci_info->device, device->pci_info->function, PCI_latency, 1); 100 gPci->write_pci_config(device->pci_info->bus, device->pci_info->device, device->pci_info->function, PCI_latency, 1, PCI_LATENCY); 103 device->irq = gPci->read_pci_config(device->pci_info->bus, device->pci_info->device, device->pci_info->function, PCI_interrupt_line, 1); 111 val = gPci->read_pci_config(device->pci_info->bus, device->pci_info->device, device->pci_info->function, 0x10, 4);
|
H A D | cx23882.c | 369 host_vendor = gPci->read_pci_config(0, 0, 0, PCI_vendor_id, 2);
|
/haiku/src/add-ons/kernel/drivers/network/ether/wb840/ |
H A D | device.h | 16 # define write8(address,value) (*gPci->write_io_8)((address),(value)) 17 # define write16(address,value) (*gPci->write_io_16)((address),(value)) 18 # define write32(address,value) (*gPci->write_io_32)((address),(value)) 19 # define read8(address) ((*gPci->read_io_8)(address)) 20 # define read16(address) ((*gPci->read_io_16)(address)) 21 # define read32(address) ((*gPci->read_io_32)(address)) 31 extern pci_module_info* gPci;
|
H A D | driver.h | 14 extern pci_module_info *gPci;
|
H A D | driver.c | 21 pci_module_info* gPci; variable 59 status = get_module(B_PCI_MODULE_NAME, (module_info**)&gPci); 69 while (gPci->get_nth_pci_info(index, item) == B_OK) { 71 gPci->write_pci_config(item->bus, item->device, item->function, 72 PCI_command, 2, PCI_command_master | gPci->read_pci_config(
|
H A D | device.c | 66 data->wb_cachesize = gPci->read_pci_config(data->pciInfo->bus,
|
/haiku/src/add-ons/kernel/drivers/network/ether/sis19x/ |
H A D | glue.c | 30 extern pci_module_info *gPci; 79 for (i = 0; B_OK == (*gPci->get_nth_pci_info)(i, &pciInfo); i++) { 88 uint32 reg = gPci->read_pci_config(pciInfo.bus, 91 gPci->write_pci_config(pciInfo.bus, 94 reg = gPci->read_pci_config(pciInfo.bus, 99 gPci->write_io_8(0x78, 0x09 + i); 100 dest[i] = gPci->read_io_8(0x79); 104 gPci->write_io_8(0x78, 0x12); 105 if ((gPci->read_io_8(0x79) & 0x80) != 0) 109 gPci [all...] |
/haiku/src/add-ons/kernel/drivers/audio/ac97/geode/ |
H A D | driver.cpp | 17 pci_module_info* gPci; variable 26 if (get_module(B_PCI_MODULE_NAME, (module_info**)&gPci) != B_OK) 29 for (i = 0; gPci->get_nth_pci_info(i, &info) == B_OK; i++) { 51 if (get_module(B_PCI_MODULE_NAME, (module_info**)&gPci) != B_OK) 56 for (i = 0; gPci->get_nth_pci_info(i, &info) == B_OK
|
H A D | driver.h | 45 extern pci_module_info* gPci; 70 return gPci->read_io_8(nabmbar + reg); 75 return gPci->read_io_16(nabmbar + reg); 80 return gPci->read_io_32(nabmbar + reg); 85 gPci->write_io_8(nabmbar + reg, value); 90 gPci->write_io_16(nabmbar + reg, value); 95 gPci->write_io_32(nabmbar + reg, value);
|
H A D | geode_controller.cpp | 400 cmd = (gPci->read_pci_config)(controller->pci_info.bus, 403 (gPci->write_pci_config)(controller->pci_info.bus,
|
/haiku/src/add-ons/kernel/bus_managers/firewire/ |
H A D | fwohci_pci.cpp | 67 extern pci_module_info *gPci; 149 val = gPci->read_pci_config(info->bus, info->device, info->function, 157 gPci->write_pci_config(info->bus, info->device, info->function, 168 latency = olatency = gPci->read_pci_config(info->bus, info->device, info->function, 173 gPci->write_pci_config(info->bus, info->device, info->function, 177 cache_line = ocache_line = gPci->read_pci_config(info->bus, info->device, 182 gPci->write_pci_config(info->bus, info->device, info->function, 189 sc->irq = gPci->read_pci_config(info->bus, info->device, info->function, 198 // val = gPci->read_pci_config(info->bus, info->device, info->function, 0x14, 4);
|
H A D | firewire_module.cpp | 35 pci_module_info *gPci; variable 153 if ((status = get_module(B_PCI_MODULE_NAME,(module_info **)&gPci)) != B_OK) { 169 for (i = 0, found = 0; (status = gPci->get_nth_pci_info(i, info)) == B_OK; i++) {
|
/haiku/src/libs/compat/freebsd_network/ |
H A D | pci.cpp | 25 pci_module_info *gPci; variable 31 if (gPci != NULL) 34 status_t status = get_module(B_PCI_MODULE_NAME, (module_info **)&gPci); 45 if (gPci != NULL) 65 uint32_t value = gPci->read_pci_config(info->bus, info->device, 79 gPci->write_pci_config(info->bus, info->device, info->function, offset, 235 status = gPci->find_pci_capability(info->bus, info->device, info->function, 249 status = gPci->find_pci_extended_capability(info->bus, info->device, info->function, 260 return gPci->get_msi_count(info->bus, info->device, info->function); 269 if (gPci [all...] |
H A D | device.h | 56 extern pci_module_info *gPci;
|
H A D | driver.c | 111 gPci->unreserve_device(sProbedDevices[p].pci_info.bus, 145 for (info = get_device_pci_info(root); gPci->get_nth_pci_info(i, info) == B_OK; i++) { 170 if (gPci->reserve_device(info->bus, info->device, info->function,
|
H A D | bus.cpp | 427 if (gPci->enable_msi(root_softc->pci_info.bus, root_softc->pci_info.device, 434 if (gPci->enable_msix(root_softc->pci_info.bus, root_softc->pci_info.device, 467 gPci->disable_msi(info->bus, info->device, info->function);
|
/haiku/src/add-ons/kernel/drivers/audio/hda/ |
H A D | driver.cpp | 17 pci_module_info* gPci; variable 58 if (get_module(B_PCI_MODULE_NAME, (module_info**)&gPci) != B_OK) 61 for (i = 0; gPci->get_nth_pci_info(i, &info) == B_OK; i++) { 82 if (get_module(B_PCI_MODULE_NAME, (module_info**)&gPci) != B_OK) 87 for (i = 0; gPci->get_nth_pci_info(i, &info) == B_OK 93 if ((*gPci->reserve_device)(info.bus, info.device, info.function, 128 (*gPci->unreserve_device)(gCards[i].pci_info.bus,
|
H A D | hda_controller.cpp | 223 uint32 originalValue = (gPci->read_pci_config)(controller->pci_info.bus, 225 (gPci->write_pci_config)(controller->pci_info.bus, 232 uint32 newValue = (gPci->read_pci_config)(controller->pci_info.bus, 1107 gPci->set_powerstate(pciInfo.bus, pciInfo.device, pciInfo.function, 1127 cmd = gPci->read_pci_config(pciInfo.bus, pciInfo.device, pciInfo.function, 1137 gPci->write_pci_config(pciInfo.bus, pciInfo.device, pciInfo.function, 1160 && gPci->get_msi_count(pciInfo.bus, pciInfo.device, 1164 if (gPci->configure_msi(pciInfo.bus, pciInfo.device, 1165 pciInfo.function, 1, &vector) == B_OK && gPci->enable_msi( 1183 cmd = gPci [all...] |
H A D | driver.h | 353 extern pci_module_info* gPci;
|