Lines Matching defs:board
76 * Convert a showboard data structure to the board structure shared
80 sbdp_showbd_2_sbd_stat(show_board_t *shbp, sbd_stat_t *stp, int board)
86 stp->s_board = board;
119 int board = hp->h_board;
141 bdp = sbdp_get_bd_info(node, board);
143 informp->board = board;
162 SBDP_DBG_MISC("show board completed: rv = %d\n", rv);
165 * This domain has no access to this board. Return failure
182 * board info. If one exists turn the busy flag on
221 SBDP_DBG_MBOX("Showboard: board\t%d\n\trevision\t%d\n\ts_cond\t%d\n\t"
225 board, shbp->revision, shbp->s_cond, shbp->s_power,
232 sbdp_showbd_2_sbd_stat(shbp, stp, board);
243 * Entry point from sbd. Call down to the SC to assign the board
249 int board = hp->h_board;
271 informp->board = board;
285 SBDP_DBG_MISC("failed to assign board: rv = %d\n", rv);
294 * Entry point from sbd. Call down to the SC to unassign the board
300 int board = hp->h_board;
322 informp->board = board;
336 SBDP_DBG_MISC("failed to unassign board: rv = %d\n", rv);
386 * board. As a side effect the SC updates the pda info so obp can create the
387 * device tree. If we are successful, we ask OBP to probe the board. OBP
399 int board, node;
406 board = hp->h_board;
424 reqp->msg_data[1] = board;
431 SBDP_DBG_MISC("failed to claim board: rv = %d\n", rv);
439 SBDP_DBG_MISC("failed to prom attach board: rv = %d\n", rv);
446 reqp->msg_data[1] = board;
456 sbdp_attach_bd(node, board);
464 if (sbdp_board_non_panther_cpus(node, board) > 0 &&
467 "UltraSPARC-IV+ board into an all UltraSPARC-IV+ domain");
474 * Now that the board has been successfully attached, obtain
475 * platform-specific DIMM serial id information for the board.
477 if (SG_BOARD_IS_CPU_TYPE(board) &&
479 (void) plat_request_mem_sids(board);
489 * We call the SC to "detach/unclain" the board. A side effect is that the
490 * SC will clear the pda entries for this board
498 int board, node;
504 board = hp->h_board;
508 SBDP_DBG_MISC("sbdp_disconnect_board: board = %d node = %d\n",
509 board, node);
519 if (sbdp_detach_bd(node, board, sep)) {
520 sbdp_attach_bd(node, board);
521 SBDP_DBG_ALL("failed to detach board %d\n", board);
530 sbdp_attach_bd(node, board);
531 SBDP_DBG_MISC("failed to prom detach board: rv = %d\n", rv);
543 reqp->msg_data[1] = board;
550 SBDP_DBG_MISC("failed to unclaim board: rv = %d\n", rv);
558 * Now that the board has been successfully detached, discard
559 * platform-specific DIMM serial id information for the board.
561 if (!rv && SG_BOARD_IS_CPU_TYPE(board) &&
563 (void) plat_discard_mem_sids(board);
570 * Entry point from sbd. Very simple. Just ask the SC to poweoff the board
602 informp->board = hp->h_board;
615 SBDP_DBG_MISC("failed to poweroff board: rv = %d\n", rv);
624 * Entry point from sbd. Ask the SC to poweron the board
637 int board = hp->h_board;
652 if (SG_BOARD_IS_CPU_TYPE(board)) {
659 informp->board = hp->h_board;
672 SBDP_DBG_MISC("failed to poweron board: rv = %d\n", rv);
720 * Entry point from sbd. Ask the SC to test the board. We still need to
724 * with a cpu/mem board or an io board. In the case of a cpu/mem board it
725 * means retest the board to the diag level specified. In the case of an IO
726 * board, it means: Perform the necessary steps to prepare the board
732 int board = hp->h_board;
758 informp->info.board = board;
766 if (SG_BOARD_IS_CPU_TYPE(board))
789 SBDP_DBG_MISC("failed to test board: rv = %d status = %d\n",
801 * the entries for the two board numbers given