/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | io.c | 175 if (card == NULL) in insert_io_card() 361 struct io_card card; in display_ffb() local 369 card.display = 1; in display_ffb() 372 card.freq = sys_clk; in display_ffb() 495 struct io_card card; in display_sbus() local 531 card.display = 1; in display_sbus() 532 card.freq = freq; in display_sbus() 556 card.name[0] = '\0'; in display_sbus() 774 struct io_card card; in display_psycho_pci() local 787 card.display = 1; in display_psycho_pci() [all …]
|
H A D | display_sun4v.c | 201 card->bus_type[0] = '\0'; in get_bus_type() 207 sizeof (card->bus_type)); in get_bus_type() 210 sizeof (card->bus_type)); in get_bus_type() 271 (void) strlcpy(card->slot_str, val, sizeof (card->slot_str)); in get_slot_label() 358 card->slot = -1; in get_slot_number() 370 sizeof (card->slot_str)); in get_slot_number() 371 card->slot = -1; in get_slot_number() 378 card->slot = -1; in get_slot_number() 384 card->slot = -1; in get_slot_number() 398 card->slot = atol(uaddr); in get_slot_number() [all …]
|
/illumos-gate/usr/src/lib/libpcsc/common/ |
H A D | libpcsc.c | 184 pcsc_card_t *card; in pcsc_card_alloc() local 186 if ((card = malloc(sizeof (*card))) == NULL) { in pcsc_card_alloc() 190 card->pcc_fd = -1; in pcsc_card_alloc() 199 if ((card->pcc_name = malloc(card->pcc_namelen)) == NULL) { in pcsc_card_alloc() 200 free(card); in pcsc_card_alloc() 203 bcopy(reader, card->pcc_name, card->pcc_namelen - 1); in pcsc_card_alloc() 204 card->pcc_name[card->pcc_namelen - 1] = '\0'; in pcsc_card_alloc() 212 return (card); in pcsc_card_alloc() 233 free(card); in pcsc_card_free() 560 *iccp = card; in SCardConnect() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/ |
H A D | stpaul.c | 370 (void) strlcpy(card->bus_type, "PCIE", sizeof (card->bus_type)); in get_bus_type() 372 (void) strlcpy(card->bus_type, "PCIE", sizeof (card->bus_type)); in get_bus_type() 374 (void) strlcpy(card->bus_type, "PCIE", sizeof (card->bus_type)); in get_bus_type() 390 (void) strlcpy(card->slot_str, "0", sizeof (card->slot_str)); in get_slot_number() 391 card->slot = 0; in get_slot_number() 393 (void) strlcpy(card->slot_str, "0", sizeof (card->slot_str)); in get_slot_number() 394 card->slot = 0; in get_slot_number() 396 (void) strlcpy(card->slot_str, "1", sizeof (card->slot_str)); in get_slot_number() 397 card->slot = 1; in get_slot_number() 399 (void) strlcpy(card->slot_str, "1", sizeof (card->slot_str)); in get_slot_number() [all …]
|
H A D | huron.c | 72 (void) strcpy(card->slot_str, "0"); in huron_get_slot_number() 73 card->slot = 0; in huron_get_slot_number() 75 (void) strcpy(card->slot_str, "1"); in huron_get_slot_number() 76 card->slot = 1; in huron_get_slot_number() 80 card->slot = 0; in huron_get_slot_number() 84 card->slot = 1; in huron_get_slot_number() 88 card->slot = 2; in huron_get_slot_number() 92 card->slot = 3; in huron_get_slot_number() 96 card->slot = 4; in huron_get_slot_number() 100 card->slot = 5; in huron_get_slot_number() [all …]
|
H A D | pelton.c | 68 (void) strcpy(card->bus_type, "PCIX"); in get_bus_type() 70 (void) strcpy(card->bus_type, "PCIX"); in get_bus_type() 94 (void) strcpy(card->slot_str, "0"); in get_slot_number() 95 card->slot = 0; in get_slot_number() 97 (void) strcpy(card->slot_str, "2"); in get_slot_number() 98 card->slot = 2; in get_slot_number() 100 (void) strcpy(card->slot_str, "3"); in get_slot_number() 101 card->slot = 3; in get_slot_number() 103 (void) strcpy(card->slot_str, "1"); in get_slot_number() 104 card->slot = 1; in get_slot_number() [all …]
|
H A D | ontario.c | 92 (void) strcpy(card->slot_str, "0"); in get_slot_number() 93 card->slot = 0; in get_slot_number() 95 (void) strcpy(card->slot_str, "1"); in get_slot_number() 96 card->slot = 1; in get_slot_number() 98 (void) strcpy(card->slot_str, "2"); in get_slot_number() 99 card->slot = 2; in get_slot_number() 106 card->slot = -1; in get_slot_number() 116 card->slot = 0; in get_slot_number() 117 (void) strcpy(card->slot_str, "0"); in get_slot_number() 119 card->slot = 1; in get_slot_number() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/ents/frutree/ |
H A D | piclfrutree.info | 291 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 293 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 295 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 297 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 299 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 301 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 303 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 305 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 307 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 309 REFPROP _fru_parent name:/frutree/chassis/PCI1/pci-card [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/chalupa/frutree/ |
H A D | piclfrutree.info | 341 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card 343 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card 345 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card 347 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card 349 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card 351 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card 353 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card 355 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card 357 REFPROP _fru_parent name:/frutree/chassis/PCI5/pci-card 359 REFPROP _fru_parent name:/frutree/chassis/PCI2/pci-card [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/serengeti/common/ |
H A D | serengeti.c | 203 struct io_card card; in display_pci() local 231 card.display = TRUE; in display_pci() 343 card.dev_no = -1; in display_pci() 344 card.func_no = -1; in display_pci() 433 card.dev_no); in display_pci() 459 card.notes, in display_pci() 476 card.pci_bus = 'A'; in display_pci() 478 card.pci_bus = 'B'; in display_pci() 480 card.pci_bus = '-'; in display_pci() 482 card.pci_bus = '-'; in display_pci() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/boston/frutree/ |
H A D | piclfrutree.info | 505 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/PCI0/pci-card 507 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/PCI0/pci-card 509 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/PCI0/pci-card 511 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/PCI0/pci-card 513 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/PCI0/pci-card 515 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/PCI0/pci-card 517 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/PCI0/pci-card 519 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/PCI0/pci-card 521 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/PCI0/pci-card 524 REFPROP _fru_parent name:/frutree/chassis/MB/system-board/PCI1/pci-card [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/desktop/common/ |
H A D | desktop.c | 475 struct io_card card; in display_sbus() local 511 card.display = 1; in display_sbus() 512 card.freq = freq; in display_sbus() 513 card.board = board->board_num; in display_sbus() 514 (void) sprintf(card.bus_type, "SBus"); in display_sbus() 515 card.slot = card_num; in display_sbus() 516 card.status[0] = '\0'; in display_sbus() 525 if (strstr(card.status, "fail") != NULL) in display_sbus() 550 card.name[0] = '\0'; in display_sbus() 551 card.model[0] = '\0'; in display_sbus() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/javelin/common/ |
H A D | javelin.c | 412 struct io_card card; in display_pci() local 421 card.display = 1; in display_pci() 459 card.freq = -1; in display_pci() 492 card.slot_str); in display_pci() 498 card.slot_str); in display_pci() 507 card.slot = -1; in display_pci() 579 if (card.freq != -1) in display_pci() 654 struct io_card card; in display_ffb() local 660 card.display = 1; in display_ffb() 663 card.freq = sys_clk; in display_ffb() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/tazmo/common/ |
H A D | tazmo.c | 418 struct io_card card; in display_pci() local 427 card.display = 1; in display_pci() 465 card.freq = -1; in display_pci() 498 card.slot_str); in display_pci() 504 card.slot_str); in display_pci() 513 card.slot = -1; in display_pci() 584 if (card.freq != -1) in display_pci() 658 struct io_card card; in display_ffb() local 664 card.display = 1; in display_ffb() 667 card.freq = sys_clk; in display_ffb() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/seattle/frutree/ |
H A D | system-board.info | 778 REFPROP _fru_parent PCI_R/pci-riser-board/PCI0/pci-card 780 REFPROP _fru_parent PCI_R/pci-riser-board/PCI0/pci-card 782 REFPROP _fru_parent PCI_R/pci-riser-board/PCI0/pci-card 784 REFPROP _fru_parent PCI_R/pci-riser-board/PCI0/pci-card 786 REFPROP _fru_parent PCI_R/pci-riser-board/PCI0/pci-card 788 REFPROP _fru_parent PCI_R/pci-riser-board/PCI0/pci-card 790 REFPROP _fru_parent PCI_R/pci-riser-board/PCI0/pci-card 792 REFPROP _fru_parent PCI_R/pci-riser-board/PCI0/pci-card 794 REFPROP _fru_parent PCI_R/pci-riser-board/PCI0/pci-card 798 REFPROP _fru_parent PCI_R/pci-riser-board/PCI2/pci-card [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/chicago/frutree/ |
H A D | system-board.info | 144 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pciex@1f,700000/picl?DeviceID=0 253 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCIE2/pci-card 255 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCIE2/pci-card 257 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCIE2/pci-card 259 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCIE2/pci-card 261 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCIE2/pci-card 263 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCIE2/pci-card 265 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCIE2/pci-card 267 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCIE2/pci-card 269 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCIE2/pci-card [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frutree/ |
H A D | piclfrutree.info | 362 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 364 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 366 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 368 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 370 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 372 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 374 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 376 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 378 REFPROP _fru_parent name:/frutree/chassis/PCI0/pci-card 380 REFPROP _fru_parent name:/frutree/chassis/PCI1/pci-card [all …]
|
/illumos-gate/usr/src/cmd/audio/audioctl/ |
H A D | audioctl.c | 141 oss_card_info card; member 223 d->card.card = -1; in alloc_device() 342 d->card.card = d->mixer.card_number; in load_devices() 454 char *devnm = d->card.shortname; in print_control() 772 oss_card_info *card = &d->card; in find_device() local 820 msg(_("%s (%s)\n"), d->card.shortname, in do_list_devices() 823 msg(_("%s\n"), d->card.shortname); in do_list_devices() 862 msg(_(" Config = %s\n"), d->card.longname); in do_show_device() 864 if (strlen(d->card.hw_info)) { in do_show_device() 865 msg(_(" HW Info = %s"), d->card.hw_info); in do_show_device() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/monza/common/ |
H A D | monza.c | 77 monza_get_bus_type(char *path, struct io_card *card) in monza_get_bus_type() argument 80 (void) strcpy(card->bus_type, "NIU"); in monza_get_bus_type() 82 (void) strcpy(card->bus_type, "PCIE"); in monza_get_bus_type() 87 monza_get_slot_number(char *path, struct io_card *card) in monza_get_slot_number() argument 90 (void) strcpy(card->slot_str, "0"); in monza_get_slot_number() 91 card->slot = 0; in monza_get_slot_number() 93 (void) strcpy(card->slot_str, "1"); in monza_get_slot_number() 94 card->slot = 1; in monza_get_slot_number() 96 (void) strcpy(card->slot_str, MOTHERBOARD); in monza_get_slot_number() 97 card->slot = -1; in monza_get_slot_number()
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/montoya/common/ |
H A D | montoya.c | 75 get_bus_type(char *path, struct io_card *card) in get_bus_type() argument 77 (void) strcpy(card->bus_type, "PCIE"); in get_bus_type() 81 get_slot_number(char *path, struct io_card *card) in get_slot_number() argument 84 (void) strcpy(card->slot_str, RTM); in get_slot_number() 85 card->slot = 0; in get_slot_number() 87 (void) strcpy(card->slot_str, MOTHERBOARD); in get_slot_number() 88 card->slot = 0; in get_slot_number() 90 (void) strcpy(card->slot_str, MOTHERBOARD); in get_slot_number() 91 card->slot = -1; in get_slot_number()
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/opl/common/ |
H A D | opl.c | 123 struct io_card card; in walk_tree_for_pci_devices() local 139 (void) memset(&card, 0, sizeof (card)); in walk_tree_for_pci_devices() 140 card.board = board_number; in walk_tree_for_pci_devices() 143 (void) strlcpy(card.name, (str == NULL ? "N/A":str), in walk_tree_for_pci_devices() 144 sizeof (card.name)); in walk_tree_for_pci_devices() 147 (void) strlcpy(card.model, (str == NULL ? "N/A":str), in walk_tree_for_pci_devices() 148 sizeof (card.model)); in walk_tree_for_pci_devices() 151 card_list = insert_io_card(card_list, &card); in walk_tree_for_pci_devices()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/enchilada/frutree/ |
H A D | system-board.info | 243 REFNODE audio-card fru WITH name:/platform/pci@1e,600000/isa@7/i2c@0,320/audio-card-fru-prom 245 name:/frutree/chassis/MB/system-board/audio-slot/audio-card 253 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci@1f,700000/picl?DeviceID=2 256 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci@1e,600000/picl?DeviceID=2 259 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci@1c,600000/picl?DeviceID=2 262 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci@1d,700000/picl?DeviceID=2 265 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci@1e,600000/picl?DeviceID=3 268 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci@1e,600000/picl?DeviceID=4 274 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCI5/pci-card 277 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCI4/pci-card [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/excalibur/frutree/ |
H A D | system-board.info | 132 * Set up upa card 135 REFNODE upa-card fru WITH _class:/PLATFORM_CLASS/upa/display?upa-portid=0 138 REFNODE upa-card fru WITH _class:/PLATFORM_CLASS/upa/display?upa-portid=1 248 REFPROP _fru_parent /frutree/chassis/system-board/upa-slot?Slot=0/upa-card 251 REFPROP _fru_parent /frutree/chassis/system-board/upa-slot?Slot=1/upa-card 299 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci?UnitAddress=8,700000/picl?DeviceID=1 302 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci?UnitAddress=8,700000/picl?DeviceID=2 314 REFPROP _fru_parent frutree/chassis/system-board/pci-slot?Label=J2601/pci-card 317 REFPROP _fru_parent frutree/chassis/system-board/pci-slot?Label=J2501/pci-card 320 REFPROP _fru_parent frutree/chassis/system-board/pci-slot?Label=J2401/pci-card [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/taco/frutree/ |
H A D | system-board.info | 161 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci@1e,600000/picl?DeviceID=2 164 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci@1e,600000/picl?DeviceID=3 167 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci@1e,600000/picl?DeviceID=4 170 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci@1e,600000/picl?DeviceID=5 173 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci@1f,700000/picl?DeviceID=3 179 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCI0/pci-card 182 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCI1/pci-card 185 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCI2/pci-card 188 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCI3/pci-card 191 REFPROP _fru_parent /frutree/chassis/MB/system-board/pci-slot?Label=PCI4/pci-card
|
/illumos-gate/usr/src/cmd/tabs/ |
H A D | tabs.c | 397 char card[CARDSIZ]; /* buffer area for 1st card in file */ in filetab() local 413 length = read(fildes, card, CARDSIZ); in filetab() 417 for (i = 0; i < length && (c = card[i]) != '\n'; i++) { in filetab() 435 scan = &card[i]; in filetab() 441 card[i] = '\0'; in filetab() 444 card[i] = '\0'; in filetab()
|