Lines Matching defs:board

116  * board for the UltraSPARC Server systems. To access a temperature,
232 * to offline and power down processors on a board in an attempt to
233 * bring the board back into the nominal temperature range before
334 static int check_central(int board);
337 * board type and A/D convertor output passed in and real temperature
343 /* Routine to determine if there are CPUs on this board. */
508 * Note about the PROM handling of moving CENTRAL to another board:
511 * duplicate the fhc_attach code that sets it to (board number * 2).
512 * We rely on only using FHC interrupts from one board only
517 * board number in the fhc instance for the clock board.
530 want_igr = softsp->list->sc.board << 1;
557 ASSERT(softsp->list->sc.board == FHC_BSR_TO_BD(*(softsp->bsr)));
558 cent = check_central(softsp->list->sc.board);
580 * The mapping registers on the board with the "central" bit
601 check_central(int board)
610 cs_value = ldphysio(AC_BCSR(board));
665 int board;
676 board = softsp->list->sc.board;
684 /* grab the lock on the board list */
685 list = fhc_bdlist_lock(board);
687 if (fhc_bd_detachable(board) &&
688 !fhc_bd_is_jtag_master(board))
701 /* remove the soft state pointer from the board list */
705 clear_fault(list->sc.board, FT_PROM, FT_BOARD);
707 /* remove the kstat for this board */
717 /* release the board list lock now */
727 fhc_board_type(struct fhc_soft_state *softsp, int board)
736 DDI_PROP_DONTPASS, "board-type", (caddr_t)&board_type,
738 /* match the board-type string */
762 * if the board type is indeterminate, it must be determined.
770 if (cpu_on_board(board))
826 int board;
917 * the board which is a child of central. However this FHC
926 if ((board = (int)ddi_getprop(DDI_DEV_T_ANY, softsp->dip,
929 * Now determine the board number by reading the
932 board = FHC_BSR_TO_BD(*(softsp->bsr));
949 fhc_bd_init(softsp, board, fhc_board_type(softsp, board));
965 * We know this board to be present now, record that state and
976 /* XXX record the board state in global space */
993 reg_fault(softsp->list->sc.board, FT_PROM, FT_BOARD);
997 * setup the IGR. Shift the board number over by one to get
1000 *(softsp->igr) = (softsp->list->sc.board) << 1;
1135 (softsp->list->sc.board << BD_IVINTR_SHFT));
1335 (softsp->list->sc.board << BD_IVINTR_SHFT));
1444 (softsp->list->sc.board << BD_IVINTR_SHFT));
1525 * with on-board devices and we have an interrupt_number property which
1639 * serially for each board.
1761 /* use override temperature for this board */
1764 /* Run the calibration function using this board type */
1773 softsp->list->sc.board);
1775 /* has the state changed? Then get the board string ready */
1777 int board = softsp->list->sc.board;
1780 build_bd_display_str(buffer, type, board);
1787 reg_fault(board, FT_OVERTEMP,
1802 fhc_bd_update(board, SYSC_EVT_BD_OVERTEMP);
1838 * If this is a cpu board, power them off.
1842 (void) fhc_board_poweroffcpus(board, NULL,
1873 clear_fault(board, FT_OVERTEMP,
1895 fhc_bd_update(board, SYSC_EVT_BD_TEMP_OK);
1915 softsp->list->sc.board);
1951 int board = softsp->list->sc.board;
1953 build_bd_display_str(buffer, type, board);
2254 * Determine the temperature state of this board based on its type and
2258 get_temp_state(enum board_type type, short temp, int board)
2277 if ((cpa = cpu_get(FHC_BOARD2CPU_A(board))) != NULL) {
2283 if ((cpb = cpu_get(FHC_BOARD2CPU_B(board))) != NULL) {
2332 if ((fhc_ksp = kstat_create("unix", softsp->list->sc.board,
2382 cpu_on_board(int board)
2384 int upa_a = board << 1;
2385 int upa_b = (board << 1) + 1;
2396 * This function uses the board list and toggles the OS green board
2401 update_board_leds(fhc_bd_t *board, uint_t mask, uint_t value)
2411 if (board != NULL) {
2412 mutex_enter(&board->softsp->ctrl_lock);
2415 temp = *board->softsp->ctrl;
2434 *board->softsp->ctrl = temp;
2437 temp = *board->softsp->ctrl;
2442 mutex_exit(&board->softsp->ctrl_lock);
2495 build_bd_display_str(char *buffer, enum board_type type, int board)
2501 /* fill in board type to display */
2504 (void) sprintf(buffer, "Uninitialized Board type board %d",
2505 board);
2509 (void) sprintf(buffer, "Unknown Board type board %d", board);
2514 (void) sprintf(buffer, "CPU/Memory board %d", board);
2518 (void) sprintf(buffer, "2 SBus IO board %d", board);
2522 (void) sprintf(buffer, "SBus FFB IO board %d", board);
2526 (void) sprintf(buffer, "PCI IO board %d", board);
2530 (void) sprintf(buffer, "Clock board");
2534 (void) sprintf(buffer, "2 SBus SOC+ IO board %d", board);
2538 (void) sprintf(buffer, "SBus FFB SOC+ IO board %d", board);
2542 (void) sprintf(buffer, "Unrecognized board type board %d",
2543 board);
2705 * This routine walks the global fault list and updates the board list
2714 fhc_bd_t *bdlist; /* board list pointer */
2722 /* First lock the board list */
2728 /* clear the board list of all faults first */
2737 * If this is a board level fault, find the board, The
2738 * unit number for all board class faults must be the
2739 * actual board number. The caller of reg_fault must
2743 /* Sanity check the board first */
2748 cmn_err(CE_WARN, "No board %d list entry found",
2757 /* unlock the board list before leaving */
2767 fhc_add_memloc(int board, uint64_t pa, uint_t size)
2785 p->board = board;
2790 p->board, p->pa, p->size);
2796 * Delete all memloc records for a board from the database
2799 fhc_del_memloc(int board)
2805 /* delete all entries that match board */
2808 if (p->board == board) {
2811 "0x%x 0x%x", board, p->pa, p->size);
2902 fhc_program_memory(int board, uint64_t pa)
2910 /* XXX gross hack to get to board via board number */
2911 cpa = 0x1c0f9000060ull + (board * 0x400000000ull);
3041 * Power off any cpus on the board.
3044 fhc_board_poweroffcpus(int board, char *errbuf, int cpu_flags)
3053 * what type of board are we dealing with?
3055 type = fhc_bd_type(board);
3068 if ((cpa = cpu_get(FHC_BOARD2CPU_A(board))) != NULL &&
3086 (cpb = cpu_get(FHC_BOARD2CPU_B(board))) != NULL &&
3195 int board;
3205 * Lock the board so that we can safely access the
3208 board = FHC_CPU2BOARD(cp->cpu_id);
3209 bd_list = fhc_bdlist_lock(board);
3210 ASSERT(fhc_bd_valid(board) && (bd_list->sc.type == CPU_BOARD));
3334 int board;
3343 board = FHC_CPU2BOARD(cp->cpu_id);
3344 bd_list = fhc_bdlist_lock(board);
3364 * Do not leave board's other cpu idling in the prom.
3440 fhc_env_temp_state(int board)
3445 ASSERT(fhc_bd_valid(board));
3447 bdp = fhc_bd(board);
3454 * board connect and environ attach.
3474 /* if tod is not on clock board, */