| /freebsd-14.2/sys/x86/isa/ |
| H A D | isa_dma.c | 216 outb(DMA1_SMSK, chan); in isa_dmacascade() 219 outb(DMA2_SMSK, chan & 3); in isa_dmacascade() 306 outb(DMA1_FFC, 0); in isa_dmastart() 310 outb(waport, phys); in isa_dmastart() 311 outb(waport, phys>>8); in isa_dmastart() 315 outb(waport + 1, --nbytes); in isa_dmastart() 319 outb(DMA1_SMSK, chan); in isa_dmastart() 339 outb(DMA2_FFC, 0); in isa_dmastart() 343 outb(waport, phys>>1); in isa_dmastart() 344 outb(waport, phys>>9); in isa_dmastart() [all …]
|
| H A D | clock.c | 204 outb(TIMER_CNTR2, freq & 0xff); in timer_spkr_setfreq() 205 outb(TIMER_CNTR2, freq >> 8); in timer_spkr_setfreq() 350 outb(TIMER_MODE, new_mode); in set_i8254_freq() 351 outb(TIMER_CNTR0, 0); in set_i8254_freq() 352 outb(TIMER_CNTR0, 0); in set_i8254_freq() 356 outb(TIMER_MODE, new_mode); in set_i8254_freq() 357 outb(TIMER_CNTR0, new_count & 0xff); in set_i8254_freq() 358 outb(TIMER_CNTR0, new_count >> 8); in set_i8254_freq() 364 outb(TIMER_MODE, new_mode); in set_i8254_freq() 370 outb(TIMER_MODE, new_mode); in set_i8254_freq() [all …]
|
| H A D | atpic.c | 184 outb(atpics[MASTER].at_ioaddr, OCW2_EOI); in _atpic_eoi_master() 199 outb(atpics[SLAVE].at_ioaddr, OCW2_EOI); in _atpic_eoi_slave() 201 outb(atpics[MASTER].at_ioaddr, OCW2_EOI); in _atpic_eoi_slave() 419 outb(imr_addr, pic->at_intbase); in i8259_init() 427 outb(imr_addr, ICU_SLAVEID); in i8259_init() 429 outb(imr_addr, IRQ_MASK(ICU_SLAVEID)); in i8259_init() 433 outb(imr_addr, SLAVE_MODE); in i8259_init() 435 outb(imr_addr, MASTER_MODE); in i8259_init() 438 outb(imr_addr, pic->at_imen); in i8259_init() 441 outb(pic->at_ioaddr, OCW3_SEL | OCW3_RR); in i8259_init() [all …]
|
| H A D | elcr.c | 123 outb(ELCR_PORT + 1, elcr_status >> 8); in elcr_write_trigger() 125 outb(ELCR_PORT, elcr_status & 0xff); in elcr_write_trigger() 133 outb(ELCR_PORT, elcr_status & 0xff); in elcr_resume() 134 outb(ELCR_PORT + 1, elcr_status >> 8); in elcr_resume()
|
| /freebsd-14.2/sys/dev/ppc/ |
| H A D | ppc.c | 718 outb(csr, 0xd); in ppc_smc37c66xgt_detect() 730 outb(csr, 0xd); in ppc_smc37c66xgt_detect() 750 outb(csr, 0x1); in ppc_smc37c66xgt_detect() 767 outb(csr, 0x1); in ppc_smc37c66xgt_detect() 771 outb(csr, 0x4); in ppc_smc37c66xgt_detect() 776 outb(csr, 0x1); in ppc_smc37c66xgt_detect() 871 outb(csr, 0xa); in ppc_smc37c66xgt_detect() 872 outb(cio, 16); in ppc_smc37c66xgt_detect() 882 outb(csr, 0x4); in ppc_smc37c66xgt_detect() 1043 outb(efir, 0x9); in ppc_w83877f_detect() [all …]
|
| /freebsd-14.2/sys/dev/fb/ |
| H A D | vga.c | 1704 outb(TSIDX, 0x00); outb(TSREG, 0x01); in set_font_mode() 1706 outb(TSIDX, 0x02); outb(TSREG, 0x04); in set_font_mode() 1740 outb(ATC, 0x10); outb(ATC, buf[5]); in set_normal_mode() 1825 outb(TSIDX, 0x00); outb(TSREG, 0x01); in vga_save_font() 1828 outb(TSIDX, 0x00); outb(TSREG, 0x03); in vga_save_font() 1847 outb(TSIDX, 0x00); outb(TSREG, 0x01); in vga_save_font() 1849 outb(TSIDX, 0x00); outb(TSREG, 0x03); in vga_save_font() 1905 outb(TSIDX, 0x00); outb(TSREG, 0x01); in vga_load_font() 1908 outb(TSIDX, 0x00); outb(TSREG, 0x03); in vga_load_font() 1927 outb(TSIDX, 0x00); outb(TSREG, 0x01); in vga_load_font() [all …]
|
| /freebsd-14.2/lib/libvgl/ |
| H A D | simple.c | 122 outb(0x3c4, 0x02); outb(0x3c5, 0x0f); in VGLSetXY() 124 outb(0x3ce, 0x01); outb(0x3cf, 0x0f); /* set/reset enable */ in VGLSetXY() 504 outb(0x3c4, 0x02); outb(0x3c5, 0x0f); in VGLClear() 513 outb(0x3c4, 0x02); outb(0x3c5, 0x0f); in VGLClear() 514 outb(0x3ce, 0x05); outb(0x3cf, 0x02); /* mode 2 */ in VGLClear() 515 outb(0x3ce, 0x01); outb(0x3cf, 0x00); /* set/reset enable */ in VGLClear() 516 outb(0x3ce, 0x08); outb(0x3cf, 0xff); /* bit mask */ in VGLClear() 524 outb(0x3ce, 0x05); outb(0x3cf, 0x00); in VGLClear() 641 outb(0x3C9, red); outb(0x3C9, green); outb(0x3C9, blue); in VGLSetPaletteIndex() 659 outb(0x3C0,0x11); outb(0x3C0, color); in VGLSetBorder() [all …]
|
| H A D | bitmap.c | 88 outb(0x3ce, 0x01); outb(0x3cf, 0x00); /* set/reset enable */ in WriteVerticalLine() 89 outb(0x3ce, 0x08); outb(0x3cf, 0xff); /* bit mask */ in WriteVerticalLine() 91 outb(0x3c4, 0x02); in WriteVerticalLine() 92 outb(0x3c5, 0x01<<i); in WriteVerticalLine() 93 outb(0x3ce, 0x04); in WriteVerticalLine() 94 outb(0x3cf, i); in WriteVerticalLine() 125 outb(0x3c4, 0x02); in WriteVerticalLine() 126 outb(0x3c5, 0x01 << ((x + i)%4)); in WriteVerticalLine()
|
| /freebsd-14.2/stand/common/ |
| H A D | isapnp.c | 38 #define outb(x,y) (archsw.arch_isaoutb((x),(y))) macro 60 outb (_PNP_ADDRESS, d); in isapnp_write() 61 outb (_PNP_WRITE_DATA, r); in isapnp_write() 74 outb(_PNP_ADDRESS, 0); in isapnp_send_Initiation_LFSR() 75 outb(_PNP_ADDRESS, 0); /* yes, we do need it twice! */ in isapnp_send_Initiation_LFSR() 78 outb(_PNP_ADDRESS, cur); in isapnp_send_Initiation_LFSR() 82 outb(_PNP_ADDRESS, cur); in isapnp_send_Initiation_LFSR() 95 outb(_PNP_ADDRESS, SERIAL_ISOLATION); in isapnp_get_serial() 129 outb(_PNP_ADDRESS, STATUS); in isapnp_get_resource_info() 139 outb(_PNP_ADDRESS, RESOURCE_DATA); in isapnp_get_resource_info() [all …]
|
| /freebsd-14.2/stand/i386/libi386/ |
| H A D | relocater_tramp.S | 169 outb %al,$0xa0 # slave 171 outb %al,$0x21 # master 173 outb %al,$0xa1 # slave 175 outb %al,$0x21 # master 177 outb %al,$0xa1 # slave 180 outb %al,$0xa1 # slave 182 outb %al,$0xa1 # IMR 184 outb %al,$0x21 # IMR 212 outb $0x92 232 outb %al, $0x80 [all …]
|
| H A D | comconsole.c | 154 outb(comc_port + com_data, (u_char)c); in comc_putchar() 335 outb(comc_port + com_scr, COMC_TEST); in comc_setup() 341 outb(comc_port + com_cfcr, CFCR_DLAB | COMC_FMT); in comc_setup() 342 outb(comc_port + com_dlbl, COMC_BPS(speed) & 0xff); in comc_setup() 343 outb(comc_port + com_dlbh, COMC_BPS(speed) >> 8); in comc_setup() 344 outb(comc_port + com_cfcr, COMC_FMT); in comc_setup() 345 outb(comc_port + com_mcr, MCR_RTS | MCR_DTR); in comc_setup() 382 outb(comc_port + com_cfcr, CFCR_DLAB | cfcr); in comc_getspeed() 387 outb(comc_port + com_cfcr, cfcr); in comc_getspeed()
|
| /freebsd-14.2/contrib/pnpinfo/ |
| H A D | pnpinfo.c | 50 outb (_PNP_ADDRESS, d); in pnp_write() 51 outb (_PNP_WRITE_DATA, r); in pnp_write() 60 outb(_PNP_ADDRESS, d); in pnp_read() 117 outb(_PNP_ADDRESS, 0); in send_Initiation_LFSR() 118 outb(_PNP_ADDRESS, 0); /* yes, we do need it twice! */ in send_Initiation_LFSR() 123 outb(_PNP_ADDRESS, cur); in send_Initiation_LFSR() 171 outb(_PNP_ADDRESS, PNP_STATUS); in get_resource_info() 181 outb(_PNP_ADDRESS, PNP_RESOURCE_DATA); in get_resource_info() 485 outb(_PNP_ADDRESS, PNP_STATUS); in dump_resdata() 570 outb(_PNP_ADDRESS, PNP_SERIAL_ISOLATION); in isolation_protocol()
|
| /freebsd-14.2/contrib/atf/atf-c/detail/ |
| H A D | test_helpers.c | 126 atf_process_stream_t outb, errb; in run_h_tc() local 135 RE(atf_process_stream_init_redirect_path(&outb, &outpath)); in run_h_tc() 137 RE(atf_process_fork(&child, run_h_tc_child, &outb, &errb, &data)); in run_h_tc() 139 atf_process_stream_fini(&outb); in run_h_tc()
|
| /freebsd-14.2/sys/x86/x86/ |
| H A D | intr_machdep.c | 498 outb(IO_ICU1, ICW1_RESET | ICW1_IC4); in atpic_reset() 499 outb(IO_ICU1 + ICU_IMR_OFFSET, IDT_IO_INTS); in atpic_reset() 501 outb(IO_ICU1 + ICU_IMR_OFFSET, MASTER_MODE); in atpic_reset() 502 outb(IO_ICU1 + ICU_IMR_OFFSET, 0xff); in atpic_reset() 503 outb(IO_ICU1, OCW3_SEL | OCW3_RR); in atpic_reset() 505 outb(IO_ICU2, ICW1_RESET | ICW1_IC4); in atpic_reset() 506 outb(IO_ICU2 + ICU_IMR_OFFSET, IDT_IO_INTS + 8); in atpic_reset() 507 outb(IO_ICU2 + ICU_IMR_OFFSET, ICU_SLAVEID); in atpic_reset() 508 outb(IO_ICU2 + ICU_IMR_OFFSET, SLAVE_MODE); in atpic_reset() 509 outb(IO_ICU2 + ICU_IMR_OFFSET, 0xff); in atpic_reset() [all …]
|
| /freebsd-14.2/sys/i386/acpica/ |
| H A D | acpi_wakecode.S | 72 outb %al, $TIMER_MODE 77 outb %al, $IO_PPI 81 outb %al, $TIMER_CNTR2 83 outb %al, $TIMER_CNTR2
|
| H A D | acpi_wakeup.c | 153 outb(CMOS_REG, BIOS_RESET); in acpi_wakeup_cpus() 159 outb(CMOS_REG, BIOS_RESET); in acpi_wakeup_cpus() 160 outb(CMOS_DATA, BIOS_WARM); /* 'warm-start' */ in acpi_wakeup_cpus() 185 outb(CMOS_REG, BIOS_RESET); in acpi_wakeup_cpus() 186 outb(CMOS_DATA, mpbiosreason); in acpi_wakeup_cpus()
|
| /freebsd-14.2/sys/dev/powermac_nvram/ |
| H A D | powermac_nvram.c | 373 #define OUTB_DELAY(a, v) outb(a, v); DELAY(1); 457 outb(bank, SM_FLASH_CMD_READ_STATUS); in wait_operation_complete_sm() 469 outb(bank, SM_FLASH_CMD_ERASE_SETUP); in erase_bank_sm() 470 outb(bank, SM_FLASH_CMD_ERASE_CONFIRM); in erase_bank_sm() 477 outb(bank, SM_FLASH_CMD_CLEAR_STATUS); in erase_bank_sm() 478 outb(bank, SM_FLASH_CMD_RESET); in erase_bank_sm() 496 outb(bank + i, data[i]); in write_bank_sm() 503 outb(bank, SM_FLASH_CMD_CLEAR_STATUS); in write_bank_sm() 504 outb(bank, SM_FLASH_CMD_RESET); in write_bank_sm()
|
| /freebsd-14.2/stand/i386/boot2/ |
| H A D | sio.S | 30 outb %al,(%dx) # and DLAB 36 outb %al,(%dx) # DLAB 39 outb %al,(%dx) # DTR 65 outb %al,(%dx) # Write character
|
| /freebsd-14.2/sys/isa/ |
| H A D | pnp.c | 107 outb (_PNP_ADDRESS, d); in pnp_write() 108 outb (_PNP_WRITE_DATA, r); in pnp_write() 121 outb(_PNP_ADDRESS, 0); in pnp_send_initiation_key() 122 outb(_PNP_ADDRESS, 0); /* yes, we do need it twice! */ in pnp_send_initiation_key() 125 outb(_PNP_ADDRESS, cur); in pnp_send_initiation_key() 129 outb(_PNP_ADDRESS, cur); in pnp_send_initiation_key() 144 outb(_PNP_ADDRESS, PNP_SERIAL_ISOLATION); in pnp_get_serial() 177 outb(_PNP_ADDRESS, PNP_STATUS); in pnp_get_resource_info() 187 outb(_PNP_ADDRESS, PNP_RESOURCE_DATA); in pnp_get_resource_info() 675 outb(_PNP_ADDRESS, PNP_SERIAL_ISOLATION); in pnp_isolation_protocol()
|
| /freebsd-14.2/sys/amd64/acpica/ |
| H A D | acpi_wakecode.S | 77 outb %al, $TIMER_MODE 82 outb %al, $IO_PPI 86 outb %al, $TIMER_CNTR2 88 outb %al, $TIMER_CNTR2
|
| /freebsd-14.2/sys/x86/include/ |
| H A D | ppireg.h | 44 #define ppi_spkr_on() outb(IO_PPI, inb(IO_PPI) | PIT_SPKR) 45 #define ppi_spkr_off() outb(IO_PPI, inb(IO_PPI) & ~PIT_SPKR)
|
| /freebsd-14.2/sys/compat/linuxkpi/common/include/asm-generic/ |
| H A D | io.h | 34 #define outb(a,b) outb(b,a) macro
|
| /freebsd-14.2/sys/i386/i386/ |
| H A D | mp_machdep.c | 106 #define CHECK_READ(A) (outb(CMOS_REG, (A)), inb(CMOS_DATA)) 107 #define CHECK_WRITE(A,D) (outb(CMOS_REG, (A)), outb(CMOS_DATA, (D))) 381 outb(CMOS_REG, BIOS_RESET); in start_all_aps() 397 outb(CMOS_REG, BIOS_RESET); in start_all_aps() 398 outb(CMOS_DATA, BIOS_WARM); /* 'warm-start' */ in start_all_aps() 427 outb(CMOS_REG, BIOS_RESET); in start_all_aps() 428 outb(CMOS_DATA, mpbiosreason); in start_all_aps()
|
| /freebsd-14.2/contrib/bsnmp/lib/ |
| H A D | snmpagent.c | 336 struct snmp_value *outb, struct snmp_pdu *pdu) in do_getnext() argument 347 outb->var = tp->oid; in do_getnext() 349 outb->var = inb->var; in do_getnext() 352 outb->syntax = tp->syntax; in do_getnext() 355 outb->var.subs[outb->var.len++] = 0; in do_getnext() 356 ret = (*tp->op)(&context->ctx, outb, tp->oid.len, in do_getnext() 360 ret = (*tp->op)(&context->ctx, outb, tp->oid.len, in do_getnext() 367 asn_oid2str(&outb->var), ret); in do_getnext() 379 outb->var = tp->oid; in do_getnext() 384 outb->var = inb->var; in do_getnext() [all …]
|
| /freebsd-14.2/usr.bin/tcopy/ |
| H A D | tcopy.c | 232 verify(int inp, int outp, char *outb) in verify() argument 250 r1: if ((outn = read(outp, outb, outmaxblk)) == -1) { in verify() 253 outn = read(outp, outb, outmaxblk); in verify() 273 if (bcmp(inb, outb, inn)) { in verify()
|