Lines Matching defs:pci
65 /* 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,
602 value = (char *)get_prop_val(find_prop(pci, "slot-names"));
643 get_card_frequency(Prom_node *pci)
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-bridge");
733 "%s/pci-bridge", model);
784 Prom_node *pci, *card_node, *pci_bridge_node = NULL;
799 for (pci = dev_find_node_by_type(board->nodes, "model", "SUNW,psycho");
800 pci != NULL;
801 pci = dev_next_node_by_type(pci, "model", "SUNW,psycho")) {
804 * If we have reached a pci-to-pci bridge node,
805 * we are one level below the 'pci' nodes level
808 * the parent or else the remaining 'pci' cards
811 if (find_prop(pci, "upa-portid") == NULL) {
812 if ((pci->parent->sibling != NULL) &&
814 find_prop(pci->parent->sibling,
816 pci = pci->parent->sibling;
818 pci = pci->parent->sibling;
825 pci, "upa-portid"))),
826 get_prop_val(find_prop(pci, "model")));
829 if (node_failed(pci))
833 card.freq = get_card_frequency(pci);
841 if ((populate_slot_name_arr(pci, &slot_name_bits,
846 card_node = pci->child;
898 * a pci-bridge if our parent is the same as the last
924 value = get_prop_val(find_prop(pci, "clock-frequency"));
939 * If we are done with the children of the pci bridge,
941 * the pci-to-pci bridge - otherwise we move onto our