| /freebsd-12.1/sys/dev/ctau/ |
| H A D | ctau.c | 316 outb (0x20, 0x0a); in ct_probe_irq() 318 outb (0xa0, 0x0a); in ct_probe_irq() 1154 outb (c->IE0, 0); in ct_setup_chan() 1155 outb (c->IE1, 0); in ct_setup_chan() 1616 outb (base, reg); outb (rw, mask); /* lock bits */ in cte_ins() 1618 outb (base, reg); outb (rw, val); /* unlock bits */ in cte_ins() 1685 outb (port, v); in ctg_output() 1686 outb (port, v); in ctg_output() 1687 outb (port, v); in ctg_output() 1688 outb (port, v); in ctg_output() [all …]
|
| H A D | ctddk.c | 136 outb (BCR0(b->port), 0); in ct_close_board() 374 outb (IER0(c->board->port), ier0); in ct_start_chan() 410 outb (c->CMD, CMD_RX_DISABLE); in ct_enable_receive() 439 outb (c->TX.DIR, in ct_enable_transmit() 442 outb (c->CMD, CMD_TX_DISABLE); in ct_enable_transmit() 549 outb (BCR1(b->port), b->bcr1); in ct_int_handler() 927 outb (c->RX.DSR, dsr); in ct_hdlc_interrupt() 943 outb (c->ST1, st1); in ct_hdlc_interrupt() 944 outb (c->ST2, st2); in ct_hdlc_interrupt() 963 outb (c->RX.DSR, dsr); in ct_hdlc_interrupt() [all …]
|
| /freebsd-12.1/sys/dev/ppc/ |
| H A D | ppc.c | 724 outb(csr, 0xd); in ppc_smc37c66xgt_detect() 736 outb(csr, 0xd); in ppc_smc37c66xgt_detect() 756 outb(csr, 0x1); in ppc_smc37c66xgt_detect() 773 outb(csr, 0x1); in ppc_smc37c66xgt_detect() 777 outb(csr, 0x4); in ppc_smc37c66xgt_detect() 782 outb(csr, 0x1); in ppc_smc37c66xgt_detect() 877 outb(csr, 0xa); in ppc_smc37c66xgt_detect() 878 outb(cio, 16); in ppc_smc37c66xgt_detect() 888 outb(csr, 0x4); in ppc_smc37c66xgt_detect() 1049 outb(efir, 0x9); in ppc_w83877f_detect() [all …]
|
| /freebsd-12.1/sys/x86/isa/ |
| H A D | isa_dma.c | 219 outb(DMA1_SMSK, chan); in isa_dmacascade() 222 outb(DMA2_SMSK, chan & 3); in isa_dmacascade() 309 outb(DMA1_FFC, 0); in isa_dmastart() 313 outb(waport, phys); in isa_dmastart() 314 outb(waport, phys>>8); in isa_dmastart() 318 outb(waport + 1, --nbytes); in isa_dmastart() 322 outb(DMA1_SMSK, chan); in isa_dmastart() 342 outb(DMA2_FFC, 0); in isa_dmastart() 346 outb(waport, phys>>1); in isa_dmastart() 347 outb(waport, phys>>9); in isa_dmastart() [all …]
|
| H A D | clock.c | 199 outb(TIMER_CNTR2, freq & 0xff); in timer_spkr_setfreq() 200 outb(TIMER_CNTR2, freq >> 8); in timer_spkr_setfreq() 345 outb(TIMER_MODE, new_mode); in set_i8254_freq() 346 outb(TIMER_CNTR0, 0); in set_i8254_freq() 347 outb(TIMER_CNTR0, 0); in set_i8254_freq() 351 outb(TIMER_MODE, new_mode); in set_i8254_freq() 352 outb(TIMER_CNTR0, new_count & 0xff); in set_i8254_freq() 353 outb(TIMER_CNTR0, new_count >> 8); in set_i8254_freq() 359 outb(TIMER_MODE, new_mode); in set_i8254_freq() 365 outb(TIMER_MODE, new_mode); in set_i8254_freq() [all …]
|
| H A D | atpic.c | 185 outb(atpics[MASTER].at_ioaddr, OCW2_EOI); in _atpic_eoi_master() 200 outb(atpics[SLAVE].at_ioaddr, OCW2_EOI); in _atpic_eoi_slave() 202 outb(atpics[MASTER].at_ioaddr, OCW2_EOI); in _atpic_eoi_slave() 421 outb(imr_addr, pic->at_intbase); in i8259_init() 429 outb(imr_addr, ICU_SLAVEID); in i8259_init() 431 outb(imr_addr, IRQ_MASK(ICU_SLAVEID)); in i8259_init() 435 outb(imr_addr, SLAVE_MODE); in i8259_init() 437 outb(imr_addr, MASTER_MODE); in i8259_init() 440 outb(imr_addr, pic->at_imen); in i8259_init() 443 outb(pic->at_ioaddr, OCW3_SEL | OCW3_RR); in i8259_init() [all …]
|
| H A D | elcr.c | 126 outb(ELCR_PORT + 1, elcr_status >> 8); in elcr_write_trigger() 128 outb(ELCR_PORT, elcr_status & 0xff); in elcr_write_trigger() 136 outb(ELCR_PORT, elcr_status & 0xff); in elcr_resume() 137 outb(ELCR_PORT + 1, elcr_status >> 8); in elcr_resume()
|
| /freebsd-12.1/lib/libvgl/ |
| H A D | simple.c | 135 outb(0x3c4, 0x02); outb(0x3c5, 0x0f); in VGLSetXY() 180 outb(0x3ce, 0x04); outb(0x3cf, x & 0x3); in VGLGetXY() 194 outb(0x3ce, 0x04); outb(0x3cf, i); in VGLGetXY() 551 outb(0x3c4, 0x02); outb(0x3c5, 0x0f); in VGLClear() 558 outb(0x3c4, 0x02); outb(0x3c5, 0x0f); in VGLClear() 559 outb(0x3ce, 0x05); outb(0x3cf, 0x02); /* mode 2 */ in VGLClear() 561 outb(0x3ce, 0x08); outb(0x3cf, 0xff); /* bit mask */ in VGLClear() 569 outb(0x3ce, 0x05); outb(0x3cf, 0x00); in VGLClear() 651 outb(0x3C9, red); outb(0x3C9, green); outb(0x3C9, blue); in VGLSetPaletteIndex() 661 outb(0x3C0,0x11); outb(0x3C0, color); in VGLSetBorder() [all …]
|
| H A D | main.c | 415 outb(0x3c6, 0xff); in VGLCheckSwitch() 416 outb(0x3ce, 0x01); outb(0x3cf, 0x00); /* set/reset enable */ in VGLCheckSwitch() 417 outb(0x3ce, 0x08); outb(0x3cf, 0xff); /* bit mask */ in VGLCheckSwitch() 424 outb(0x3c4, 0x02); in VGLCheckSwitch() 433 outb(0x3c6, 0xff); in VGLCheckSwitch() 434 outb(0x3ce, 0x01); outb(0x3cf, 0x00); /* set/reset enable */ in VGLCheckSwitch() 435 outb(0x3ce, 0x08); outb(0x3cf, 0xff); /* bit mask */ in VGLCheckSwitch() 437 outb(0x3c4, 0x02); in VGLCheckSwitch() 471 outb(0x3cf, i); in VGLCheckSwitch() 484 outb(0x3ce, 0x04); in VGLCheckSwitch() [all …]
|
| H A D | bitmap.c | 93 outb(0x3ce, 0x01); outb(0x3cf, 0x00); /* set/reset enable */ in WriteVerticalLine() 94 outb(0x3ce, 0x08); outb(0x3cf, 0xff); /* bit mask */ in WriteVerticalLine() 96 outb(0x3c4, 0x02); in WriteVerticalLine() 98 outb(0x3ce, 0x04); in WriteVerticalLine() 99 outb(0x3cf, i); in WriteVerticalLine() 130 outb(0x3c4, 0x02); in WriteVerticalLine() 199 outb(0x3ce, 0x04); in ReadVerticalLine() 200 outb(0x3cf, i); in ReadVerticalLine() 223 outb(0x3ce, 0x04); in ReadVerticalLine() 224 outb(0x3cf, i); in ReadVerticalLine() [all …]
|
| H A D | mouse.c | 118 outb(0x3c4, crtcidx); in VGLMousePointerShow() 119 outb(0x3c5, crtcval); in VGLMousePointerShow() 120 outb(0x3ce, gdcidx); in VGLMousePointerShow() 121 outb(0x3cf, gdcval); in VGLMousePointerShow() 138 outb(0x3c4, crtcidx); in VGLMousePointerHide() 139 outb(0x3c5, crtcval); in VGLMousePointerHide() 140 outb(0x3ce, gdcidx); in VGLMousePointerHide() 141 outb(0x3cf, gdcval); in VGLMousePointerHide()
|
| /freebsd-12.1/sys/dev/fb/ |
| H A D | vga.c | 1755 outb(TSIDX, 0x00); outb(TSREG, 0x01); in set_font_mode() 1757 outb(TSIDX, 0x02); outb(TSREG, 0x04); in set_font_mode() 1791 outb(ATC, 0x10); outb(ATC, buf[5]); in set_normal_mode() 1876 outb(TSIDX, 0x00); outb(TSREG, 0x01); in vga_save_font() 1879 outb(TSIDX, 0x00); outb(TSREG, 0x03); in vga_save_font() 1898 outb(TSIDX, 0x00); outb(TSREG, 0x01); in vga_save_font() 1900 outb(TSIDX, 0x00); outb(TSREG, 0x03); in vga_save_font() 1956 outb(TSIDX, 0x00); outb(TSREG, 0x01); in vga_load_font() 1959 outb(TSIDX, 0x00); outb(TSREG, 0x03); in vga_load_font() 1978 outb(TSIDX, 0x00); outb(TSREG, 0x01); in vga_load_font() [all …]
|
| /freebsd-12.1/sys/dev/cx/ |
| H A D | csigma.c | 82 outb (port, cmd); in cx_cmd() 132 outb (BCR0(port), 0); in cx_download() 207 outb (BCR0(port), 0); in cx_probe_800_chained_board() 208 outb (BCR1(port), 0); in cx_probe_800_chained_board() 209 outb (BCR2(port), 0); in cx_probe_800_chained_board() 296 outb (BCR0(port), 0); in cx_probe_board() 352 outb (0x20, 0x0a); in cx_probe_irq() 354 outb (0xa0, 0x0a); in cx_probe_irq() 359 outb (CAR(port), 0); in cx_probe_irq() 370 outb (0x20, 0x62); in cx_probe_irq() [all …]
|
| H A D | cxddk.c | 102 outb (BCR0(b->port), 0); in cx_close_board() 104 outb (BCR0(b->port+0x10), 0); in cx_close_board() 132 outb (CAR(c->port), c->num & 3); in cx_start_chan() 185 outb (IER(c->port), ier); in cx_start_chan() 287 outb (RBPR(c->port), 1); in cx_set_baud() 294 outb (TBPR(c->port), period); in cx_set_baud() 303 outb (TBPR(c->port), 1); in cx_set_baud() 308 outb (RBPR(c->port), 1); in cx_set_baud() 465 outb (sts_port, BSTS_OWN24); in cx_receive_interrupt() 603 outb (MEOIR(c->port), 0); in cx_int_handler() [all …]
|
| H A D | machdep.h | 29 # define outb(port,b) outportb(port,b) macro 41 # define outb(port,b) outp((unsigned short)(port),b) macro 58 { outb (byte, port); } in __ddk_outb() 61 # undef outb 63 # define outb(port,val) __ddk_outb(port, val) macro
|
| /freebsd-12.1/stand/common/ |
| H A D | isapnp.c | 41 #define outb(x,y) (archsw.arch_isaoutb((x),(y))) macro 63 outb (_PNP_ADDRESS, d); in isapnp_write() 64 outb (_PNP_WRITE_DATA, r); in isapnp_write() 77 outb(_PNP_ADDRESS, 0); in isapnp_send_Initiation_LFSR() 78 outb(_PNP_ADDRESS, 0); /* yes, we do need it twice! */ in isapnp_send_Initiation_LFSR() 81 outb(_PNP_ADDRESS, cur); in isapnp_send_Initiation_LFSR() 85 outb(_PNP_ADDRESS, cur); in isapnp_send_Initiation_LFSR() 98 outb(_PNP_ADDRESS, SERIAL_ISOLATION); in isapnp_get_serial() 132 outb(_PNP_ADDRESS, STATUS); in isapnp_get_resource_info() 142 outb(_PNP_ADDRESS, RESOURCE_DATA); in isapnp_get_resource_info() [all …]
|
| /freebsd-12.1/contrib/gdb/gdb/ |
| H A D | ser-go32.c | 492 outb (port, com_cfcr, 0); in dos_open() 493 outb (port, com_iir, 0); in dos_open() 505 outb (port, com_ier, 0); in dos_open() 508 outb (port, com_fifo, in dos_open() 524 outb (port, com_mcr, 0); in dos_open() 525 outb (port, com_fifo, 0); in dos_open() 545 outb (port, com_dlbh, i >> 8); in dos_open() 581 outb (port, com_fifo, 0); in dos_close() 582 outb (port, com_ier, 0); in dos_close() 587 outb (port, com_mcr, 0); in dos_close() [all …]
|
| /freebsd-12.1/sys/dev/ep/ |
| H A D | if_ep_isa.c | 122 outb(id_port, EEPROM_CMD_RD | offset); in get_eeprom_data() 167 outb(ELINK_ID_PORT, 0); in ep_isa_identify() 168 outb(ELINK_ID_PORT, 0); in ep_isa_identify() 176 outb(ELINK_ID_PORT, 0); in ep_isa_identify() 177 outb(ELINK_ID_PORT, 0); in ep_isa_identify() 186 outb(ELINK_ID_PORT, 0xd0); in ep_isa_identify() 188 outb(ELINK_ID_PORT, 0xd8); in ep_isa_identify() 230 outb(ELINK_ID_PORT, tag--); in ep_isa_identify() 248 outb(ELINK_ID_PORT, tag--); in ep_isa_identify() 253 outb(ELINK_ID_PORT, tag--); in ep_isa_identify() [all …]
|
| H A D | elink.c | 62 outb(ELINK_ID_PORT, ELINK_RESET); in elink_reset() 64 outb(ELINK_ID_PORT, 0x00); in elink_reset() 65 outb(ELINK_ID_PORT, 0x00); in elink_reset() 82 outb(ELINK_ID_PORT, c); in elink_idseq()
|
| /freebsd-12.1/stand/i386/libi386/ |
| H A D | relocater_tramp.S | 171 outb %al,$0xa0 # slave 173 outb %al,$0x21 # master 175 outb %al,$0xa1 # slave 177 outb %al,$0x21 # master 179 outb %al,$0xa1 # slave 182 outb %al,$0xa1 # slave 184 outb %al,$0xa1 # IMR 186 outb %al,$0x21 # IMR 214 outb $0x92 234 outb %al, $0x80 [all …]
|
| H A D | comconsole.c | 157 outb(comc_port + com_data, (u_char)c); in comc_putchar() 331 outb(comc_port + com_cfcr, CFCR_DLAB | COMC_FMT); in comc_setup() 332 outb(comc_port + com_dlbl, COMC_BPS(speed) & 0xff); in comc_setup() 333 outb(comc_port + com_dlbh, COMC_BPS(speed) >> 8); in comc_setup() 334 outb(comc_port + com_cfcr, COMC_FMT); in comc_setup() 335 outb(comc_port + com_mcr, MCR_RTS | MCR_DTR); in comc_setup() 372 outb(comc_port + com_cfcr, CFCR_DLAB | cfcr); in comc_getspeed() 377 outb(comc_port + com_cfcr, cfcr); in comc_getspeed()
|
| /freebsd-12.1/contrib/pnpinfo/ |
| H A D | pnpinfo.c | 53 outb (_PNP_ADDRESS, d); in pnp_write() 54 outb (_PNP_WRITE_DATA, r); in pnp_write() 63 outb(_PNP_ADDRESS, d); in pnp_read() 120 outb(_PNP_ADDRESS, 0); in send_Initiation_LFSR() 121 outb(_PNP_ADDRESS, 0); /* yes, we do need it twice! */ in send_Initiation_LFSR() 126 outb(_PNP_ADDRESS, cur); in send_Initiation_LFSR() 174 outb(_PNP_ADDRESS, PNP_STATUS); in get_resource_info() 184 outb(_PNP_ADDRESS, PNP_RESOURCE_DATA); in get_resource_info() 489 outb(_PNP_ADDRESS, PNP_STATUS); in dump_resdata() 574 outb(_PNP_ADDRESS, PNP_SERIAL_ISOLATION); in isolation_protocol()
|
| /freebsd-12.1/sys/dev/sio/ |
| H A D | sio.c | 497 outb(xioport + com_mcr, 0); 540 outb(xiobase + com_scr, 0x80); 542 outb(xiobase + com_scr, 0); 1179 outb(com->int_ctl_port, in comopen() 1581 outb(com->modem_ctl_port, 2349 outb(iobase + com_cfcr, cfcr); 2390 outb(iobase + com_dlbl, dlbl); 2393 outb(iobase + com_dlbh, dlbh); 2423 outb(iobase + com_ier, sp->ier); 2488 outb(iobase + com_cfcr, cfcr); [all …]
|
| /freebsd-12.1/sys/i386/i386/ |
| H A D | mp_machdep.c | 104 #define CHECK_READ(A) (outb(CMOS_REG, (A)), inb(CMOS_DATA)) 105 #define CHECK_WRITE(A,D) (outb(CMOS_REG, (A)), outb(CMOS_DATA, (D))) 321 outb(CMOS_REG, BIOS_RESET); in start_all_aps() 337 outb(CMOS_REG, BIOS_RESET); in start_all_aps() 338 outb(CMOS_DATA, BIOS_WARM); /* 'warm-start' */ in start_all_aps() 369 outb(CMOS_REG, BIOS_RESET); in start_all_aps() 370 outb(CMOS_DATA, mpbiosreason); in start_all_aps()
|
| /freebsd-12.1/sys/dev/powermac_nvram/ |
| H A D | powermac_nvram.c | 355 #define OUTB_DELAY(a, v) outb(a, v); DELAY(1); 439 outb(bank, SM_FLASH_CMD_READ_STATUS); in wait_operation_complete_sm() 451 outb(bank, SM_FLASH_CMD_ERASE_SETUP); in erase_bank_sm() 452 outb(bank, SM_FLASH_CMD_ERASE_CONFIRM); in erase_bank_sm() 459 outb(bank, SM_FLASH_CMD_CLEAR_STATUS); in erase_bank_sm() 460 outb(bank, SM_FLASH_CMD_RESET); in erase_bank_sm() 478 outb(bank + i, data[i]); in write_bank_sm() 485 outb(bank, SM_FLASH_CMD_CLEAR_STATUS); in write_bank_sm() 486 outb(bank, SM_FLASH_CMD_RESET); in write_bank_sm()
|