Lines Matching refs:board
65 #define FHC_B_SEARCH(in_array, board) \
66 fhc_b_search(in_array.boards, board, 0, in_array.last);
87 fhc_bd_disabled(int board)
92 index = FHC_B_SEARCH(boards, board);
140 j >= lb && a[j]->sc.board > t->sc.board;
153 fhc_b_search(fhc_bd_t *in_array[], int board, int first, int last)
164 if (in_array[mid]->sc.board < board)
170 if (in_array[first]->sc.board == board) {
204 fhc_bd_busy(int board)
209 index = FHC_B_SEARCH(boards, board);
215 fhc_bd_is_jtag_master(int board)
220 index = FHC_B_SEARCH(boards, board);
229 fhc_bd_is_plus(int board)
234 index = FHC_B_SEARCH(boards, board);
265 fhc_bdlist_lock(int board)
274 if (board == -1)
278 index = FHC_B_SEARCH(boards, board);
313 fhc_bd_init(struct fhc_soft_state *softsp, int board, enum board_type type)
320 /* See if board already exists. */
324 index = FHC_B_SEARCH(clocks, board);
326 index = FHC_B_SEARCH(boards, board);
329 /* If index == -1 board does not exist. */
358 bdp->sc.board = board;
369 fhc_bd(int board)
377 index = FHC_B_SEARCH(boards, board);
407 index = FHC_B_SEARCH(boards, bdp->sc.board);
434 fhc_bd_type(int board)
439 index = FHC_B_SEARCH(boards, board);
494 fhc_bd_env_set(int board, void *env)
498 bdp = fhc_bd(board);
507 int board;
513 * Find the disabled board list property if present.
515 * The disabled board list is in the options node under root;
517 * Each char represents a board. The driver must
522 ((len = prom_getproplen(node, "disabled-board-list")) == -1))
526 (void) prom_getprop(node, "disabled-board-list", dlist);
529 * now loop thru the string, and create disabled board list
536 board = ch - '0';
538 board = ch - 'A' + 10;
540 board = ch - 'a' + 10;
545 index = FHC_B_SEARCH(boards, board);
570 ASSERT(fhc_bd_valid(sc->board));
572 uip->board = sc->board;
611 bdp->ksp = kstat_create("unix", bdp->sc.board,
634 if (strcmp(ddi_node_name(dnode), "disk-board") == 0) {
636 int board;
641 * Get the board number property.
643 if ((board = (int)ddi_getprop(DDI_DEV_T_ANY, dnode,
646 "Could not find board number");
649 bdp = fhc_bd(board);
684 * Disk board do not have softsp set.
708 int board;
720 for (board = first; board < count; board += incr) {
725 index = fhc_b_search(boards.boards, board, 0,
732 boards.boards[boards.last + 1]->sc.board = board;
745 * Initialize our copy of the disabled board list.
755 * Go through the board list, skipping illegal slots
760 board = sc->board;
782 board,
789 * failed. A failed board is physically
792 * NOTE: a non-present board which is
793 * (potentially) on the disabled board
797 if (fhc_bd_disabled(board)) {
882 cmn_err(CE_WARN, "board %d, cpu module %c "
883 "unknown type", sc->board,
897 int board;
909 board = sc->board;
913 * states. We need to check a board in the
921 continue; /* no board present */
933 * Scan the FHC to turn off the board insert
937 (void) jtag_init_disk_board(jtm->jtag_cmd, board,
941 board, type, &fhc_csr, &fhc_bsr, FALSE);
958 * A replugged board will still have its kstat info.
986 cmn_err(CE_WARN, "Could not find hotplugged core system board");
1012 * While there is a board in the disconnected state
1013 * continue polling. When the last board is removed,
1022 * Scan to see if the board is still in.
1039 fhc_bd_detachable(int board)
1041 fhc_bd_t *bdp = fhc_bd(board);
1057 fhc_bd_update(int board, sysc_evt_t evt)
1061 ASSERT(fhc_bd_valid(board));
1071 bdp = fhc_bdlist_lock(board);
1080 fhc_bd_test(int board, sysc_cfga_pkt_t *pkt)
1088 ASSERT(fhc_bd_busy(board));
1090 bdp = fhc_bd(board);
1095 cmn_err(CE_NOTE, "fhc_bd_test: simulate board %d insertion",
1096 board);
1102 (void) jtag_powerdown_board(jtm->jtag_cmd, board,
1106 cmn_err(CE_NOTE, "fhc_bd_test: simulate board %d removal",
1107 board);
1117 "fhc_bd_test: invalid board state: %d", board);
1125 * force a board condition for test purpose
1129 fhc_bd_test_set_cond(int board, sysc_cfga_pkt_t *sysc_pkt)
1136 ASSERT(fhc_bd_busy(board));
1138 bdp = fhc_bd(board);