Home
last modified time | relevance | path

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

12

/dragonfly/sys/platform/pc64/icu/
H A Dicu.c77 outb(IO_ICU1 + ICU_IMR_OFFSET, IDT_OFFSET); in icu_init()
91 outb(IO_ICU2 + ICU_IMR_OFFSET, IDT_OFFSET + 8); in icu_init()
93 outb(IO_ICU2 + ICU_IMR_OFFSET, ICU_IRQ_SLAVE); in icu_init()
115 outb(IO_ICU1 + ICU_IMR_OFFSET, 0xff); in icu_definit()
116 outb(IO_ICU2 + ICU_IMR_OFFSET, 0xff); in icu_definit()
176 outb(IO_ICU1, 0x13); in icu_ioapic_extint()
178 outb(IO_ICU1 + 1, 0x00); /* ignore slave */ in icu_ioapic_extint()
179 outb(IO_ICU1 + 1, 0x03); /* auto EOI, 8086 */ in icu_ioapic_extint()
180 outb(IO_ICU1 + 1, mask); in icu_ioapic_extint()
198 outb(IO_ICU1 + ICU_IMR_OFFSET, 0xff); in icu_reinit_noioapic()
[all …]
H A Dicu_ipl.s116 outb %al,$IO_ICU2+ICU_IMR_OFFSET
123 outb %al,$IO_ICU1+ICU_IMR_OFFSET
135 outb %al,$IO_ICU2+ICU_IMR_OFFSET
142 outb %al,$IO_ICU1+ICU_IMR_OFFSET
H A Delcr.c115 outb(ELCR_PORT + 1, elcr_status >> 8); in elcr_write_trigger()
117 outb(ELCR_PORT, elcr_status & 0xff); in elcr_write_trigger()
124 outb(ELCR_PORT, elcr_status & 0xff); in elcr_resume()
125 outb(ELCR_PORT + 1, elcr_status >> 8); in elcr_resume()
H A Dicu_vector.s67 outb %al,$IO_ICU1 ; \
79 outb %al,$IO_ICU2 ; /* but do second icu first ... */ \
104 outb %al,$icu+ICU_IMR_OFFSET ; \
113 outb %al,$icu+ICU_IMR_OFFSET ; \
/dragonfly/lib/libvgl/
H A Dsimple.c71 outb(0x3c4, 0x02); outb(0x3c5, 0x0f); in VGLSetXY()
102 outb(0x3ce, 0x04); outb(0x3cf, x & 0x3); in VGLGetXY()
116 outb(0x3ce, 0x04); outb(0x3cf, i); in VGLGetXY()
280 outb(0x3c4, 0x02); outb(0x3c5, 0x0f); in VGLClear()
287 outb(0x3c4, 0x02); outb(0x3c5, 0x0f); in VGLClear()
288 outb(0x3ce, 0x05); outb(0x3cf, 0x02); /* mode 2 */ in VGLClear()
290 outb(0x3ce, 0x08); outb(0x3cf, 0xff); /* bit mask */ in VGLClear()
298 outb(0x3ce, 0x05); outb(0x3cf, 0x00); in VGLClear()
380 outb(0x3C9, red); outb(0x3C9, green); outb(0x3C9, blue); in VGLSetPaletteIndex()
390 outb(0x3C0,0x11); outb(0x3C0, color); in VGLSetBorder()
[all …]
H A Dmain.c326 outb(0x3c6, 0xff); in VGLCheckSwitch()
327 outb(0x3ce, 0x01); outb(0x3cf, 0x00); /* set/reset enable */ in VGLCheckSwitch()
328 outb(0x3ce, 0x08); outb(0x3cf, 0xff); /* bit mask */ in VGLCheckSwitch()
335 outb(0x3c4, 0x02); in VGLCheckSwitch()
344 outb(0x3c6, 0xff); in VGLCheckSwitch()
345 outb(0x3ce, 0x01); outb(0x3cf, 0x00); /* set/reset enable */ in VGLCheckSwitch()
346 outb(0x3ce, 0x08); outb(0x3cf, 0xff); /* bit mask */ in VGLCheckSwitch()
348 outb(0x3c4, 0x02); in VGLCheckSwitch()
376 outb(0x3cf, i); in VGLCheckSwitch()
389 outb(0x3ce, 0x04); in VGLCheckSwitch()
[all …]
H A Dbitmap.c91 outb(0x3ce, 0x01); outb(0x3cf, 0x00); /* set/reset enable */ in WriteVerticalLine()
92 outb(0x3ce, 0x08); outb(0x3cf, 0xff); /* bit mask */ in WriteVerticalLine()
94 outb(0x3c4, 0x02); in WriteVerticalLine()
96 outb(0x3ce, 0x04); in WriteVerticalLine()
97 outb(0x3cf, i); in WriteVerticalLine()
128 outb(0x3c4, 0x02); in WriteVerticalLine()
178 outb(0x3ce, 0x04); in ReadVerticalLine()
179 outb(0x3cf, i); in ReadVerticalLine()
202 outb(0x3ce, 0x04); in ReadVerticalLine()
203 outb(0x3cf, i); in ReadVerticalLine()
[all …]
H A Dmouse.c115 outb(0x3c4, crtcidx); in VGLMousePointerShow()
116 outb(0x3c5, crtcval); in VGLMousePointerShow()
117 outb(0x3ce, gdcidx); in VGLMousePointerShow()
118 outb(0x3cf, gdcval); in VGLMousePointerShow()
135 outb(0x3c4, crtcidx); in VGLMousePointerHide()
136 outb(0x3c5, crtcval); in VGLMousePointerHide()
137 outb(0x3ce, gdcidx); in VGLMousePointerHide()
138 outb(0x3cf, gdcval); in VGLMousePointerHide()
/dragonfly/sys/bus/isa/x86_64/
H A Disa_dma.c199 outb(DMA1_SMSK, chan); in isa_dmacascade()
202 outb(DMA2_SMSK, chan & 3); in isa_dmacascade()
282 outb(DMA1_FFC, 0); in isa_dmastart()
286 outb(waport, phys); in isa_dmastart()
287 outb(waport, phys>>8); in isa_dmastart()
291 outb(waport + 1, --nbytes); in isa_dmastart()
295 outb(DMA1_SMSK, chan); in isa_dmastart()
315 outb(DMA2_FFC, 0); in isa_dmastart()
319 outb(waport, phys>>1); in isa_dmastart()
320 outb(waport, phys>>9); in isa_dmastart()
[all …]
/dragonfly/sys/dev/misc/ppc/
H A Dppc.c745 outb(csr, 0xd); in ppc_smc37c66xgt_detect()
757 outb(csr, 0xd); in ppc_smc37c66xgt_detect()
775 outb(csr, 0x1); in ppc_smc37c66xgt_detect()
790 outb(csr, 0x1); in ppc_smc37c66xgt_detect()
794 outb(csr, 0x4); in ppc_smc37c66xgt_detect()
799 outb(csr, 0x1); in ppc_smc37c66xgt_detect()
894 outb(csr, 0xa); in ppc_smc37c66xgt_detect()
895 outb(cio, 16); in ppc_smc37c66xgt_detect()
905 outb(csr, 0x4); in ppc_smc37c66xgt_detect()
919 outb(csr, 0xaa); in ppc_smc37c66xgt_detect()
[all …]
/dragonfly/sys/dev/video/fb/
H A Dvga.c771 outb(TSIDX, 1); in set_display_start()
1151 outb(ATC, 0x10); outb(ATC, buf[5] & ~0x01); in set_font_mode()
1170 outb(ATC, 0x10); outb(ATC, buf[5]); in set_normal_mode()
1305 outb(TSIDX, 0x03); outb(TSREG, cg[page]); in vga_show_font()
1408 outb(ATC, 0x31); outb(ATC, color & 0xff); in vga_set_border()
1441 outb(TSIDX, 0x00); outb(TSREG, 0x01); /* stop sequencer */ in vga_save_state()
1450 outb(CRTC, i); in vga_save_state()
1455 outb(ATC, i); in vga_save_state()
1517 outb(TSIDX, 0x00); outb(TSREG, 0x01); /* stop sequencer */ in vga_load_state()
1527 outb(CRTC, i); in vga_load_state()
[all …]
/dragonfly/sys/libkern/
H A Dhexncpy.c42 hexncpy(const u_char *inb, int inlen, char *outb, int outlen, const char *sep) in hexncpy() argument
52 KKASSERT((outb != NULL && inb != NULL && outlen >= MIN_OUTBLEN)); in hexncpy()
55 addr = outb; in hexncpy()
57 *outb++ = hexdigit[*inb >> 4]; in hexncpy()
58 *outb++ = hexdigit[*inb++ & 0xf]; in hexncpy()
60 *outb++ = *sep; in hexncpy()
62 *--outb = 0; in hexncpy()
/dragonfly/stand/boot/common/
H A Disapnp.c40 #define outb(x,y) (archsw.arch_isaoutb((x),(y))) macro
62 outb (_PNP_ADDRESS, d); in isapnp_write()
63 outb (_PNP_WRITE_DATA, r); in isapnp_write()
76 outb(_PNP_ADDRESS, 0); in isapnp_send_Initiation_LFSR()
77 outb(_PNP_ADDRESS, 0); /* yes, we do need it twice! */ in isapnp_send_Initiation_LFSR()
80 outb(_PNP_ADDRESS, cur); in isapnp_send_Initiation_LFSR()
84 outb(_PNP_ADDRESS, cur); in isapnp_send_Initiation_LFSR()
97 outb(_PNP_ADDRESS, SERIAL_ISOLATION); in isapnp_get_serial()
131 outb(_PNP_ADDRESS, STATUS); in isapnp_get_resource_info()
141 outb(_PNP_ADDRESS, RESOURCE_DATA); in isapnp_get_resource_info()
[all …]
/dragonfly/stand/boot/pc32/libi386/
H A Dcomconsole.c98 outb(COMPORT + com_cfcr, CFCR_DLAB | COMC_FMT); in comc_init()
99 outb(COMPORT + com_dlbl, COMC_BPS(COMSPEED) & 0xff); in comc_init()
100 outb(COMPORT + com_dlbh, COMC_BPS(COMSPEED) >> 8); in comc_init()
101 outb(COMPORT + com_cfcr, COMC_FMT); in comc_init()
102 outb(COMPORT + com_mcr, MCR_RTS | MCR_DTR); in comc_init()
112 outb(COMPORT + com_fifo, FIFO_ENABLE); in comc_init()
133 outb(COMPORT + com_data, (u_char)c); in comc_putchar()
/dragonfly/games/larn/
H A Dio.c187 char *outb, *tmpb; in lprintf() local
194 outb = lpnt; in lprintf()
198 *outb++ = *fmt++; in lprintf()
200 lpnt = outb; in lprintf()
212 *outb++ = '-'; in lprintf()
227 *outb++ = ' '; in lprintf()
232 *outb++ = ' '; in lprintf()
242 --outb; in lprintf()
247 *outb++ = ' '; in lprintf()
250 --outb; in lprintf()
[all …]
/dragonfly/sys/ddb/
H A Ddb_output.c332 outb(COMPORT+3, 0x83); /* DLAB + 8N1 */ in PCHAR_()
333 outb(COMPORT+0, (115200 / BAUD) & 0xFF); in PCHAR_()
334 outb(COMPORT+1, (115200 / BAUD) >> 8); in PCHAR_()
335 outb(COMPORT+3, 0x03); /* 8N1 */ in PCHAR_()
336 outb(COMPORT+4, 0x03); /* RTS+DTR */ in PCHAR_()
337 outb(COMPORT+2, 0x01); /* FIFO_ENABLE */ in PCHAR_()
342 outb(COMPORT + com_data, (u_char)c); in PCHAR_()
/dragonfly/sys/dev/netif/sn/
H A Dif_sn.c281 outb(BASE + INTR_MASK_REG_B, 0x00); in sninit()
310 outb(BASE + INTR_MASK_REG_B, mask); in sninit()
432 outb(BASE + INTR_MASK_REG_B, mask); in snstart()
494 outb(BASE + DATA_REG_B, 0); in snstart()
508 outb(BASE + INTR_MASK_REG_B, mask); in snstart()
686 outb(BASE + DATA_REG_B, 0); in snresume()
700 outb(BASE + INTR_MASK_REG_B, mask); in snresume()
753 outb(BASE + INTR_MASK_REG_B, 0x00); in sn_intr()
823 outb(BASE + INTR_ACK_REG_B, IM_TX_INT); in sn_intr()
944 outb(BASE + INTR_MASK_REG_B, mask); in sn_intr()
[all …]
/dragonfly/sys/platform/pc64/isa/
H A Dclock.c257 outb(TIMER_MODE, TIMER_SEL2 | (mode & 0x3f)); in acquire_timer2()
514 outb(TIMER_CNTR2, pitch); in sysbeep()
515 outb(TIMER_CNTR2, (pitch>>8)); in sysbeep()
518 outb(IO_PPI, inb(IO_PPI) | 3); in sysbeep()
535 outb(IO_RTC, reg); in rtcin()
548 outb(IO_RTC, reg); in writertc()
550 outb(IO_RTC + 1, val); in writertc()
662 outb(TIMER_CNTR0, 2); /* lsb */ in i8254_restore()
663 outb(TIMER_CNTR0, 0); /* msb */ in i8254_restore()
713 outb(i8254_walltimer_cntr, 0); /* lsb */ in i8254_cputimer_construct()
[all …]
/dragonfly/sys/bus/isa/
H A Dpnp.c129 outb (_PNP_ADDRESS, d); in pnp_write()
130 outb (_PNP_WRITE_DATA, r); in pnp_write()
138 outb (_PNP_ADDRESS, d);
154 outb(_PNP_ADDRESS, 0); in pnp_send_initiation_key()
155 outb(_PNP_ADDRESS, 0); /* yes, we do need it twice! */ in pnp_send_initiation_key()
158 outb(_PNP_ADDRESS, cur); in pnp_send_initiation_key()
162 outb(_PNP_ADDRESS, cur); in pnp_send_initiation_key()
177 outb(_PNP_ADDRESS, PNP_SERIAL_ISOLATION); in pnp_get_serial()
212 outb(_PNP_ADDRESS, PNP_STATUS); in pnp_get_resource_info()
222 outb(_PNP_ADDRESS, PNP_RESOURCE_DATA); in pnp_get_resource_info()
[all …]
/dragonfly/sys/dev/serial/sio/
H A Dsio.c609 outb(xioport + com_mcr, 0); in sioprobe()
653 outb(xiobase + com_scr, 0); in sioprobe()
1248 outb(siocniobase + com_ier, in sioattach()
1915 outb(com->modem_ctl_port, in siointr1()
2682 outb(com->modem_ctl_port, in commctl()
2897 outb(iobase + com_cfcr, cfcr); in siocngetspeed()
2935 outb(iobase + com_dlbl, dlbl); in siocnopen()
2938 outb(iobase + com_dlbh, dlbh); in siocnopen()
2967 outb(iobase + com_ier, sp->ier);
3061 outb(iobase + com_cfcr, cfcr); in siocnprobe()
[all …]
/dragonfly/sys/platform/pc64/include/
H A Dsmp.h32 outb(0x80, current_postcode)
35 outb(0x80, current_postcode)
38 outb(0x80, current_postcode)
/dragonfly/stand/boot/pc32/boot2/
H A Dsio.S37 outb %al,(%dx) # BASE+3
51 outb %al,(%dx) # BASE+3
54 outb %al,(%dx) # BASE+4
82 outb %al,(%dx) # Write character
/dragonfly/usr.bin/tcopy/
H A Dtcopy.c219 verify(int inp, int outp, char *outb) in verify() argument
237 r1: if ((outn = read(outp, outb, outmaxblk)) == -1) { in verify()
240 outn = read(outp, outb, outmaxblk); in verify()
259 if (bcmp(inb, outb, inn)) { in verify()
/dragonfly/sys/platform/pc64/x86_64/
H A Dmp_machdep.c91 #define CHECK_READ(A) (outb(CMOS_REG, (A)), inb(CMOS_DATA))
92 #define CHECK_WRITE(A,D) (outb(CMOS_REG, (A)), outb(CMOS_DATA, (D)))
442 outb(CMOS_REG, BIOS_RESET); in start_all_aps()
448 outb(CMOS_REG, BIOS_RESET); in start_all_aps()
449 outb(CMOS_DATA, BIOS_WARM); /* 'warm-start' */ in start_all_aps()
518 outb(CMOS_REG, BIOS_RESET); in start_all_aps()
519 outb(CMOS_DATA, BIOS_WARM); /* 'warm-start' */ in start_all_aps()
575 outb(CMOS_REG, BIOS_RESET); in start_all_aps()
576 outb(CMOS_DATA, mpbiosreason); in start_all_aps()
/dragonfly/sys/dev/video/fb/bmp/
H A Dsplash_bmp.c594 outb(ATC, 0x14); in bmp_Draw()
595 outb(ATC, 0); in bmp_Draw()
597 outb(ATC, i); in bmp_Draw()
598 outb(ATC, i); in bmp_Draw()
601 outb(ATC, 0x20); /* enable palette */ in bmp_Draw()

12