/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | ns8390.c | 144 while((inb(eth_asic_base + _3COM_STREG) & _3COM_STREG_DPRDY) == 0) 153 *(dst++) = inb(eth_asic_base + ASIC_PIO); 197 while((inb(eth_asic_base + _3COM_STREG) & _3COM_STREG_DPRDY) == 0) in eth_pio_write() 215 (inb(eth_nic_base + D8390_P0_ISR) & D8390_ISR_RDC) in eth_pio_write() 222 while((inb(eth_nic_base + D8390_P0_ISR) & D8390_ISR_RDC) in eth_pio_write() 248 if(inb(eth_nic_base + 8 + i)!=mcfilter[i]) in enable_multicast() 414 inb(0x84); in ns8390_transmit() 420 inb(0x84); in ns8390_transmit() 422 inb(0x84); in ns8390_transmit() 432 inb(0x84); in ns8390_transmit() [all …]
|
H A D | via-rhine.c | 746 byMIIAdrbak = inb (byMIIAD); in ReadMII() 747 byMIICRbak = inb (byMIICR); in ReadMII() 754 outb (inb (byMIICR) | 0x40, byMIICR); in ReadMII() 756 byMIItemp = inb (byMIICR); in ReadMII() 761 byMIItemp = inb (byMIICR); in ReadMII() 786 byMIIAdrbak = inb (byMIIAD); in WriteMII() 788 byMIICRbak = inb (byMIICR); in WriteMII() 794 outb (inb (byMIICR) | 0x40, byMIICR); in WriteMII() 796 byMIItemp = inb (byMIICR); in WriteMII() 801 byMIItemp = inb (byMIICR); in WriteMII() [all …]
|
H A D | pic8259.h | 49 #define irq_enabled(x) ( ( inb ( IMR_REG(x) ) & IMR_BIT(x) ) == 0 ) 50 #define enable_irq(x) outb ( inb( IMR_REG(x) ) & ~IMR_BIT(x), IMR_REG(x) ) 51 #define disable_irq(x) outb ( inb( IMR_REG(x) ) | IMR_BIT(x), IMR_REG(x) )
|
H A D | rtl8139.c | 212 speed10 = inb(nic->ioaddr + MediaStatus) & MSRSpeed10; in rtl8139_probe() 220 if (inb(nic->ioaddr + MediaStatus) & MSRLinkFail) { in rtl8139_probe() 281 retval = (retval << 1) | ((inb(ee_addr) & EE_DATA_READ) ? 1 : 0); in read_eeprom() 321 while ((inb(nic->ioaddr + ChipCmd) & CmdReset) != 0 && in rtl_reset() 429 if (inb(nic->ioaddr + ChipCmd) & RxBufEmpty) { in rtl_poll() 523 while ((inb(nic->ioaddr + ChipCmd) & CmdReset) != 0 && timer2_running()) in rtl_disable()
|
H A D | i386_timer.c | 29 outb((inb(PPC_PORTB) & ~PPCB_SPKR) | PPCB_T2GATE, PPC_PORTB); in __load_timer2() 40 return ((inb(PPC_PORTB) & PPCB_T2OUT) == 0); in __timer2_running()
|
H A D | 3c595.c | 118 inb(BASE + VX_W1_TX_STATUS); in t595_reset() 192 while(( status=inb(BASE + VX_W1_TX_STATUS) )& TXS_COMPLETE ) { in t595_transmit() 271 nic->packet[rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll() 284 nic->packet[nic->packetlen+rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll()
|
/illumos-gate/usr/src/uts/i86pc/dboot/ |
H A D | dboot_asm.S | 60 ENTRY(inb) 63 inb (%dx) 65 SET_SIZE(inb) 107 ENTRY_NP(inb) 109 inb (%dx) 112 SET_SIZE(inb)
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | todpc_subr.c | 371 reg = inb(RTC_DATA); in todpc_rtcget() 382 reg = inb(RTC_DATA); in todpc_rtcget() 390 *rawp++ = inb(RTC_DATA); in todpc_rtcget() 393 ((struct rtc_t *)buf)->rtc_century = inb(RTC_DATA); in todpc_rtcget() 397 ((struct rtc_t *)buf)->rtc_adom = inb(RTC_DATA) & 0x3f; in todpc_rtcget() 401 ((struct rtc_t *)buf)->rtc_amon = inb(RTC_DATA); in todpc_rtcget() 405 reg = inb(RTC_DATA); in todpc_rtcget() 435 reg = inb(RTC_DATA); in todpc_rtcput() 448 tmp = inb(RTC_DATA) & RTC_VRT; in todpc_rtcput() 458 reg = inb(RTC_DATA); in todpc_rtcput()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | i8237A.c | 244 if ((istate = (inb(EISA_DMAIS) & 0xef)) != 0) { in d37A_intr() 254 mask = inb(DMAC1_ALLMASK) >> (chnl); in d37A_intr() 256 mask = inb(DMAC2_ALLMASK) >> (chnl - 4); in d37A_intr() 720 adr_byte[0] = inb(chan_addr[chnl].addr_reg); in d37A_read_addr() 721 adr_byte[1] = inb(chan_addr[chnl].addr_reg); in d37A_read_addr() 722 adr_byte[2] = inb(chan_addr[chnl].page_reg); in d37A_read_addr() 724 adr_byte[3] = inb(chan_addr[chnl].hpage_reg); in d37A_read_addr() 819 count_byte[0] = inb(chan_addr[chnl].cnt_reg); in d37A_read_count() 820 count_byte[1] = inb(chan_addr[chnl].cnt_reg); in d37A_read_count() 822 count_byte[2] = inb(chan_addr[chnl].hcnt_reg); in d37A_read_count()
|
H A D | fdc.c | 481 stat = inb(ioaddr + FCR_MSR); in fdc_probe() 589 fcp->c_mode = (inb(fcp->c_regbase + FCR_SRB) & 0x1c) ? in fdc_attach() 722 (inb(fcp->c_regbase + FCR_DIR) & 0x70) == 0) in fdc_propinit2() 731 if ((inb(fcp->c_regbase + FCR_DIR) & in fdc_propinit2() 777 save = inb(fcp->c_regbase + FCR_SRA); in fdc_enhance_probe() 789 if (inb(fcp->c_regbase + FCR_SRB) != 0x00) in fdc_enhance_probe() 793 if (inb(fcp->c_regbase + FCR_SRB) != 0x65) in fdc_enhance_probe() 797 result = inb(fcp->c_regbase + FCR_SRB); in fdc_enhance_probe() 817 if (inb(fcp->c_regbase + FCR_SRB) != 0x00) in fdc_enhance_probe() 821 if (inb(fcp->c_regbase + FCR_SRB) != 0x66) in fdc_enhance_probe() [all …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | isapnp.c | 39 #define inb(x) (archsw.arch_isainb((x))) macro 99 bit = inb(isapnp_readport) == 0x55; in isapnp_get_serial() 103 bit = (inb(isapnp_readport) == 0xaa) && bit; in isapnp_get_serial() 134 if ((inb(isapnp_readport)) & 0x1) in isapnp_get_resource_info() 143 temp = inb(isapnp_readport); in isapnp_get_resource_info()
|
/illumos-gate/usr/src/uts/i86pc/boot/ |
H A D | boot_vga.c | 321 (void) inb(VGA_REG_ADDR + CGA_STAT); in vga_set_atr() 325 (void) inb(VGA_REG_ADDR + CGA_STAT); in vga_set_atr() 334 (void) inb(VGA_REG_ADDR + CGA_STAT); in vga_get_atr() 336 val = inb(VGA_REG_ADDR + VGA_ATR_DATA); in vga_get_atr() 338 (void) inb(VGA_REG_ADDR + CGA_STAT); in vga_get_atr() 355 return (inb(VGA_REG_ADDR + VGA_CRTC_DATA)); in vga_get_crtc()
|
H A D | boot_keyboard.c | 224 buffer_stat = inb(I8042_STAT); in kb_ischar() 237 (void) inb(I8042_DATA); in kb_ischar() 241 code = inb(I8042_DATA); in kb_ischar() 473 (inb(I8042_STAT) & I8042_STAT_INBF) != 0 && retries < 100000; in kb_send()
|
H A D | boot_console.c | 139 if (inb(port + ISR) & 0x20) { in serial_init() 160 if ((inb(port + ISR) & 0xc0) != 0xc0) { in serial_init() 873 while (((inb(port + LSR) & XHRE) == 0) && checks--) in serial_putchar() 886 lsr = inb(port + LSR); in serial_getchar() 890 return (inb(port + DAT)); in serial_getchar() 893 (void) inb(port + DAT); in serial_getchar() 897 return (inb(port + DAT)); in serial_getchar() 903 return (inb(port + LSR) & RCA); in serial_ischar()
|
/illumos-gate/usr/src/uts/intel/io/acpica/ |
H A D | acpica_ec.c | 128 while (inb(sc_addr) & EC_IBF) { in ec_wait_ibf_clear() 146 while (!(inb(sc_addr) & EC_OBF)) { in ec_wait_obf_set() 164 sc = inb(ec.ec_sc); in ec_rd() 198 rv = inb(ec.ec_base); in ec_rd() 213 sc = inb(ec.ec_sc); in ec_wr() 278 rv = inb(ec.ec_base); in ec_query() 355 if (!(inb(ec.ec_sc) & EC_SCI)) in ec_gpe_callback() 607 if (inb(ec.ec_sc) & EC_OBF) { in ec_init() 608 x = inb(ec.ec_base); /* read and discard value */ in ec_init()
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | vidconsole.c | 1021 inb(IO_DUMMY); inb(IO_DUMMY); in delay7() 1022 inb(IO_DUMMY); inb(IO_DUMMY); in delay7() 1023 inb(IO_DUMMY); inb(IO_DUMMY); in delay7() 1040 (void) inb(0x84); in delay1ms() 1060 while (inb(IO_KBD + KBD_STATUS_PORT) & KBDS_ANY_BUFFER_FULL) { in probe_keyboard() 1062 inb(IO_KBD + KBD_DATA_PORT); in probe_keyboard() 1068 if (((i = inb(IO_KBD + KBD_STATUS_PORT)) & in probe_keyboard() 1074 inb(IO_KBD + KBD_DATA_PORT); in probe_keyboard() 1086 if (inb(IO_KBD + KBD_STATUS_PORT) & in probe_keyboard() 1095 i = inb(IO_KBD + KBD_DATA_PORT); in probe_keyboard()
|
H A D | comconsole.c | 111 return (inb(ioaddr + com_scr) == COMC_TEST); in comc_port_is_present() 318 if (inb(sp->ioaddr + com_lsr) & LSR_TXRDY) { in comc_putchar() 328 return (comc_ischar(cp) ? inb(sp->ioaddr + com_data) : -1); in comc_getchar() 335 return (inb(sp->ioaddr + com_lsr) & LSR_RXRDY); in comc_ischar() 678 inb(sp->ioaddr + com_data); in comc_setup() 679 } while (inb(sp->ioaddr + com_lsr) & LSR_RXRDY && ++tries < TRY_COUNT); in comc_setup() 696 cfcr = inb(ioaddr + com_cfcr); in comc_getspeed() 699 dlbl = inb(ioaddr + com_dlbl); in comc_getspeed() 700 dlbh = inb(ioaddr + com_dlbh); in comc_getspeed()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | tscc_pit.c | 114 (void) inb(PITCTR0_PORT); in pit_sanity_check() 115 pit_count = inb(PITCTR0_PORT); in pit_sanity_check() 116 pit_count |= inb(PITCTR0_PORT) << 8; in pit_sanity_check()
|
H A D | pci_neptune.c | 58 oldstatus = inb(PCI_CSE_PORT); in pci_check_neptune() 72 (inb(PCI_CADDR2(0, PCI_CONF_REVID)) & 0xf0) != 0x10) { in pci_check_neptune() 98 neptune_BIOS_cfg_method = inb(PCI_PMC); in pci_check_neptune()
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | serial.c | 69 inb (unsigned short port) in inb() function 91 if (inb (serial_hw_port + UART_LSR) & UART_DATA_READY) in serial_hw_fetch() 92 return inb (serial_hw_port + UART_RX); in serial_hw_fetch() 104 while ((inb (serial_hw_port + UART_LSR) & UART_EMPTY_TRANSMITTER) == 0) in serial_hw_put() 151 status = inb (port + UART_SR); in serial_hw_init()
|
/illumos-gate/usr/src/uts/i86pc/io/pcplusmp/ |
H A D | apic_common.c | 1150 pit_tick_lo = inb(PITCTR0_PORT); in apic_calibrate_pit() 1151 pit_tick = (inb(PITCTR0_PORT) << 8) | pit_tick_lo; in apic_calibrate_pit() 1162 pit_tick_lo = inb(PITCTR0_PORT); in apic_calibrate_pit() 1163 pit_tick = (inb(PITCTR0_PORT) << 8) | pit_tick_lo; in apic_calibrate_pit() 1173 pit_tick_lo = inb(PITCTR0_PORT); in apic_calibrate_pit() 1174 pit_tick = (inb(PITCTR0_PORT) << 8) | pit_tick_lo; in apic_calibrate_pit() 1455 byte = inb(CMOS_DATA); in apic_shutdown() 1461 byte = inb(CMOS_DATA); in apic_shutdown() 1474 byte = inb(CMOS_DATA); in apic_shutdown() 1489 byte = inb(MISMIC_FLAG_REGISTER); in apic_shutdown() [all …]
|
/illumos-gate/usr/src/test/bhyve-tests/tests/kdev/ |
H A D | payload_vatpit_freq.c | 44 val = inb(IOP_ATPIT_C0); in timer0_read() 45 val |= (uint16_t)inb(IOP_ATPIT_C0) << 8; in timer0_read()
|
/illumos-gate/usr/src/boot/i386/gptzfsboot/ |
H A D | sio.S | 65 sio_putc.1: inb (%dx),%al # Transmitter 79 inb (%dx),%al # Read character 87 inb (%dx),%al # Received data
|
/illumos-gate/usr/src/test/bhyve-tests/tests/common/ |
H A D | payload_utils.S | 44 ENTRY(inb) 46 inb (%dx) 48 SET_SIZE(inb)
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | glue4.c | 26 char *inp, inb[500]; in grepcall() local 32 strcpy(inp = inb, in); in grepcall()
|