Lines Matching refs:pci_card

119 			    struct io_card *pci_card,
599 struct io_card *pci_card,
637 pci_card->schizo_portid = portid;
648 pci_card->pci_bus = 'A';
650 pci_card->pci_bus = 'B';
652 pci_card->pci_bus = '-';
654 pci_card->pci_bus = '-';
657 if ((pci_card->schizo_portid == 8) &&
658 (pci_card->pci_bus == 'A')) {
670 pci_card->dev_no = (((*int_val) & 0xF800) >> 11);
671 pci_card->func_no = (((*int_val) & 0x700) >> 8);
673 pci_card->dev_no = -1;
674 pci_card->func_no = -1;
696 pci_bridge_dev_no = pci_card->dev_no;
701 if ((pci_card->pci_bus == 'B') && (pci_card->dev_no == 1) &&
715 if (pci_card->dev_no != -1) {
723 if (pci_card->pci_bus == 'B') {
731 if (pci_card->pci_bus == 'B') {
733 slot_name_arr[pci_card->dev_no-2];
736 slot_name_arr[pci_card->dev_no-1];
743 (void) snprintf(pci_card->slot_str, MAXSTRLEN,
746 (void) snprintf(pci_card->slot_str, MAXSTRLEN,
751 (void) snprintf(pci_card->slot_str, MAXSTRLEN,
759 strcpy(pci_card->status, "fail");
761 strcpy(pci_card->status, "ok");
763 /* Get the model of this pci_card */
766 pci_card->model[0] = '\0';
768 (void) snprintf(pci_card->model, MAXSTRLEN, "%s",
782 pci_card->freq = DAK_CLK_FREQ_TO_MHZ(*int_val);
784 pci_card->freq = -1;
804 * of the child to the name value of this pci_card->
813 (void) snprintf(pci_card->name, MAXSTRLEN,
818 (void) snprintf(pci_card->name, MAXSTRLEN,
822 (void) snprintf(pci_card->name, MAXSTRLEN, "%s",
833 if (strlen(pci_card->model) == 0) {
835 (void) snprintf(pci_card->model, MAXSTRLEN,
839 (void) snprintf(pci_card->model, MAXSTRLEN,
842 (void) snprintf(pci_card->model, MAXSTRLEN,
846 (void) snprintf(pci_card->model, MAXSTRLEN,
847 "%s/pci-bridge", pci_card->model);
849 /* insert this pci_card in the list to be displayed later */
851 *pci_card_list = insert_io_card(*pci_card_list, pci_card);