Lines Matching defs:board

188 	int			board, i, status;
190 board = probe->pr_board;
197 printf("HWD: board %d\n", board);
207 printf("HWD:board offset = 0x%x\n", hdrp->hdr_sb_info_offset);
215 printf("HWD:board status =");
220 printf("HWD:board status = %d\n", statp->sb_status[board]);
308 opl_read_hwd(int board, hwd_header_t **hdrp, hwd_sb_status_t **statp,
317 uint32_t transid = board;
327 if (opl_boards[board].cfg_hwd == NULL) {
344 pfn = btop(OPL_HWD_BASE(board));
349 opl_boards[board].cfg_hwd = hwdp;
368 opl_boards[board].cfg_hwd = hwdp;
373 hwdp = opl_boards[board].cfg_hwd;
411 int board, ret;
413 board = probe->pr_board;
423 ret = opl_read_hwd(board, hdrp, statp, dinfop, sbp);
509 int portid, board, chip, channel, leaf;
518 ret = OPL_GET_PROP(int, node, "board#", &board, -1);
523 opl_boards[board].cfg_cpu_chips[chip] = node;
531 board = OPL_IO_PORTID_TO_LSB(portid);
536 opl_boards[board].cfg_cmuch_leaf = node;
541 opl_boards[board].cfg_pcich_leaf[channel][leaf] = node;
545 ret = OPL_GET_PROP(int, node, "board#", &board, -1);
549 ASSERT((board >= 0) && (board < HWD_SBS_PER_DOMAIN));
551 opl_boards[board].cfg_pseudo_mc = node;
927 OPL_UPDATE_PROP(int, node, "board#", probe->pr_board);
1003 int board, portid;
1013 board = probe->pr_board;
1019 portid = OPL_LSB_TO_PSEUDOMC_PORTID(board);
1022 range.rg_addr_hi = OPL_HI(OPL_MC_AS(board));
1028 OPL_UPDATE_PROP(int, node, "board#", board);
1029 OPL_UPDATE_PROP(int, node, "physical-board#",
1116 int board;
1120 board = probe->pr_board;
1121 board_cfg = &opl_boards[board];
1131 cmn_err(CE_WARN, "IKP: create pseudo-mc (%d) failed", board);
2299 int board, channel, leaf;
2313 board = OPL_IO_PORTID_TO_LSB(portid);
2317 if ((board >= HWD_SBS_PER_DOMAIN) || !OPL_VALID_CHANNEL(channel) ||
2372 int board;
2379 board = probe->pr_board;
2383 board_cfg = &opl_boards[board];
2519 int len, portid, board, channel, leaf;
2545 ret = OPL_GET_PROP(int, node, "board#",
2546 &board, -1);
2548 (board != myboard)) {
2553 cfg = &opl_boards[board];
2645 opl_probe_sb(int board, unsigned *cpu_impl)
2650 if ((board < 0) || (board >= HWD_SBS_PER_DOMAIN))
2657 * board, we need to unprobe the board and start with a clean slate.
2659 if ((opl_boards[board].cfg_hwd != NULL) &&
2660 (opl_unprobe_sb(board) != 0))
2666 probe->pr_board = board;
2679 (void) opl_unprobe_sb(board);
2695 opl_unprobe_io(int board)
2703 board_cfg = &opl_boards[board];
2730 "failed", board, i, j);
2758 cmn_err(CE_WARN, "IKP: destroy pci (%d-%d-%d) failed", board,
2769 * Destroy the "pseudo-mc" node for a board.
2772 opl_unprobe_memory(int board)
2776 board_cfg = &opl_boards[board];
2783 cmn_err(CE_WARN, "IKP: destroy pseudo-mc (%d) failed", board);
2793 * Destroy the "cmp" nodes for a board. This also destroys the "core"
2797 opl_unprobe_processors(int board)
2802 cfg_cpu_chips = opl_boards[board].cfg_cpu_chips;
2812 board, i);
2830 opl_unprobe_sb(int board)
2832 if ((board < 0) || (board >= HWD_SBS_PER_DOMAIN))
2837 if ((opl_unprobe_io(board) != 0) ||
2839 (opl_unprobe_memory(board) != 0) ||
2841 (opl_unprobe_processors(board) != 0))
2845 if (opl_boards[board].cfg_hwd != NULL) {
2850 void *hwdp = opl_boards[board].cfg_hwd;
2851 opl_boards[board].cfg_hwd = NULL;