/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | ns8390.c | 120 outb(src & 0xff, eth_asic_base + WD_GP2); 121 outb(src >> 8, eth_asic_base + WD_GP2); 123 outb(D8390_COMMAND_RD2 | 125 outb(cnt, eth_nic_base + D8390_P0_RBCR0); 126 outb(cnt>>8, eth_nic_base + D8390_P0_RBCR1); 127 outb(src, eth_nic_base + D8390_P0_RSAR0); 128 outb(src>>8, eth_nic_base + D8390_P0_RSAR1); 129 outb(D8390_COMMAND_RD0 | 133 outb(src & 0xff, eth_asic_base + _3COM_DALSB); 134 outb(src >> 8, eth_asic_base + _3COM_DAMSB); [all …]
|
H A D | via-rhine.c | 748 outb (byMIICRbak & 0x7f, byMIICR); in ReadMII() 751 outb (byMIIIndex, byMIIAD); in ReadMII() 754 outb (inb (byMIICR) | 0x40, byMIICR); in ReadMII() 768 outb (byMIIAdrbak, byMIIAD); in ReadMII() 769 outb (byMIICRbak, byMIICR); in ReadMII() 789 outb (byMIICRbak & 0x7f, byMIICR); in WriteMII() 791 outb (byMIISetByte, byMIIAD); in WriteMII() 794 outb (inb (byMIICR) | 0x40, byMIICR); in WriteMII() 824 outb (inb (byMIICR) | 0x20, byMIICR); in WriteMII() 835 outb (byMIIAdrbak & 0x7f, byMIIAD); in WriteMII() [all …]
|
H A D | rtl8139.c | 206 outb(0x00, nic->ioaddr + Config1); in rtl8139_probe() 263 outb(EE_ENB & ~EE_CS, ee_addr); in read_eeprom() 264 outb(EE_ENB, ee_addr); in read_eeprom() 270 outb(EE_ENB | dataval, ee_addr); in read_eeprom() 272 outb(EE_ENB | dataval | EE_SHIFT_CLK, ee_addr); in read_eeprom() 275 outb(EE_ENB, ee_addr); in read_eeprom() 279 outb(EE_ENB | EE_SHIFT_CLK, ee_addr); in read_eeprom() 282 outb(EE_ENB, ee_addr); in read_eeprom() 287 outb(~EE_CS, ee_addr); in read_eeprom() 314 outb(CmdReset, nic->ioaddr + ChipCmd); in rtl_reset() [all …]
|
H A D | i386_timer.c | 29 outb((inb(PPC_PORTB) & ~PPCB_SPKR) | PPCB_T2GATE, PPC_PORTB); in __load_timer2() 31 outb(TIMER2_SEL|WORD_ACCESS|MODE0|BINARY_COUNT, TIMER_MODE_PORT); in __load_timer2() 33 outb(ticks & 0xFF, TIMER2_PORT); in __load_timer2() 35 outb(ticks >> 8, TIMER2_PORT); in __load_timer2()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | pic.c | 40 (void) outb(MCMD_PORT, PIC_ICW1BASE|PIC_NEEDICW4); in picsetup() 43 (void) outb(MIMR_PORT, PIC_VECTBASE); in picsetup() 46 (void) outb(MIMR_PORT, 1 << MASTERLINE); in picsetup() 49 (void) outb(MIMR_PORT, PIC_86MODE); in picsetup() 52 (void) outb(MIMR_PORT, 0xFF); in picsetup() 55 (void) outb(MCMD_PORT, PIC_READISR); in picsetup() 59 (void) outb(SCMD_PORT, PIC_ICW1BASE|PIC_NEEDICW4); in picsetup() 62 outb(SIMR_PORT, PIC_VECTBASE + 8); in picsetup() 65 outb(SIMR_PORT, MASTERLINE); in picsetup() 68 outb(SIMR_PORT, PIC_86MODE); in picsetup() [all …]
|
H A D | i8237A.c | 193 outb(chan_addr[chnl].mask_reg, (chnl & 3) | DMA_SETMSK); in d37A_dma_disable() 212 outb(chan_addr[chnl].mask_reg, chnl & 3); in d37A_dma_enable() 295 outb(chan_addr[chnl].scm_reg, chnl | EISA_ENCM | EISA_CMOK); in dEISA_setchain() 300 outb(chan_addr[chnl].scm_reg, chnl); in dEISA_setchain() 387 outb(chan_addr[chnl].scm_reg, chnl | EISA_ENCM); in d37A_prog_chan() 470 outb(chan_addr[chnl].scm_reg, chnl | EISA_ENCM); in d37A_dma_swsetup() 494 outb(chan_addr[chnl].reqt_reg, DMA_SETMSK | chnl); /* set request bit */ in d37A_dma_swstart() 513 outb(chan_addr[chnl].reqt_reg, chnl & 3); /* reset request bit */ in d37A_dma_stop() 605 outb(chan_addr[chnl].mode_reg, mode); in d37A_set_mode() 643 outb(chan_addr[chnl].emode_reg, emode); in d37A_set_mode() [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | hercules.c | 40 outb (unsigned short port, unsigned char value) in outb() function 50 outb (HERCULES_INDEX_REG, 0x0f); in herc_set_cursor() 51 outb (0x80, 0); in herc_set_cursor() 52 outb (HERCULES_DATA_REG, offset & 0xFF); in herc_set_cursor() 53 outb (0x80, 0); in herc_set_cursor() 55 outb (HERCULES_INDEX_REG, 0x0e); in herc_set_cursor() 56 outb (0x80, 0); in herc_set_cursor() 57 outb (HERCULES_DATA_REG, offset >> 8); in herc_set_cursor() 58 outb (0x80, 0); in herc_set_cursor() 177 outb (HERCULES_INDEX_REG, 0x0a); in hercules_setcursor() [all …]
|
H A D | serial.c | 81 outb (unsigned short port, unsigned char value) in outb() function 111 outb (serial_hw_port + UART_TX, c); in serial_hw_put() 117 outb (0x80, 0); in serial_hw_delay() 149 outb (port + UART_SR, UART_SR_TEST); in serial_hw_init() 150 outb (port + UART_FCR, 0); in serial_hw_init() 156 outb (port + UART_IER, 0); in serial_hw_init() 159 outb (port + UART_LCR, UART_DLAB); in serial_hw_init() 172 outb (port + UART_DLL, div & 0xFF); in serial_hw_init() 173 outb (port + UART_DLH, div >> 8); in serial_hw_init() 177 outb (port + UART_LCR, status); in serial_hw_init() [all …]
|
/illumos-gate/usr/src/uts/i86pc/ml/ |
H A D | cpr_wakecode.S | 208 outb (%dx) 214 outb (%dx) 237 outb (%dx) 243 outb (%dx) 254 outb (%dx) 260 outb (%dx) 278 outb (%dx) 284 outb (%dx) 309 outb (%dx) 315 outb (%dx) [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | todpc_subr.c | 370 outb(RTC_ADDR, RTC_D); /* check if clock valid */ in todpc_rtcget() 381 outb(RTC_ADDR, RTC_A); /* check if update in progress */ in todpc_rtcget() 389 outb(RTC_ADDR, i); in todpc_rtcget() 392 outb(RTC_ADDR, century); /* do century */ in todpc_rtcget() 396 outb(RTC_ADDR, day_alrm); in todpc_rtcget() 400 outb(RTC_ADDR, mon_alrm); in todpc_rtcget() 404 outb(RTC_ADDR, 0); /* re-read Seconds register */ in todpc_rtcget() 434 outb(RTC_ADDR, RTC_B); in todpc_rtcput() 436 outb(RTC_ADDR, RTC_B); in todpc_rtcput() 437 outb(RTC_DATA, reg | RTC_SET); /* allow time set now */ in todpc_rtcput() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | pci_neptune.c | 59 outb(PCI_CSE_PORT, PCI_MECH2_CONFIG_ENABLE); in pci_check_neptune() 60 outb(PCI_FORW_PORT, 0); in pci_check_neptune() 74 outb(PCI_CSE_PORT, oldstatus); in pci_check_neptune() 79 outb(PCI_CSE_PORT, oldstatus); in pci_check_neptune() 99 outb(PCI_PMC, neptune_BIOS_cfg_method | 1); in pci_check_neptune() 105 outb(PCI_PMC, neptune_BIOS_cfg_method); in pci_check_neptune() 109 outb(PCI_PMC, neptune_BIOS_cfg_method); in pci_check_neptune() 120 outb(PCI_PMC, neptune_BIOS_cfg_method | 1); in pci_neptune_enable() 133 outb(PCI_PMC, neptune_BIOS_cfg_method); in pci_neptune_disable()
|
H A D | tscc_pit.c | 91 outb(PITCTL_PORT, PIT_C0 | PIT_LOADMODE | PIT_ENDSIGMODE); in pit_sanity_check() 93 outb(PITCTR0_PORT, 0xFF); in pit_sanity_check() 94 outb(PITCTR0_PORT, 0xFF); in pit_sanity_check() 103 outb(PITCTL_PORT, PIT_READBACK | PIT_READBACKC0); in pit_sanity_check()
|
H A D | graphics.c | 39 extern void outb(int, uchar_t); 58 outb(0x3c4, 2); in mapmask() 59 outb(0x3c5, plane); in mapmask() 65 outb(0x3ce, 8); in bitmask() 66 outb(0x3cf, value); in bitmask()
|
/illumos-gate/usr/src/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() 132 outb(_PNP_ADDRESS, STATUS); in isapnp_get_resource_info() 142 outb(_PNP_ADDRESS, RESOURCE_DATA); in isapnp_get_resource_info() [all …]
|
/illumos-gate/usr/src/test/bhyve-tests/tests/kdev/ |
H A D | payload_vrtc_ops.c | 61 outb(IOP_RTC_ADDR, off); in rtc_read() 72 outb(IOP_RTC_ADDR, off); in rtc_write() 76 return (outb(IOP_RTC_DATA, data)); in rtc_write() 96 outb(IOP_ATPIC_SCMD, 0x11); in atpic_init() 98 outb(IOP_ATPIC_SDATA, 0x20); in atpic_init() 100 outb(IOP_ATPIC_SDATA, 0x00); in atpic_init() 102 outb(IOP_ATPIC_SDATA, 0x03); in atpic_init() 104 outb(IOP_ATPIC_SDATA, 0x00); in atpic_init() 116 outb(IOP_ATPIC_SCMD, 0x0c); in atpit_poll_for_intr()
|
H A D | payload_vatpit_freq.c | 28 outb(IOP_ATPIT_CMD, 0x30); in timer0_reset() 31 outb(IOP_ATPIT_C0, 0xff); in timer0_reset() 32 outb(IOP_ATPIT_C0, 0xff); in timer0_reset() 41 outb(IOP_ATPIT_CMD, 0x00); in timer0_read()
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | relocater_tramp.S | 155 outb %al,$0x20 # master, 156 outb %al,$0xa0 # slave 158 outb %al,$0x21 # master 160 outb %al,$0xa1 # slave 162 outb %al,$0x21 # master 164 outb %al,$0xa1 # slave 166 outb %al,$0x21 # master, 167 outb %al,$0xa1 # slave 169 outb %al,$0xa1 # IMR 171 outb %al,$0x21 # IMR [all …]
|
/illumos-gate/usr/src/uts/i86pc/dboot/ |
H A D | dboot_asm.S | 50 ENTRY(outb) 53 outb (%dx) 55 SET_SIZE(outb) 97 ENTRY_NP(outb) 100 outb (%dx) 102 SET_SIZE(outb)
|
/illumos-gate/usr/src/uts/i86pc/boot/ |
H A D | boot_vga.c | 322 outb(VGA_REG_ADDR + VGA_ATR_AD, index); in vga_set_atr() 323 outb(VGA_REG_ADDR + VGA_ATR_AD, val); in vga_set_atr() 326 outb(VGA_REG_ADDR + VGA_ATR_AD, VGA_ATR_ENB_PLT); in vga_set_atr() 335 outb(VGA_REG_ADDR + VGA_ATR_AD, index); in vga_get_atr() 339 outb(VGA_REG_ADDR + VGA_ATR_AD, VGA_ATR_ENB_PLT); in vga_get_atr() 347 outb(VGA_REG_ADDR + VGA_CRTC_ADR, index); in vga_set_crtc() 348 outb(VGA_REG_ADDR + VGA_CRTC_DATA, val); in vga_set_crtc() 354 outb(VGA_REG_ADDR + VGA_CRTC_ADR, index); in vga_get_crtc()
|
H A D | boot_console.c | 138 outb(port + ISR, 0x20); in serial_init() 143 outb(port + DAT+7, 0x04); /* clear status */ in serial_init() 144 outb(port + ISR, 0x40); /* set to bank 2 */ in serial_init() 145 outb(port + MCR, 0x08); /* IMD */ in serial_init() 146 outb(port + DAT, 0x21); /* FMD */ in serial_init() 147 outb(port + ISR, 0x00); /* set to bank 0 */ in serial_init() 155 outb(port + FIFOR, 0x00); /* clear */ in serial_init() 156 outb(port + FIFOR, FIFO_ON); /* enable */ in serial_init() 157 outb(port + FIFOR, FIFO_ON|FIFORXFLSH); /* reset */ in serial_init() 158 outb(port + FIFOR, in serial_init() [all …]
|
/illumos-gate/usr/src/test/bhyve-tests/tests/common/ |
H A D | payload_utils.S | 20 ENTRY(outb) 23 outb (%dx) 25 SET_SIZE(outb) 33 SET_SIZE(outb) 148 call outb 156 call outb
|
/illumos-gate/usr/src/uts/i86pc/io/psm/ |
H A D | uppc.c | 273 outb(PITCTL_PORT, (PIT_C0|PIT_NDIVMODE|PIT_READMODE)); in uppc_clkinit() 274 outb(PITCTR0_PORT, (uchar_t)clkticks); in uppc_clkinit() 275 outb(PITCTR0_PORT, (uchar_t)(clkticks>>8)); in uppc_clkinit() 580 outb(SIMR_PORT, sp->smask); in pic_restore_state() 581 outb(MIMR_PORT, sp->mmask); in pic_restore_state() 970 outb(MCMD_PORT, PIC_NSEOI); in uppc_intr_enter() 972 outb(SCMD_PORT, PIC_NSEOI); in uppc_intr_enter() 977 outb(MCMD_PORT, PIC_NSEOI); in uppc_intr_enter() 983 outb(MCMD_PORT, PIC_NSEOI); in uppc_intr_enter() 984 outb(SCMD_PORT, PIC_SEOI_LVL7); in uppc_intr_enter() [all …]
|
/illumos-gate/usr/src/test/bhyve-tests/tests/inst_emul/ |
H A D | payload_cpuid.c | 134 outb(IOP_TEST_RESULT, TEST_RESULT_FAIL); in do_test() 145 outb(IOP_TEST_RESULT, TEST_RESULT_FAIL); in do_test() 149 outb(IOP_TEST_RESULT, TEST_RESULT_FAIL); in do_test() 168 outb(IOP_TEST_RESULT, TEST_RESULT_PASS); in start()
|
/illumos-gate/usr/src/uts/intel/io/ |
H A D | pit_beep.c | 268 outb(PITCTL_PORT, PIT_C2 | PIT_READMODE | PIT_RATEMODE); in pit_beep_freq() 269 outb(PITCTR2_PORT, counter & 0xff); in pit_beep_freq() 270 outb(PITCTR2_PORT, counter >> 8); in pit_beep_freq() 278 outb(PITAUX_PORT, inb(PITAUX_PORT) | (PITAUX_OUT2 | PITAUX_GATE2)); in pit_beep_on() 286 outb(PITAUX_PORT, inb(PITAUX_PORT) & ~(PITAUX_OUT2 | PITAUX_GATE2)); in pit_beep_off()
|
/illumos-gate/usr/src/uts/i86pc/io/pcplusmp/ |
H A D | apic_common.c | 455 outb(CMOS_ADDR, SSB); in apic_cpu_send_SIPI() 456 outb(CMOS_DATA, BIOS_SHUTDOWN); in apic_cpu_send_SIPI() 1140 outb(PITCTL_PORT, PIT_C0 | PIT_LOADMODE | PIT_ENDSIGMODE); in apic_calibrate_pit() 1146 outb(PITCTR0_PORT, 0xFF); in apic_calibrate_pit() 1147 outb(PITCTR0_PORT, 0xFF); in apic_calibrate_pit() 1412 outb(CMOS_ADDR, SSB); in apic_shutdown() 1413 outb(CMOS_DATA, 0); in apic_shutdown() 1420 outb(APIC_IMCR_P1, (uchar_t)APIC_IMCR_SELECT); in apic_shutdown() 1421 outb(APIC_IMCR_P2, (uchar_t)APIC_IMCR_PIC); in apic_shutdown() 1454 outb(CMOS_ADDR, RTC_REGA); in apic_shutdown() [all …]
|