Home
last modified time | relevance | path

Searched refs:outb (Results 1 – 25 of 74) sorted by relevance

123

/freebsd-13.1/sys/dev/ppc/
H A Dppc.c721 outb(csr, 0xd); in ppc_smc37c66xgt_detect()
733 outb(csr, 0xd); in ppc_smc37c66xgt_detect()
753 outb(csr, 0x1); in ppc_smc37c66xgt_detect()
770 outb(csr, 0x1); in ppc_smc37c66xgt_detect()
774 outb(csr, 0x4); in ppc_smc37c66xgt_detect()
779 outb(csr, 0x1); in ppc_smc37c66xgt_detect()
874 outb(csr, 0xa); in ppc_smc37c66xgt_detect()
875 outb(cio, 16); in ppc_smc37c66xgt_detect()
885 outb(csr, 0x4); in ppc_smc37c66xgt_detect()
1046 outb(efir, 0x9); in ppc_w83877f_detect()
[all …]
/freebsd-13.1/sys/x86/isa/
H A Disa_dma.c218 outb(DMA1_SMSK, chan); in isa_dmacascade()
221 outb(DMA2_SMSK, chan & 3); in isa_dmacascade()
308 outb(DMA1_FFC, 0); in isa_dmastart()
312 outb(waport, phys); in isa_dmastart()
313 outb(waport, phys>>8); in isa_dmastart()
317 outb(waport + 1, --nbytes); in isa_dmastart()
321 outb(DMA1_SMSK, chan); in isa_dmastart()
341 outb(DMA2_FFC, 0); in isa_dmastart()
345 outb(waport, phys>>1); in isa_dmastart()
346 outb(waport, phys>>9); in isa_dmastart()
[all …]
H A Dclock.c205 outb(TIMER_CNTR2, freq & 0xff); in timer_spkr_setfreq()
206 outb(TIMER_CNTR2, freq >> 8); in timer_spkr_setfreq()
351 outb(TIMER_MODE, new_mode); in set_i8254_freq()
352 outb(TIMER_CNTR0, 0); in set_i8254_freq()
353 outb(TIMER_CNTR0, 0); in set_i8254_freq()
357 outb(TIMER_MODE, new_mode); in set_i8254_freq()
358 outb(TIMER_CNTR0, new_count & 0xff); in set_i8254_freq()
359 outb(TIMER_CNTR0, new_count >> 8); in set_i8254_freq()
365 outb(TIMER_MODE, new_mode); in set_i8254_freq()
371 outb(TIMER_MODE, new_mode); in set_i8254_freq()
[all …]
H A Datpic.c185 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()
420 outb(imr_addr, pic->at_intbase); in i8259_init()
428 outb(imr_addr, ICU_SLAVEID); in i8259_init()
430 outb(imr_addr, IRQ_MASK(ICU_SLAVEID)); in i8259_init()
434 outb(imr_addr, SLAVE_MODE); in i8259_init()
436 outb(imr_addr, MASTER_MODE); in i8259_init()
439 outb(imr_addr, pic->at_imen); in i8259_init()
442 outb(pic->at_ioaddr, OCW3_SEL | OCW3_RR); in i8259_init()
[all …]
H A Delcr.c125 outb(ELCR_PORT + 1, elcr_status >> 8); in elcr_write_trigger()
127 outb(ELCR_PORT, elcr_status & 0xff); in elcr_write_trigger()
135 outb(ELCR_PORT, elcr_status & 0xff); in elcr_resume()
136 outb(ELCR_PORT + 1, elcr_status >> 8); in elcr_resume()
/freebsd-13.1/sys/dev/fb/
H A Dvga.c1755 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-13.1/lib/libvgl/
H A Dsimple.c124 outb(0x3c4, 0x02); outb(0x3c5, 0x0f); in VGLSetXY()
126 outb(0x3ce, 0x01); outb(0x3cf, 0x0f); /* set/reset enable */ in VGLSetXY()
506 outb(0x3c4, 0x02); outb(0x3c5, 0x0f); in VGLClear()
515 outb(0x3c4, 0x02); outb(0x3c5, 0x0f); in VGLClear()
516 outb(0x3ce, 0x05); outb(0x3cf, 0x02); /* mode 2 */ in VGLClear()
517 outb(0x3ce, 0x01); outb(0x3cf, 0x00); /* set/reset enable */ in VGLClear()
518 outb(0x3ce, 0x08); outb(0x3cf, 0xff); /* bit mask */ in VGLClear()
526 outb(0x3ce, 0x05); outb(0x3cf, 0x00); in VGLClear()
643 outb(0x3C9, red); outb(0x3C9, green); outb(0x3C9, blue); in VGLSetPaletteIndex()
661 outb(0x3C0,0x11); outb(0x3C0, color); in VGLSetBorder()
[all …]
H A Dbitmap.c90 outb(0x3ce, 0x01); outb(0x3cf, 0x00); /* set/reset enable */ in WriteVerticalLine()
91 outb(0x3ce, 0x08); outb(0x3cf, 0xff); /* bit mask */ in WriteVerticalLine()
93 outb(0x3c4, 0x02); in WriteVerticalLine()
94 outb(0x3c5, 0x01<<i); in WriteVerticalLine()
95 outb(0x3ce, 0x04); in WriteVerticalLine()
96 outb(0x3cf, i); in WriteVerticalLine()
127 outb(0x3c4, 0x02); in WriteVerticalLine()
128 outb(0x3c5, 0x01 << ((x + i)%4)); in WriteVerticalLine()
/freebsd-13.1/stand/common/
H A Disapnp.c41 #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-13.1/stand/i386/libi386/
H A Drelocater_tramp.S171 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 Dcomconsole.c157 outb(comc_port + com_data, (u_char)c); in comc_putchar()
337 outb(comc_port + com_scr, COMC_TEST); in comc_setup()
343 outb(comc_port + com_cfcr, CFCR_DLAB | COMC_FMT); in comc_setup()
344 outb(comc_port + com_dlbl, COMC_BPS(speed) & 0xff); in comc_setup()
345 outb(comc_port + com_dlbh, COMC_BPS(speed) >> 8); in comc_setup()
346 outb(comc_port + com_cfcr, COMC_FMT); in comc_setup()
347 outb(comc_port + com_mcr, MCR_RTS | MCR_DTR); in comc_setup()
384 outb(comc_port + com_cfcr, CFCR_DLAB | cfcr); in comc_getspeed()
389 outb(comc_port + com_cfcr, cfcr); in comc_getspeed()
/freebsd-13.1/sys/dev/ce/
H A Dmachdep.h29 # 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-13.1/sys/dev/cp/
H A Dmachdep.h29 # 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-13.1/contrib/pnpinfo/
H A Dpnpinfo.c53 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-13.1/contrib/atf/atf-c/detail/
H A Dtest_helpers.c126 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-13.1/sys/i386/acpica/
H A Dacpi_wakecode.S74 outb %al, $TIMER_MODE
79 outb %al, $IO_PPI
83 outb %al, $TIMER_CNTR2
85 outb %al, $TIMER_CNTR2
H A Dacpi_wakeup.c156 outb(CMOS_REG, BIOS_RESET); in acpi_wakeup_cpus()
162 outb(CMOS_REG, BIOS_RESET); in acpi_wakeup_cpus()
163 outb(CMOS_DATA, BIOS_WARM); /* 'warm-start' */ in acpi_wakeup_cpus()
188 outb(CMOS_REG, BIOS_RESET); in acpi_wakeup_cpus()
189 outb(CMOS_DATA, mpbiosreason); in acpi_wakeup_cpus()
/freebsd-13.1/sys/x86/x86/
H A Dintr_machdep.c509 outb(IO_ICU1, ICW1_RESET | ICW1_IC4);
510 outb(IO_ICU1 + ICU_IMR_OFFSET, IDT_IO_INTS);
512 outb(IO_ICU1 + ICU_IMR_OFFSET, MASTER_MODE);
513 outb(IO_ICU1 + ICU_IMR_OFFSET, 0xff);
514 outb(IO_ICU1, OCW3_SEL | OCW3_RR);
516 outb(IO_ICU2, ICW1_RESET | ICW1_IC4);
517 outb(IO_ICU2 + ICU_IMR_OFFSET, IDT_IO_INTS + 8);
518 outb(IO_ICU2 + ICU_IMR_OFFSET, ICU_SLAVEID);
519 outb(IO_ICU2 + ICU_IMR_OFFSET, SLAVE_MODE);
520 outb(IO_ICU2 + ICU_IMR_OFFSET, 0xff);
[all …]
/freebsd-13.1/sys/dev/powermac_nvram/
H A Dpowermac_nvram.c377 #define OUTB_DELAY(a, v) outb(a, v); DELAY(1);
461 outb(bank, SM_FLASH_CMD_READ_STATUS); in wait_operation_complete_sm()
473 outb(bank, SM_FLASH_CMD_ERASE_SETUP); in erase_bank_sm()
474 outb(bank, SM_FLASH_CMD_ERASE_CONFIRM); in erase_bank_sm()
481 outb(bank, SM_FLASH_CMD_CLEAR_STATUS); in erase_bank_sm()
482 outb(bank, SM_FLASH_CMD_RESET); in erase_bank_sm()
500 outb(bank + i, data[i]); in write_bank_sm()
507 outb(bank, SM_FLASH_CMD_CLEAR_STATUS); in write_bank_sm()
508 outb(bank, SM_FLASH_CMD_RESET); in write_bank_sm()
/freebsd-13.1/sys/isa/
H A Dpnp.c109 outb (_PNP_ADDRESS, d); in pnp_write()
110 outb (_PNP_WRITE_DATA, r); in pnp_write()
123 outb(_PNP_ADDRESS, 0); in pnp_send_initiation_key()
124 outb(_PNP_ADDRESS, 0); /* yes, we do need it twice! */ in pnp_send_initiation_key()
127 outb(_PNP_ADDRESS, cur); in pnp_send_initiation_key()
131 outb(_PNP_ADDRESS, cur); in pnp_send_initiation_key()
146 outb(_PNP_ADDRESS, PNP_SERIAL_ISOLATION); in pnp_get_serial()
179 outb(_PNP_ADDRESS, PNP_STATUS); in pnp_get_resource_info()
189 outb(_PNP_ADDRESS, PNP_RESOURCE_DATA); in pnp_get_resource_info()
677 outb(_PNP_ADDRESS, PNP_SERIAL_ISOLATION); in pnp_isolation_protocol()
/freebsd-13.1/stand/i386/boot2/
H A Dsio.S32 outb %al,(%dx) # and DLAB
38 outb %al,(%dx) # DLAB
41 outb %al,(%dx) # DTR
67 outb %al,(%dx) # Write character
/freebsd-13.1/sys/amd64/acpica/
H A Dacpi_wakecode.S79 outb %al, $TIMER_MODE
84 outb %al, $IO_PPI
88 outb %al, $TIMER_CNTR2
90 outb %al, $TIMER_CNTR2
/freebsd-13.1/sys/amd64/include/
H A Dppireg.h46 #define ppi_spkr_on() outb(IO_PPI, inb(IO_PPI) | PIT_SPKR)
47 #define ppi_spkr_off() outb(IO_PPI, inb(IO_PPI) & ~PIT_SPKR)
/freebsd-13.1/sys/i386/include/
H A Dppireg.h46 #define ppi_spkr_on() outb(IO_PPI, inb(IO_PPI) | PIT_SPKR)
47 #define ppi_spkr_off() outb(IO_PPI, inb(IO_PPI) & ~PIT_SPKR)
/freebsd-13.1/sys/i386/i386/
H A Dmp_machdep.c111 #define CHECK_READ(A) (outb(CMOS_REG, (A)), inb(CMOS_DATA))
112 #define CHECK_WRITE(A,D) (outb(CMOS_REG, (A)), outb(CMOS_DATA, (D)))
386 outb(CMOS_REG, BIOS_RESET); in start_all_aps()
402 outb(CMOS_REG, BIOS_RESET); in start_all_aps()
403 outb(CMOS_DATA, BIOS_WARM); /* 'warm-start' */ in start_all_aps()
432 outb(CMOS_REG, BIOS_RESET); in start_all_aps()
433 outb(CMOS_DATA, mpbiosreason); in start_all_aps()

123