/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | io.c | 170 insert_io_card(struct io_card *list, struct io_card *card) in insert_io_card() argument 175 if (card == NULL) in insert_io_card() 184 (void) memcpy(newcard, card, sizeof (struct io_card)); in insert_io_card() 361 struct io_card card; in display_ffb() local 369 card.display = 1; in display_ffb() 370 card.board = board->board_num; in display_ffb() 371 (void) sprintf(card.bus_type, BUS_TYPE); in display_ffb() 372 card.freq = sys_clk; in display_ffb() 393 card.slot = get_id(fb); in display_ffb() 396 (void) sprintf(card.name, "%s", label); in display_ffb() [all …]
|
H A D | display_sun4v.c | 197 get_bus_type(picl_nodehdl_t nodeh, struct io_card *card) in get_bus_type() argument 201 card->bus_type[0] = '\0'; in get_bus_type() 206 (void) strlcpy(card->bus_type, "PCIE", in get_bus_type() 207 sizeof (card->bus_type)); in get_bus_type() 209 (void) strlcpy(card->bus_type, "PCIX", in get_bus_type() 210 sizeof (card->bus_type)); in get_bus_type() 240 (void) strlcpy(card->bus_type, q, in get_bus_type() 241 sizeof (card->bus_type)); in get_bus_type() 256 get_slot_label(picl_nodehdl_t nodeh, struct io_card *card) in get_slot_label() argument 271 (void) strlcpy(card->slot_str, val, sizeof (card->slot_str)); in get_slot_label() [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() 189 card->pcc_hdl = hdl; in pcsc_card_alloc() 190 card->pcc_fd = -1; in pcsc_card_alloc() 191 list_link_init(&card->pcc_link); in pcsc_card_alloc() 198 card->pcc_namelen = strlen(reader) + 2; 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() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/ |
H A D | stpaul.c | 56 static void get_bus_type(char *path, struct io_card *card); 57 static void get_slot_number(char *path, struct io_card *card); 367 get_bus_type(char *path, struct io_card *card) in get_bus_type() argument 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() 376 (void) strlcpy(card->bus_type, "PCIE", sizeof (card->bus_type)); in get_bus_type() 378 (void) strlcpy(card->bus_type, "PCIE", sizeof (card->bus_type)); in get_bus_type() 380 (void) strlcpy(card->bus_type, "PCIE", sizeof (card->bus_type)); in get_bus_type() 382 (void) strlcpy(card->bus_type, "NONE", sizeof (card->bus_type)); in get_bus_type() [all …]
|
H A D | huron.c | 59 huron_get_bus_type(char *path, struct io_card *card) in huron_get_bus_type() argument 62 (void) strcpy(card->bus_type, "NIU"); in huron_get_bus_type() 64 (void) strcpy(card->bus_type, "PCIE"); in huron_get_bus_type() 69 huron_get_slot_number(char *path, struct io_card *card) in huron_get_slot_number() argument 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() 79 (void) strcpy(card->slot_str, "0"); in huron_get_slot_number() 80 card->slot = 0; in huron_get_slot_number() [all …]
|
H A D | pelton.c | 65 get_bus_type(char *path, struct io_card *card) in get_bus_type() argument 68 (void) strcpy(card->bus_type, "PCIX"); in get_bus_type() 70 (void) strcpy(card->bus_type, "PCIX"); in get_bus_type() 72 (void) strcpy(card->bus_type, "PCIX"); in get_bus_type() 74 (void) strcpy(card->bus_type, "PCIX"); in get_bus_type() 76 (void) strcpy(card->bus_type, "PCIE"); in get_bus_type() 91 get_slot_number(char *path, struct io_card *card) in get_slot_number() argument 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() [all …]
|
H A D | ontario.c | 79 get_bus_type(char *path, struct io_card *card) in get_bus_type() argument 82 (void) strcpy(card->bus_type, "PCIX"); in get_bus_type() 84 (void) strcpy(card->bus_type, "PCIE"); in get_bus_type() 89 get_slot_number(picl_nodehdl_t nodeh, char *path, struct io_card *card) in get_slot_number() argument 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() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/ents/frutree/ |
H A D | piclfrutree.info | 274 REFNODE pci-card fru WITH _class:/jbus/pci@1e,600000/picl?DeviceID=4 276 REFNODE pci-card fru WITH _class:/jbus/pci@1e,600000/picl?DeviceID=3 278 REFNODE pci-card fru WITH _class:/jbus/pci@1d,700000/picl?DeviceID=2 280 REFNODE pci-card fru WITH _class:/jbus/pci@1c,600000/picl?DeviceID=2 282 REFNODE pci-card fru WITH _class:/jbus/pci@1e,600000/picl?DeviceID=2 284 REFNODE pci-card fru WITH _class:/jbus/pci@1f,700000/picl?DeviceID=2 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 [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/chalupa/frutree/ |
H A D | piclfrutree.info | 323 REFNODE pci-card fru WITH _class:/jbus/pci@1e,600000/picl?DeviceID=2 325 REFNODE pci-card fru WITH _class:/jbus/pci@1e,600000/picl?DeviceID=3 327 REFNODE pci-card fru WITH _class:/jbus/pci@1d,700000/picl?DeviceID=2 329 REFNODE pci-card fru WITH _class:/jbus/pci@1e,600000/picl?DeviceID=4 331 REFNODE pci-card fru WITH _class:/jbus/pci@1d,700000/picl?DeviceID=1 333 REFNODE pci-card fru WITH _class:/jbus/pci@1c,600000/picl?DeviceID=1 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 [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/serengeti/common/ |
H A D | serengeti.c | 156 static void get_slot_name(struct io_card *card, char *slot_name); 203 struct io_card card; in display_pci() local 231 card.display = TRUE; in display_pci() 232 card.board = board->board_num; in display_pci() 233 card.node_id = board->node_id; in display_pci() 251 (void) sprintf(card.bus_type, "PCI"); in display_pci() 253 (void) sprintf(card.bus_type, "cPCI"); in display_pci() 258 sprintf(card.notes, "%s", XMITS_COMPATIBLE); in display_pci() 273 sprintf(card.notes, "%s", SCHIZO_COMPATIBLE); in display_pci() 275 sprintf(card.notes, " "); in display_pci() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/boston/frutree/ |
H A D | piclfrutree.info | 473 REFNODE pci-card fru WITH _class:/jbus/pciex@1e,600000/pciex@0/pciex@8/picl?DeviceID=0 475 REFNODE pci-card fru WITH _class:/jbus/pciex@1f,700000/pciex@0/pciex@8/picl?DeviceID=0 477 REFNODE pci-card fru WITH _class:/jbus/pciex@1e,600000/pciex@0/pciex@1/pci@0/pci@8/picl?DeviceID=1 479 REFNODE pci-card fru WITH _class:/jbus/pciex@1e,600000/pciex@0/pciex@1/pci@0/pci@8/picl?DeviceID=2 481 REFNODE pci-card fru WITH _class:/jbus/pciex@1f,700000/pciex@0/pciex@2/pci@0/pci@8/picl?DeviceID=1 483 REFNODE pci-card fru WITH _class:/jbus/pciex@1f,700000/pciex@0/pciex@2/pci@0/pci@8/picl?DeviceID=2 485 REFNODE pci-card fru WITH _class:/jbus/pciex@1e,600000/pciex@0/pciex@9/picl?DeviceID=0 487 REFNODE pci-card fru WITH _class:/jbus/pciex@1f,700000/pciex@0/pciex@9/picl?DeviceID=0 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 [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() 521 (void) strncpy(card.status, (char *)value, in display_sbus() 525 if (strstr(card.status, "fail") != NULL) in display_sbus() 550 card.name[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() 422 card.board = board->board_num; in display_pci() 423 (void) sprintf(card.bus_type, "PCI"); in display_pci() 459 card.freq = -1; in display_pci() 461 card.freq = ((*(int *)value) + 500000) / 1000000; in display_pci() 488 card.slot = tazmo_physical_slot( in display_pci() 492 card.slot_str); in display_pci() 494 card.slot = tazmo_physical_slot( in display_pci() 498 card.slot_str); in display_pci() [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() 428 card.board = board->board_num; in display_pci() 429 (void) sprintf(card.bus_type, "PCI"); in display_pci() 465 card.freq = -1; in display_pci() 467 card.freq = ((*(int *)value) + 500000) / 1000000; in display_pci() 494 card.slot = tazmo_physical_slot( in display_pci() 498 card.slot_str); in display_pci() 500 card.slot = tazmo_physical_slot( in display_pci() 504 card.slot_str); in display_pci() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/seattle/frutree/ |
H A D | system-board.info | 745 REFNODE pci-card fru WITH _class:/jbus/pciex@1f,700000/picl?DeviceID=0 746 REFNODE pci-card fru WITH _class:/jbus/pciex@1e,600000/pciex@0/pciex@9/pci@0/pci@8/picl?DeviceID=1 755 REFNODE pci-card fru WITH _class:/jbus/pciex@1f,700000/pciex@0/pciex@8/picl?DeviceID=0 756 REFNODE pci-card fru WITH _class:/jbus/pciex@1f,700000/pci@0/picl?DeviceID=2 761 REFNODE pci-card fru WITH _class:/jbus/pciex@1f,700000/pciex@0/pciex@9/picl?DeviceID=0 762 REFNODE pci-card fru WITH _class:/jbus/pciex@1f,700000/pci@0,2/picl?DeviceID=1 768 REFNODE pci-card fru WITH _class:/jbus/pciex@1e,600000/pciex@0/pciex@8/picl?DeviceID=0 770 REFNODE pci-card fru WITH _class:/jbus/pciex@1e,600000/pciex@0/pciex@2/picl?DeviceID=0 778 REFPROP _fru_parent PCI_R/pci-riser-board/PCI0/pci-card 780 REFPROP _fru_parent PCI_R/pci-riser-board/PCI0/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 147 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pciex@1e,600000/pciex@0/pciex@8/picl?DeviceID=0 150 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pciex@1e,600000/pciex@0/pciex@3/picl?DeviceID=0 153 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pciex@1e,600000/pciex@0/pciex@9/pci@0,2/picl?Devic… 156 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pciex@1e,600000/pciex@0/pciex@9/pci@0,2/picl?Devic… 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 [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frutree/ |
H A D | piclfrutree.info | 284 REFNODE hcm fru WITH name:/platform/pci@1e,600000/isa@7/i2c@0,320/hcm-card-fru-prom@0,d6 288 REFPROP _seeprom_source name:/platform/pci@1e,600000/isa@7/i2c@0,320/hcm-card-fru-prom@0,d6 290 name:/platform/pci@1e,600000/isa@7/i2c@0,320/hcm-card-fru-prom@0,d6 351 REFNODE pci-card fru WITH _class:/jbus/pci@1d,700000/picl?DeviceID=1 353 REFNODE pci-card fru WITH _class:/jbus/pci@1e,600000/picl?DeviceID=3 355 REFNODE pci-card fru WITH _class:/jbus/pci@1e,600000/picl?DeviceID=2 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 [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() 344 if ((ioctl(fd, SNDCTL_CARDINFO, &d->card) != 0) || in load_devices() 454 char *devnm = d->card.shortname; in print_control() 672 msg(_("%s: '%s' set to '%s'\n"), d->card.shortname, in set_device_control() 772 oss_card_info *card = &d->card; in find_device() local 774 if ((name) && (strcmp(name, card->shortname) == 0)) { in find_device() 820 msg(_("%s (%s)\n"), d->card.shortname, in do_list_devices() 823 msg(_("%s\n"), d->card.shortname); in do_list_devices() [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 247 REFPROP _seeprom_source /platform/pci@1e,600000/isa@7/i2c@0,320/audio-card-fru-prom 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 [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 305 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci?UnitAddress=8,700000/picl?DeviceID=3 308 REFNODE pci-card fru WITH _class:/PLATFORM_CLASS/pci?UnitAddress=8,600000/picl?DeviceID=1 314 REFPROP _fru_parent frutree/chassis/system-board/pci-slot?Label=J2601/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()
|