Searched refs:gPci (Results 1 - 25 of 28) sorted by relevance

12

/haiku-fatelf/src/add-ons/kernel/drivers/dvb/cx23882/
H A Ddriver.h30 extern pci_module_info *gPci;
H A Ddriver.c53 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 Ddvb_interface.c92 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);
99 gPci->write_pci_config(device->pci_info->bus, device->pci_info->device, device->pci_info->function, PCI_latency, 1, PCI_LATENCY);
102 device->irq = gPci->read_pci_config(device->pci_info->bus, device->pci_info->device, device->pci_info->function, PCI_interrupt_line, 1);
110 val = gPci->read_pci_config(device->pci_info->bus, device->pci_info->device, device->pci_info->function, 0x10, 4);
H A Dcx23882.c367 host_vendor = gPci->read_pci_config(0, 0, 0, PCI_vendor_id, 2);
/haiku-fatelf/src/add-ons/kernel/drivers/network/wb840/
H A Ddevice.h16 # 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 Ddriver.h14 extern pci_module_info *gPci;
H A Ddriver.c21 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 Ddevice.c70 data->wb_cachesize = gPci->read_pci_config(data->pciInfo->bus,
/haiku-fatelf/src/add-ons/kernel/drivers/network/ipro1000/
H A Ddriver.h28 extern pci_module_info *gPci;
H A Ddriver.c33 pci_module_info *gPci; variable
123 if (get_module(B_PCI_MODULE_NAME, (module_info **)&gPci) < B_OK) {
128 for (cards = 0, index = 0; gPci->get_nth_pci_info(index++, item) == B_OK; ) {
H A Ddevice.h25 extern pci_module_info *gPci;
H A Dif_em_osdep.h96 gPci->read_pci_config(dev->pciBus, dev->pciDev, dev->pciFunc, offset, size)
99 gPci->write_pci_config(dev->pciBus, dev->pciDev, dev->pciFunc, offset, size, value)
102 gPci->read_pci_config(dev->pciBus, dev->pciDev, dev->pciFunc, PCI_vendor_id, 2)
105 gPci->read_pci_config(dev->pciBus, dev->pciDev, dev->pciFunc, PCI_device_id, 2)
108 gPci->read_io_32(port)
111 gPci->write_io_32(port, value)
/haiku-fatelf/src/add-ons/kernel/drivers/network/rtl8169/
H A Ddriver.h28 extern pci_module_info *gPci;
H A Ddriver.c47 pci_module_info *gPci; variable
67 for (; gPci->get_nth_pci_info(index, info) == B_OK; index++) {
98 if (get_module(B_PCI_MODULE_NAME, (module_info **)&gPci) < B_OK)
127 if (get_module(B_PCI_MODULE_NAME, (module_info **)&gPci) < B_OK) {
H A Ddevice.h32 extern pci_module_info *gPci;
/haiku-fatelf/src/add-ons/kernel/drivers/audio/hda/
H A Ddriver.cpp17 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++) {
49 if (get_module(B_PCI_MODULE_NAME, (module_info**)&gPci) != B_OK)
54 for (i = 0; gPci->get_nth_pci_info(i, &info) == B_OK
59 if ((*gPci->reserve_device)(info.bus, info.device, info.function, "hda",
96 (*gPci->unreserve_device)(gCards[i].pci_info.bus, gCards[i].pci_info.device,
H A Dhda_controller.cpp107 uint32 originalValue = (gPci->read_pci_config)(controller->pci_info.bus,
109 (gPci->write_pci_config)(controller->pci_info.bus,
868 cmd = (gPci->read_pci_config)(controller->pci_info.bus,
883 (gPci->write_pci_config)(controller->pci_info.bus,
H A Ddriver.h336 extern pci_module_info* gPci;
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/geode/
H A Ddriver.cpp17 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 Ddriver.h45 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 Dgeode_controller.cpp399 cmd = (gPci->read_pci_config)(controller->pci_info.bus,
402 (gPci->write_pci_config)(controller->pci_info.bus,
/haiku-fatelf/src/add-ons/kernel/bus_managers/firewire/
H A Dfwohci_pci.cpp67 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 Dfirewire_module.cpp35 pci_module_info *gPci; variable
154 if ((status = get_module(B_PCI_MODULE_NAME,(module_info **)&gPci)) != B_OK) {
170 for (i = 0, found = 0; (status = gPci->get_nth_pci_info(i, info)) == B_OK; i++) {
/haiku-fatelf/src/libs/compat/freebsd_network/
H A Ddevice.h45 extern pci_module_info *gPci;
H A Ddriver.c98 if (get_module(B_PCI_MODULE_NAME, (module_info **)&gPci) < B_OK)
123 for (i = 0; gPci->get_nth_pci_info(i, info) == B_OK; i++) {
155 status = get_module(B_PCI_MODULE_NAME, (module_info **)&gPci);
202 for (; gPci->get_nth_pci_info(i, info) == B_OK; i++) {

Completed in 126 milliseconds

12