Searched defs:pci (Results 1 - 25 of 55) sorted by relevance

123

/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Ddev.h5 #include "pci.h"
42 struct pci_probe_state pci; member in union:probe_state
H A Dpnic.c20 #include "pci.h"
214 static int pnic_probe(struct dev *dev, struct pci_device *pci) argument
227 nic->ioaddr = pci->ioaddr & ~3;
228 nic->irqno = pci->irq;
230 adjust_pci_device(pci);
H A D3c595.c30 #include "pci.h"
470 static int t595_probe(struct dev *dev, struct pci_device *pci) argument
476 if (pci->ioaddr == 0)
479 eth_nic_base = pci->ioaddr;
482 nic->ioaddr = pci->ioaddr & ~3;
H A Dns8390.c32 #include "pci.h"
612 static int eth_probe (struct dev *dev, struct pci_device *pci) argument
620 unsigned short pci_probe_addrs[] = { pci->ioaddr, 0 };
H A Ddavicom.c45 #include "pci.h"
157 static int davicom_probe(struct dev *dev, struct pci_device *pci);
666 static int davicom_probe(struct dev *dev, struct pci_device *pci)
673 if (pci->ioaddr == 0)
676 vendor = pci->vendor;
677 dev_id = pci->dev_id;
678 ioaddr = pci->ioaddr & ~3;
681 nic->ioaddr = pci->ioaddr & ~3;
684 pcibios_write_config_dword(pci->bus, pci
655 davicom_probe(struct dev *dev, struct pci_device *pci) argument
[all...]
H A Depic100.c8 #include "pci.h"
98 epic100_probe(struct dev *dev, struct pci_device *pci) argument
105 if (pci->ioaddr == 0)
113 ioaddr = pci->ioaddr;
115 nic->ioaddr = pci->ioaddr & ~3;
H A Dsis900.c47 #include "pci.h"
129 static int sis900_probe(struct dev *dev, struct pci_device *pci);
158 * @pci_dev: the sis900 pci device
185 * @pci_dev: the sis900 pci device
229 * @pci_dev: the sis900 pci device
268 * @pci_dev: the sis900 pci device
316 static int sis900_probe(struct dev *dev, struct pci_device *pci) argument
325 if (pci->ioaddr == 0)
329 nic->ioaddr = pci->ioaddr & ~3;
330 ioaddr = pci
[all...]
H A Dundi.c24 #include "pci.h"
298 if ( ( pcir_header->vendor_id != undi.pci.vendor ) ||
299 ( pcir_header->device_id != undi.pci.dev_id ) ) {
301 undi.pci.vendor,
302 undi.pci.dev_id );
451 undi.pxs->loader.ax = ( undi.pci.bus << 8 ) | undi.pci.devfn;
512 undi.pxs->start_undi.ax = ( undi.pci.bus << 8 ) | undi.pci.devfn;
1125 static int undi_probe(struct dev *dev, struct pci_device *pci) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4/hostbridge/
H A Dhb_sun4.c87 busorrc_t *ppci, *pci; local
99 pci = *head;
101 while (pci != NULL) {
102 if (new->br_ba_ac == pci->br_ba_ac)
103 if (new->br_ba_bc < pci->br_ba_bc)
105 if (new->br_ba_ac < pci->br_ba_ac)
107 ppci = pci;
108 pci = pci->br_nextbus;
111 new->br_nextbus = pci;
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/desktop/common/
H A Ddesktop.c220 NULL) && (strstr(name, "pci"))) {
301 Prom_node *pci; local
308 pci = dev_find_node_by_type(bnode->nodes, "model", "SUNW,psycho");
309 if (pci != NULL) {
314 pci = dev_find_node_by_type(bnode->nodes, "model", "SUNW,sabre");
315 if (pci != NULL) {
373 for (pnode = dev_find_node(bnode->nodes, "pci"); pnode != NULL;
374 pnode = dev_next_node(pnode, "pci")) {
/illumos-gate/usr/src/cmd/prtconf/
H A Dprt_xxx.c68 "central dma ebus fhc isa pci rootnex",
70 "central dma ebus fhc isa pci pci_pci rootnex",
417 (((s) != NULL) && ((strcmp((s), "pci") == 0) || \
423 print_pciid(di_node_t node, di_prom_handle_t ph, pcidb_hdl_t *pci) argument
436 return (0); /* not a pci device */
443 if (pci != NULL)
444 vend = pcidb_lookup_vendor(pci, i[0]);
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/cherrystone/common/
H A Dworkfile.c72 Prom_node * parent_bridge, Prom_node *pci);
125 if ((strcmp(name, "pci") == 0) && (compatible != NULL) &&
595 * If this is a pci-bridge, then store its dev#
598 * looking at a pci-bridge node. This flag gets reset
606 if ((type != NULL) && (strncmp(name, "pci", 3) == 0) &&
607 (strcmp(type, "pci") == 0)) {
622 * a pci-bridge if our parent is the same as the last
737 * If this is a pci-bridge, then add the word
738 * 'pci-bridge' to its model. If we can't find
747 "%s", "device on pci
808 next_pci_card(Prom_node *curr_card, int *is_bridge, int is_pcidev, Prom_node *curr_bridge, Prom_node *parent_bridge, Prom_node *pci) argument
[all...]
H A Dcherrystone.c300 Prom_node *pci; local
316 * Search for each pci instance, then find/display all nodes under
319 for (pci = dev_find_node_by_compat(board->nodes, SCHIZO_COMPAT_PROP);
320 pci != NULL;
321 pci = dev_next_node_by_compat(pci, SCHIZO_COMPAT_PROP)) {
329 find_prop(pci, "slot-names"));
341 * Note: any of these cards can be a pci-bridge
343 * pci-bridge we need to handle it specially.
345 card_node = pci
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/littleneck/common/
H A Dlittleneck.c304 Prom_node *pci; local
319 * Search for each pci instance, then find/display all nodes under
322 for (pci = dev_find_node_by_compat(board->nodes, SCHIZO_COMPAT_PROP);
323 pci != NULL;
324 pci = dev_next_node_by_compat(pci, SCHIZO_COMPAT_PROP)) {
332 find_prop(pci, "slot-names"));
344 * Note: any of these cards can be a pci-bridge
346 * pci-bridge we need to handle it specially.
348 card_node = pci
[all...]
H A Dworkfile.c68 Prom_node * parent_bridge, Prom_node *pci);
204 if ((strcmp(name, "pci") == 0) && (compatible != NULL) &&
709 * If this is a pci-bridge, then store its dev#
712 * looking at a pci-bridge node. This flag gets reset
720 if ((type != NULL) && (strncmp(name, "pci", 3) == 0) &&
721 (strcmp(type, "pci") == 0)) {
736 * a pci-bridge if our parent is the same as the last
847 * If this is a pci-bridge, then add the word
848 * 'pci-bridge' to its model. If we can't find
856 "%s", "device on pci
915 next_pci_card(Prom_node *curr_card, int *is_bridge, int is_pcidev, Prom_node *curr_bridge, Prom_node *parent_bridge, Prom_node *pci) argument
[all...]
/illumos-gate/usr/src/uts/i86pc/sys/
H A Dbiosdisk.h75 } pci; member in union:interface_path
/illumos-gate/usr/src/boot/sys/boot/efi/boot1/
H A Dboot1.c202 PCI_DEVICE_PATH *pci; local
204 pci = (PCI_DEVICE_PATH *)devpath;
205 return snprintf(buf, size, "pci(0x%02x,0x%02x)",
206 pci->Device, pci->Function);
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Dio.c65 /* find the first pci node */
66 pnode = dev_find_node(node, "pci");
80 pnode = dev_next_node(pnode, "pci");
596 populate_slot_name_arr(Prom_node *pci, int *slot_name_bits, argument
602 value = (char *)get_prop_val(find_prop(pci, "slot-names"));
643 get_card_frequency(Prom_node *pci) argument
645 char *value = get_prop_val(find_prop(pci, "clock-frequency"));
689 if ((strncmp(name, "pci", 3) == 0) &&
707 if ((strncmp(name, "pci", 3) == 0) &&
730 "%s", "pci
784 Prom_node *pci, *card_node, *pci_bridge_node = NULL; local
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/daktari/common/
H A Ddaktari.c201 NULL) && (strstr(name, "pci"))) {
446 Prom_node *pci; local
463 * Search for each pci instance, then find/display all nodes under
466 for (pci = dev_find_node_by_compat(board->nodes, SCHIZO_COMPAT_PROP);
467 pci != NULL;
468 pci = dev_next_node_by_compat(pci, SCHIZO_COMPAT_PROP)) {
476 find_prop(pci, "slot-names"));
493 * Note: any of these cards can be a pci-bridge
495 * pci
[all...]
H A Dworkfile.c125 Prom_node * parent_bridge, Prom_node *pci);
323 if ((strcmp(name, "pci") == 0) && (compatible != NULL) &&
680 * If this is a pci-bridge, then store its dev#
683 * looking at a pci-bridge node. This flag gets reset
691 if ((type != NULL) && (strncmp(name, "pci", 3) == 0) &&
692 (strcmp(type, "pci") == 0)) {
712 * a pci-bridge if our parent is the same as the last
827 * If this is a pci-bridge, then add the word
828 * 'pci-bridge' to its model. If we can't find
836 "%s", "device on pci
896 next_pci_card(Prom_node *curr_card, int *is_bridge, int is_pcidev, Prom_node *curr_bridge, Prom_node *parent_bridge, Prom_node *pci) argument
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/javelin/common/
H A Djavelin.c297 NULL) && (strstr(name, "pci"))) {
311 NULL) && (strstr(name, "pci"))) {
419 Prom_node *pci; local
430 for (pci = dev_find_node(board->nodes, PCI_NAME); pci != NULL;
431 pci = dev_next_node(pci, PCI_NAME)) {
438 * If we have reached a pci-to-pci bridge node,
439 * we are one level below the 'pci' node
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/starcat/common/
H A Dstarcat.c113 Prom_node *pci; local
146 for (pci = dev_find_node_by_compatible(board->nodes, SCHIZO_COMPATIBLE);
147 pci != NULL;
148 pci = dev_next_node_by_compatible(pci, SCHIZO_COMPATIBLE)) {
154 * If "enum-impl" property exists in pci node => cPCI.
156 value = get_prop_val(find_prop(pci, "enum-impl"));
164 find_prop(pci, "compatible")), XMITS_COMPATIBLE)) {
171 (find_prop(pci, "module-revision#"));
179 find_prop(pci, "compatibl
[all...]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_main.c1020 pcinfo_t pci; local
1022 (void) strcpy(pci.pc_clname, "RT");
1024 if (priocntl(P_LWPID, P_MYID, PC_GETCID, (caddr_t)&pci) != -1) {
1032 pcp.pc_cid = pci.pc_cid;
/illumos-gate/usr/src/uts/sun4u/sys/pci/
H A Dpci_var.h82 * pci common soft state structure:
84 * Each psycho or schizo is represented by a pair of pci nodes in the
85 * device tree. A single pci common soft state is allocated for each
88 * pci common soft state structure to determine if one node from the
98 pci_t *pci_p[2]; /* pci soft states of both sides */
102 /* Links to functional blocks potentially shared between pci nodes */
117 * pci soft state structure:
119 * Each pci node has a pci soft state structure.
121 struct pci { struct
[all...]
/illumos-gate/usr/src/uts/common/io/efe/
H A Defe.c47 #include <sys/pci.h>
250 ddi_acc_handle_t pci; local
273 if (pci_config_setup(dip, &pci) != DDI_SUCCESS) {
278 pci_config_put16(pci, PCI_CONF_COMM,
279 pci_config_get16(pci, PCI_CONF_COMM) | PCI_COMM_MAE | PCI_COMM_ME);
281 pci_config_teardown(&pci);

Completed in 136 milliseconds

123