Lines Matching defs:brdctl
588 uint8_t brdctl;
597 brdctl = read_brdctl(ahc);
598 *eeprom_present = brdctl & BRDDAT7;
599 *enableSEC_high = (brdctl & BRDDAT6);
600 *enableSEC_low = (brdctl & BRDDAT5);
601 *enablePRI_high = (brdctl & BRDDAT4);
602 *enablePRI_low = (brdctl & BRDDAT3);
610 uint8_t brdctl;
626 brdctl = read_brdctl(ahc);
627 *internal50_present = (brdctl & BRDDAT6) ? 0 : 1;
628 *internal68_present = (brdctl & BRDDAT7) ? 0 : 1;
641 brdctl = read_brdctl(ahc);
642 *externalcable_present = (brdctl & BRDDAT6) ? 0 : 1;
643 *eeprom_present = (brdctl & BRDDAT7) ? 1 : 0;
650 uint8_t brdctl;
657 ahc_outb(ahc, BRDCTL, BRDRW|BRDCS);
658 ahc_outb(ahc, BRDCTL, 0);
659 brdctl = ahc_inb(ahc, BRDCTL);
660 *internal50_present = (brdctl & BRDDAT5) ? 0 : 1;
661 *externalcable_present = (brdctl & BRDDAT6) ? 0 : 1;
704 uint8_t brdctl;
707 brdctl = BRDSTB;
709 brdctl |= BRDCS;
711 brdctl = 0;
713 brdctl = BRDSTB|BRDCS;
715 ahc_outb(ahc, BRDCTL, brdctl);
717 brdctl |= value;
718 ahc_outb(ahc, BRDCTL, brdctl);
721 brdctl |= BRDSTB_ULTRA2;
723 brdctl &= ~BRDSTB;
724 ahc_outb(ahc, BRDCTL, brdctl);
727 brdctl = 0;
729 brdctl &= ~BRDCS;
730 ahc_outb(ahc, BRDCTL, brdctl);
736 uint8_t brdctl;
740 brdctl = BRDRW;
742 brdctl |= BRDCS;
744 brdctl = BRDRW_ULTRA2;
746 brdctl = BRDRW|BRDCS;
748 ahc_outb(ahc, BRDCTL, brdctl);
750 value = ahc_inb(ahc, BRDCTL);
751 ahc_outb(ahc, BRDCTL, 0);