| /dflybsd-src/sys/platform/pc64/icu/ |
| H A D | icu.c | 76 outb(IO_ICU1, 0x11); /* reset; program device, four bytes */ in icu_init() 77 outb(IO_ICU1 + ICU_IMR_OFFSET, IDT_OFFSET); in icu_init() 79 outb(IO_ICU1 + ICU_IMR_OFFSET, 1 << ICU_IRQ_SLAVE); in icu_init() 81 outb(IO_ICU1 + ICU_IMR_OFFSET, auto_eoi | 1); /* 8086 mode */ in icu_init() 83 outb(IO_ICU1 + ICU_IMR_OFFSET, 0xff); /* leave interrupts masked */ in icu_init() 84 outb(IO_ICU1, 0x0a); /* default to IRR on read */ in icu_init() 85 outb(IO_ICU1, 0xc0 | (3 - 1)); /* pri order 3-7, 0-2 (com2 first) */ in icu_init() 90 outb(IO_ICU2, 0x11); /* reset; program device, four bytes */ 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() [all …]
|
| H A D | icu_ipl.s | 116 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 D | elcr.c | 115 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 D | icu_vector.s | 67 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 ; \
|
| /dflybsd-src/lib/libvgl/ |
| H A D | simple.c | 61 outb(0x3c4, 0x02); in VGLSetXY() 62 outb(0x3c5, 0x01 << (x&0x3)); in VGLSetXY() 71 outb(0x3c4, 0x02); outb(0x3c5, 0x0f); in VGLSetXY() 72 outb(0x3ce, 0x00); outb(0x3cf, color & 0x0f); /* set/reset */ in VGLSetXY() 73 outb(0x3ce, 0x01); outb(0x3cf, 0x0f); /* set/reset enable */ in VGLSetXY() 74 outb(0x3ce, 0x08); outb(0x3cf, 0x80 >> (x%8)); /* bit mask */ in VGLSetXY() 102 outb(0x3ce, 0x04); outb(0x3cf, x & 0x3); in VGLGetXY() 116 outb(0x3ce, 0x04); outb(0x3cf, i); in VGLGetXY() 279 outb(0x3c6, 0xff); in VGLClear() 280 outb(0x3c4, 0x02); outb(0x3c5, 0x0f); in VGLClear() [all …]
|
| H A D | main.c | 326 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() 336 outb(0x3c5, 0x01<<i); 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() 349 outb(0x3c5, 0x01<<i); in VGLCheckSwitch() [all …]
|
| H A D | bitmap.c | 91 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() 95 outb(0x3c5, 0x01<<i); in WriteVerticalLine() 96 outb(0x3ce, 0x04); in WriteVerticalLine() 97 outb(0x3cf, i); in WriteVerticalLine() 128 outb(0x3c4, 0x02); in WriteVerticalLine() 129 outb(0x3c5, 0x01 << ((x + i)%4)); in WriteVerticalLine() 178 outb(0x3ce, 0x04); in ReadVerticalLine() 179 outb(0x3cf, i); in ReadVerticalLine() [all …]
|
| H A D | mouse.c | 115 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()
|
| /dflybsd-src/sys/bus/isa/x86_64/ |
| H A D | isa_dma.c | 198 outb(DMA1_MODE, DMA37MD_CASCADE | chan); in isa_dmacascade() 199 outb(DMA1_SMSK, chan); in isa_dmacascade() 201 outb(DMA2_MODE, DMA37MD_CASCADE | (chan & 3)); in isa_dmacascade() 202 outb(DMA2_SMSK, chan & 3); in isa_dmacascade() 273 outb(DMA1_MODE, DMA37MD_AUTO|DMA37MD_WRITE|chan); in isa_dmastart() 275 outb(DMA1_MODE, DMA37MD_AUTO|DMA37MD_READ|chan); in isa_dmastart() 279 outb(DMA1_MODE, DMA37MD_SINGLE|DMA37MD_WRITE|chan); in isa_dmastart() 281 outb(DMA1_MODE, DMA37MD_SINGLE|DMA37MD_READ|chan); in isa_dmastart() 282 outb(DMA1_FFC, 0); in isa_dmastart() 286 outb(waport, phys); in isa_dmastart() [all …]
|
| /dflybsd-src/sys/dev/misc/ppc/ |
| H A D | ppc.c | 468 outb(idport, PC873_SID); in ppc_pc873xx_detect() 490 outb(idport, pc873xx_regstab[i]); in ppc_pc873xx_detect() 500 outb(idport, PC873_FER); in ppc_pc873xx_detect() 507 outb(idport, PC873_FAR); in ppc_pc873xx_detect() 532 outb(idport, PC873_FAR); in ppc_pc873xx_detect() 533 outb(idport + 1, val); in ppc_pc873xx_detect() 534 outb(idport + 1, val); in ppc_pc873xx_detect() 539 outb(idport, PC873_FAR); in ppc_pc873xx_detect() 552 outb(idport, PC873_PTR); in ppc_pc873xx_detect() 574 outb(idport + 1, (ptr | PC873_LPTBIRQ7)); in ppc_pc873xx_detect() [all …]
|
| /dflybsd-src/sys/dev/video/fb/ |
| H A D | vga.c | 555 outb(CRTC, 7); in verify_adapter() 646 outb(CRTC, 12); in probe_adapters() 647 outb(CRTC + 1, 0); in probe_adapters() 648 outb(CRTC, 13); in probe_adapters() 649 outb(CRTC + 1, 0); in probe_adapters() 750 outb(CRTC, 0x13); in set_line_length() 751 outb(CRTC + 1, count); in set_line_length() 771 outb(TSIDX, 1); in set_display_start() 786 outb(CRTC, 0xc); /* high */ in set_display_start() 787 outb(CRTC + 1, off >> 8); in set_display_start() [all …]
|
| /dflybsd-src/sys/libkern/ |
| H A D | hexncpy.c | 42 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()
|
| /dflybsd-src/stand/boot/common/ |
| H A D | isapnp.c | 40 #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 …]
|
| /dflybsd-src/stand/boot/pc32/libi386/ |
| H A D | comconsole.c | 98 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()
|
| /dflybsd-src/games/larn/ |
| H A D | io.c | 187 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() 222 *outb++ = *tmpb++; in lprintf() 227 *outb++ = ' '; in lprintf() 229 *outb++ = *tmpb++; in lprintf() 232 *outb++ = ' '; in lprintf() 240 while ((*outb++ = *tmpb++)) in lprintf() [all …]
|
| /dflybsd-src/sys/dev/netif/sn/ |
| H A D | if_sn.c | 281 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() 454 outb(BASE + PACKET_NUM_REG_B, packet_no); in snstart() 466 outb(BASE + DATA_REG_B, (length + 6) & 0xFF); in snstart() 467 outb(BASE + DATA_REG_B, (length + 6) >> 8); in snstart() 483 outb(BASE + DATA_REG_B, *(mtod(m, caddr_t) + m->m_len - 1)); in snstart() 494 outb(BASE + DATA_REG_B, 0); in snstart() 508 outb(BASE + INTR_MASK_REG_B, mask); in snstart() 629 outb(BASE + PACKET_NUM_REG_B, packet_no); in snresume() [all …]
|
| /dflybsd-src/sys/ddb/ |
| H A D | db_output.c | 332 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_()
|
| /dflybsd-src/sys/platform/pc64/isa/ |
| H A D | clock.c | 257 outb(TIMER_MODE, TIMER_SEL2 | (mode & 0x3f)); in acquire_timer2() 266 outb(TIMER_MODE, TIMER_SEL2 | TIMER_SQWAVE | TIMER_16BIT); in release_timer2() 296 outb(TIMER_MODE, i8254_walltimer_sel | TIMER_LATCH); in i8254_cputimer_count() 360 outb(TIMER_MODE, TIMER_SEL0 | TIMER_LATCH); /* count-down timer */ in i8254_intr_reload() 364 outb(TIMER_MODE, TIMER_SEL0 | TIMER_SWSTROBE | TIMER_16BIT); in i8254_intr_reload() 365 outb(TIMER_CNTR0, (uint8_t)reload); /* lsb */ in i8254_intr_reload() 366 outb(TIMER_CNTR0, (uint8_t)(reload >> 8)); /* msb */ in i8254_intr_reload() 370 outb(TIMER_MODE, TIMER_SEL0 | TIMER_SWSTROBE | TIMER_16BIT); in i8254_intr_reload() 371 outb(TIMER_CNTR0, (uint8_t)reload); /* lsb */ in i8254_intr_reload() 372 outb(TIMER_CNTR0, (uint8_t)(reload >> 8)); /* msb */ in i8254_intr_reload() [all …]
|
| /dflybsd-src/sys/bus/isa/ |
| H A D | pnp.c | 129 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 …]
|
| /dflybsd-src/sys/dev/serial/sio/ |
| H A D | sio.c | 609 outb(xioport + com_mcr, 0); in sioprobe() 651 outb(xiobase + com_scr, 0x80); in sioprobe() 653 outb(xiobase + com_scr, 0); in sioprobe() 924 outb(esp_port + ESP_CMD1, ESP_GETDIPS); in espattach() 941 outb(esp_port + ESP_CMD1, ESP_GETTEST); in espattach() 1168 outb(com->esp_port + ESP_CMD1, ESP_SETMODE); in sioattach() 1169 outb(com->esp_port + ESP_CMD2, ESP_MODE_RTS | ESP_MODE_FIFO); in sioattach() 1172 outb(com->esp_port + ESP_CMD1, ESP_SETFLOWTYPE); in sioattach() 1173 outb(com->esp_port + ESP_CMD2, ESP_FLOW_RTS); in sioattach() 1174 outb(com->esp_port + ESP_CMD2, ESP_FLOW_CTS); in sioattach() [all …]
|
| /dflybsd-src/sys/platform/pc64/include/ |
| H A D | smp.h | 32 outb(0x80, current_postcode) 35 outb(0x80, current_postcode) 38 outb(0x80, current_postcode)
|
| /dflybsd-src/stand/boot/pc32/boot2/ |
| H A D | sio.S | 37 outb %al,(%dx) # BASE+3 51 outb %al,(%dx) # BASE+3 54 outb %al,(%dx) # BASE+4 82 outb %al,(%dx) # Write character
|
| /dflybsd-src/usr.bin/tcopy/ |
| H A D | tcopy.c | 219 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()
|
| /dflybsd-src/sys/platform/pc64/x86_64/ |
| H A D | mp_machdep.c | 91 #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()
|
| /dflybsd-src/sys/dev/video/fb/bmp/ |
| H A D | splash_bmp.c | 594 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()
|