Home
last modified time | relevance | path

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

1234

/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dns8390.c123 outb(D8390_COMMAND_RD2 |
129 outb(D8390_COMMAND_RD0 |
173 outb(D8390_COMMAND_RD2 | in eth_pio_write()
180 outb(D8390_COMMAND_RD1 | in eth_pio_write()
296 outb(D8390_COMMAND_PS1 | in ns8390_reset()
300 outb(D8390_COMMAND_PS1 | in ns8390_reset()
309 outb(D8390_COMMAND_PS0 | in ns8390_reset()
313 outb(D8390_COMMAND_PS0 | in ns8390_reset()
465 outb(D8390_COMMAND_PS0 | in ns8390_transmit()
715 outb((eth_laar = in eth_probe()
[all …]
H A Dvia-rhine.c973 outb(0x80, byWOLcgClr); in rhine_probe1()
975 outb(0xFF, byWOLcrClr); in rhine_probe1()
977 outb(0xFF, byPwrcsrClr); in rhine_probe1()
1048 outb (0x41, byMIIAD); in rhine_probe1()
1154 outb (CR1_SFRST, byCR1); in rhine_reset()
1170 outb (0x06, byBCR0); in rhine_reset()
1171 outb (0x00, byBCR1); in rhine_reset()
1172 outb (0x2c, byRCR); in rhine_reset()
1173 outb (0x60, byTCR); in rhine_reset()
1178 outb (CFGD_CFDX, byCFGD); in rhine_reset()
[all …]
H A Drtl8139.c206 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()
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()
507 outb(EROK, nic->ioaddr + RxEarlyStatus); in rtl_irq()
[all …]
H A Di386_timer.c29 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 Dpic.c42 (void) outb(MCMD_PORT, PIC_ICW1BASE|PIC_NEEDICW4); in picsetup()
45 (void) outb(MIMR_PORT, PIC_VECTBASE); in picsetup()
48 (void) outb(MIMR_PORT, 1 << MASTERLINE); in picsetup()
51 (void) outb(MIMR_PORT, PIC_86MODE); in picsetup()
54 (void) outb(MIMR_PORT, 0xFF); in picsetup()
57 (void) outb(MCMD_PORT, PIC_READISR); in picsetup()
64 outb(SIMR_PORT, PIC_VECTBASE + 8); in picsetup()
67 outb(SIMR_PORT, MASTERLINE); in picsetup()
70 outb(SIMR_PORT, PIC_86MODE); in picsetup()
73 outb(SIMR_PORT, 0xff); in picsetup()
[all …]
H A Di8237A.c214 outb(chan_addr[chnl].mask_reg, chnl & 3); in d37A_dma_enable()
302 outb(chan_addr[chnl].scm_reg, chnl); in dEISA_setchain()
607 outb(chan_addr[chnl].mode_reg, mode); in d37A_set_mode()
645 outb(chan_addr[chnl].emode_reg, emode); in d37A_set_mode()
692 outb(chan_addr[chnl].addr_reg, adr_byte[0]); in d37A_write_addr()
693 outb(chan_addr[chnl].addr_reg, adr_byte[1]); in d37A_write_addr()
694 outb(chan_addr[chnl].page_reg, adr_byte[2]); in d37A_write_addr()
696 outb(chan_addr[chnl].hpage_reg, adr_byte[3]); in d37A_write_addr()
792 outb(chan_addr[chnl].cnt_reg, count_byte[0]); in d37A_write_count()
793 outb(chan_addr[chnl].cnt_reg, count_byte[1]); in d37A_write_count()
[all …]
H A Dfdc.c729 outb(fcp->c_regbase + FCR_CCR, ccr); in fdc_propinit2()
739 outb(fcp->c_regbase + FCR_CCR, 0); in fdc_propinit2()
788 outb(fcp->c_regbase + FCR_SRA, 0x0F); in fdc_enhance_probe()
792 outb(fcp->c_regbase + FCR_SRA, 0x0D); in fdc_enhance_probe()
796 outb(fcp->c_regbase + FCR_SRA, 0x0E); in fdc_enhance_probe()
807 outb(fcp->c_regbase + FCR_SRA, FSA_DISB); in fdc_enhance_probe()
816 outb(fcp->c_regbase + FCR_SRA, 0x0F); in fdc_enhance_probe()
820 outb(fcp->c_regbase + FCR_SRA, 0x0D); in fdc_enhance_probe()
824 outb(fcp->c_regbase + FCR_SRA, 0x0E); in fdc_enhance_probe()
838 outb(fcp->c_regbase + FCR_SRA, save); in fdc_enhance_probe()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dhercules.c50 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()
178 outb (0x80, 0); in hercules_setcursor()
[all …]
H A Dserial.c111 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()
180 outb (port + UART_FCR, UART_ENABLE_FIFO); in serial_hw_init()
[all …]
/illumos-gate/usr/src/uts/i86pc/ml/
H A Dcpr_wakecode.s208 outb (%dx)
411 outb (%dx)
415 outb (%dx)
419 outb (%dx)
423 outb (%dx)
427 outb (%dx)
432 outb (%dx)
436 outb (%dx)
440 outb (%dx)
444 outb (%dx)
[all …]
/illumos-gate/usr/src/uts/i86pc/io/
H A Dtodpc_subr.c389 outb(RTC_ADDR, i); in todpc_rtcget()
396 outb(RTC_ADDR, day_alrm); in todpc_rtcget()
400 outb(RTC_ADDR, mon_alrm); in todpc_rtcget()
434 outb(RTC_ADDR, RTC_B); in todpc_rtcput()
436 outb(RTC_ADDR, RTC_B); in todpc_rtcput()
439 outb(RTC_ADDR, i); in todpc_rtcput()
440 outb(RTC_DATA, buf[i]); in todpc_rtcput()
446 outb(RTC_ADDR, day_alrm); in todpc_rtcput()
450 outb(RTC_DATA, tmp); in todpc_rtcput()
457 outb(RTC_ADDR, RTC_B); in todpc_rtcput()
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dpci_neptune.c61 outb(PCI_CSE_PORT, PCI_MECH2_CONFIG_ENABLE); in pci_check_neptune()
62 outb(PCI_FORW_PORT, 0); in pci_check_neptune()
76 outb(PCI_CSE_PORT, oldstatus); in pci_check_neptune()
81 outb(PCI_CSE_PORT, oldstatus); in pci_check_neptune()
101 outb(PCI_PMC, neptune_BIOS_cfg_method | 1); in pci_check_neptune()
107 outb(PCI_PMC, neptune_BIOS_cfg_method); in pci_check_neptune()
111 outb(PCI_PMC, neptune_BIOS_cfg_method); in pci_check_neptune()
122 outb(PCI_PMC, neptune_BIOS_cfg_method | 1); in pci_neptune_enable()
135 outb(PCI_PMC, neptune_BIOS_cfg_method); in pci_neptune_disable()
H A Dtscc_pit.c91 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 Dgraphics.c39 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()
H A Dpci_mech2.c61 outb(PCI_CSE_PORT, in pci_mech2_config_enable()
63 outb(PCI_FORW_PORT, bus); in pci_mech2_config_enable()
71 outb(PCI_CSE_PORT, oldstatus); in pci_mech2_config_restore()
132 outb(PCI_CADDR2(device, reg), val); in pci_mech2_putb()
/illumos-gate/usr/src/boot/sys/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()
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/uts/i86pc/dboot/
H A Ddboot_asm.s50 ENTRY(outb)
53 outb (%dx)
55 SET_SIZE(outb)
97 ENTRY_NP(outb)
100 outb (%dx)
102 SET_SIZE(outb)
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Drelocater_tramp.S156 outb %al,$0xa0 # slave
158 outb %al,$0x21 # master
160 outb %al,$0xa1 # slave
162 outb %al,$0x21 # master
164 outb %al,$0xa1 # slave
167 outb %al,$0xa1 # slave
169 outb %al,$0xa1 # IMR
171 outb %al,$0x21 # IMR
199 outb $0x92
219 outb %al, $0x80
[all …]
H A Dcomconsole.c276 outb(sp->ioaddr + com_data, (uchar_t)c); in comc_putchar()
615 outb(sp->ioaddr + com_scr, COMC_TEST); in comc_setup()
619 outb(sp->ioaddr + com_cfcr, CFCR_DLAB | sp->lcr); in comc_setup()
620 outb(sp->ioaddr + com_dlbl, COMC_BPS(sp->speed) & 0xff); in comc_setup()
621 outb(sp->ioaddr + com_dlbh, COMC_BPS(sp->speed) >> 8); in comc_setup()
622 outb(sp->ioaddr + com_cfcr, sp->lcr); in comc_setup()
623 outb(sp->ioaddr + com_mcr, in comc_setup()
647 outb(sp->ioaddr + com_cfcr, CFCR_DLAB | cfcr); in comc_getspeed()
652 outb(sp->ioaddr + com_cfcr, cfcr); in comc_getspeed()
/illumos-gate/usr/src/uts/i86pc/boot/
H A Dboot_vga.c322 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 Dboot_console.c138 outb(port + ISR, 0x20); in serial_init()
145 outb(port + MCR, 0x08); /* IMD */ in serial_init()
146 outb(port + DAT, 0x21); /* FMD */ in serial_init()
158 outb(port + FIFOR, in serial_init()
165 outb(port + FIFOR, 0x00); in serial_init()
170 outb(port + ICR, 0); in serial_init()
455 outb(port + LCR, DLAB); in serial_adjust_prop()
456 outb(port + DAT + DLL, baud & 0xff); in serial_adjust_prop()
512 outb(port + LCR, lcr); in serial_adjust_prop()
522 outb(port + MCR, mcr | OUT2); in serial_adjust_prop()
[all …]
/illumos-gate/usr/src/uts/intel/io/
H A Dpit_beep.c268 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/psm/
H A Duppc.c274 outb(PITCTR0_PORT, (uchar_t)clkticks); 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()
986 outb(MCMD_PORT, PIC_SEOI_LVL7); in uppc_intr_enter()
1035 outb(SIMR_PORT, smask); in uppc_setspl()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/pcplusmp/
H A Dapic_common.c455 outb(CMOS_ADDR, SSB); in apic_cpu_send_SIPI()
456 outb(CMOS_DATA, BIOS_SHUTDOWN); in apic_cpu_send_SIPI()
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()
1454 outb(CMOS_ADDR, RTC_REGA); in apic_shutdown()
1458 outb(CMOS_ADDR, PFR_REG); in apic_shutdown()
1468 outb(CMOS_DATA, byte); in apic_shutdown()
1478 outb(CMOS_DATA, byte); in apic_shutdown()
[all …]
/illumos-gate/usr/src/boot/sys/boot/i386/gptzfsboot/
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

1234