558 char old_unum[UNUM_NAMLEN];
559
560 (void) strcpy(old_unum, unum);
561 (void) snprintf(unum, UNUM_NAMLEN, "Slot %c: %s", board, old_unum);
562 }
563
564 int
565 plat_get_cpu_unum(int cpuid, char *buf, int buflen, int *lenp)
566 {
567 char board = DAK_GETSLOT_LABEL(cpuid);
568
569 if (snprintf(buf, buflen, "Slot %c", board) >= buflen) {
570 return (ENOSPC);
571 } else {
572 *lenp = strlen(buf);
573 return (0);
574 }
575 }
576
577 /*
578 * The zuluvm module requires a dmv interrupt for each installed zulu board.
579 */
580 void
581 plat_dmv_params(uint_t *hwint, uint_t *swint)
582 {
583 *hwint = 0;
584 *swint = DAK_SBD_SLOTS - 1;
585 }
|
558 char old_unum[UNUM_NAMLEN];
559
560 (void) strcpy(old_unum, unum);
561 (void) snprintf(unum, UNUM_NAMLEN, "Slot %c: %s", board, old_unum);
562 }
563
564 int
565 plat_get_cpu_unum(int cpuid, char *buf, int buflen, int *lenp)
566 {
567 char board = DAK_GETSLOT_LABEL(cpuid);
568
569 if (snprintf(buf, buflen, "Slot %c", board) >= buflen) {
570 return (ENOSPC);
571 } else {
572 *lenp = strlen(buf);
573 return (0);
574 }
575 }
576
577 /*
578 * The zuluvm module required a dmv interrupt for each installed
579 * Zulu/XVR-4000 board. The following has not been updated during the
580 * removal of zuluvm and therefore it may be suboptimal.
581 */
582 void
583 plat_dmv_params(uint_t *hwint, uint_t *swint)
584 {
585 *hwint = 0;
586 *swint = DAK_SBD_SLOTS - 1;
587 }
|