/titanic_44/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()
|
H A D | pic8259.h | 50 #define enable_irq(x) outb ( inb( IMR_REG(x) ) & ~IMR_BIT(x), IMR_REG(x) ) 51 #define disable_irq(x) outb ( inb( IMR_REG(x) ) | IMR_BIT(x), IMR_REG(x) )
|
/titanic_44/usr/src/uts/common/io/ |
H A D | pic.c | 42 (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() 61 (void) outb(SCMD_PORT, PIC_ICW1BASE|PIC_NEEDICW4); 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() [all …]
|
H A D | i8237A.c | 195 outb(chan_addr[chnl].mask_reg, (chnl & 3) | DMA_SETMSK); in d37A_dma_disable() 214 outb(chan_addr[chnl].mask_reg, chnl & 3); in d37A_dma_enable() 297 outb(chan_addr[chnl].scm_reg, chnl | EISA_ENCM | EISA_CMOK); in dEISA_setchain() 302 outb(chan_addr[chnl].scm_reg, chnl); in dEISA_setchain() 389 outb(chan_addr[chnl].scm_reg, chnl | EISA_ENCM); in d37A_prog_chan() 472 outb(chan_addr[chnl].scm_reg, chnl | EISA_ENCM); in d37A_dma_swsetup() 496 outb(chan_addr[chnl].reqt_reg, DMA_SETMSK | chnl); /* set request bit */ in d37A_dma_swstart() 515 outb(chan_addr[chnl].reqt_reg, chnl & 3); /* reset request bit */ in d37A_dma_stop() 607 outb(chan_addr[chnl].mode_reg, mode); in d37A_set_mode() 645 outb(chan_addr[chnl].emode_reg, emode); in d37A_set_mode() [all …]
|
H A D | fdc.c | 729 outb(fcp->c_regbase + FCR_CCR, ccr); in fdc_propinit2() 739 outb(fcp->c_regbase + FCR_CCR, 0); in fdc_propinit2() 784 outb(fcp->c_regbase + FCR_SRA, FSA_ENA5); in fdc_enhance_probe() 785 outb(fcp->c_regbase + FCR_SRA, FSA_ENA5); in fdc_enhance_probe() 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() 812 outb(fcp->c_regbase + FCR_SRA, FSA_ENA6); in fdc_enhance_probe() 813 outb(fcp->c_regbase + FCR_SRA, FSA_ENA6); in fdc_enhance_probe() [all …]
|
/titanic_44/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() 146 outb (port + UART_IER, 0); in serial_hw_init() 149 outb (port + UART_LCR, UART_DLAB); in serial_hw_init() 162 outb (port + UART_DLL, div & 0xFF); in serial_hw_init() 163 outb (port + UART_DLH, div >> 8); in serial_hw_init() 167 outb (port + UART_LCR, status); in serial_hw_init() 170 outb (port + UART_FCR, UART_ENABLE_FIFO); in serial_hw_init() 173 outb (port + UART_MCR, UART_ENABLE_MODEM); in serial_hw_init()
|
H A D | smp-imps.c | 82 outb (unsigned short port, unsigned char val) in outb() function 91 outb (0x70, loc); in cmos_write_byte() 92 outb (0x71, val); in cmos_write_byte() 98 outb (0x70, loc); in cmos_read_byte()
|
/titanic_44/usr/src/uts/i86pc/io/ |
H A D | todpc_subr.c | 361 outb(RTC_ADDR, RTC_D); /* check if clock valid */ in todpc_rtcget() 369 outb(RTC_ADDR, RTC_A); /* check if update in progress */ in todpc_rtcget() 377 outb(RTC_ADDR, i); in todpc_rtcget() 380 outb(RTC_ADDR, century); /* do century */ in todpc_rtcget() 384 outb(RTC_ADDR, day_alrm); in todpc_rtcget() 388 outb(RTC_ADDR, mon_alrm); in todpc_rtcget() 392 outb(RTC_ADDR, 0); /* re-read Seconds register */ in todpc_rtcget() 422 outb(RTC_ADDR, RTC_B); in todpc_rtcput() 424 outb(RTC_ADDR, RTC_B); in todpc_rtcput() 425 outb(RTC_DATA, reg | RTC_SET); /* allow time set now */ in todpc_rtcput() [all …]
|
H A D | microfind.c | 96 outb(PITCTL_PORT, PIT_LOADMODE); in microfind() 98 outb(PITCTR0_PORT, 0xff); in microfind() 99 outb(PITCTR0_PORT, 0xff); in microfind() 103 outb(PITCTL_PORT, PIT_READBACK|PIT_READBACKC0); in microfind() 208 outb(PITCTL_PORT, PIT_C0 | PIT_LOADMODE | PIT_SQUAREMODE); in microfind() 211 outb(PITCTR0_PORT, 0); in microfind() 212 outb(PITCTR0_PORT, 0); in microfind()
|
/titanic_44/usr/src/uts/i86pc/ml/ |
H A D | cpr_wakecode.s | 286 outb (%dx) 292 outb (%dx) 315 outb (%dx) 321 outb (%dx) 332 outb (%dx) 338 outb (%dx) 356 outb (%dx) 362 outb (%dx) 387 outb (%dx) 393 outb (%dx) [all …]
|
H A D | locore.s | 370 outb $MCMD_PORT 382 outb $MIMR_PORT 434 outb $CYRIX_CRI 483 outb $CYRIX_CRI 486 outb $CYRIX_CRD 492 outb $CYRIX_CRI 500 outb $CYRIX_CRI 503 outb $CYRIX_CRD 518 outb $CYRIX_CRI 542 outb $CYRIX_CRI [all …]
|
/titanic_44/usr/src/uts/i86pc/os/ |
H A D | pci_neptune.c | 61 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 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()
|
H A D | pci_mech2.c | 58 outb(PCI_CSE_PORT, in pci_mech2_config_enable() 60 outb(PCI_FORW_PORT, bus); in pci_mech2_config_enable() 68 outb(PCI_CSE_PORT, oldstatus); in pci_mech2_config_restore() 129 outb(PCI_CADDR2(device, reg), val); in pci_mech2_putb()
|
/titanic_44/usr/src/uts/i86pc/dboot/ |
H A D | dboot_asm.s | 41 outb(int port, uint8_t value) 71 ENTRY(outb) 74 outb (%dx) 76 SET_SIZE(outb) 118 ENTRY_NP(outb) 121 outb (%dx) 123 SET_SIZE(outb)
|
/titanic_44/usr/src/uts/i86pc/boot/ |
H A D | boot_console.c | 159 outb(port + ISR, 0x20); in serial_init() 164 outb(port + DAT+7, 0x04); /* clear status */ in serial_init() 165 outb(port + ISR, 0x40); /* set to bank 2 */ in serial_init() 166 outb(port + MCR, 0x08); /* IMD */ in serial_init() 167 outb(port + DAT, 0x21); /* FMD */ in serial_init() 168 outb(port + ISR, 0x00); /* set to bank 0 */ in serial_init() 176 outb(port + FIFOR, 0x00); /* clear */ in serial_init() 177 outb(port + FIFOR, FIFO_ON); /* enable */ in serial_init() 178 outb(port + FIFOR, FIFO_ON|FIFORXFLSH); /* reset */ in serial_init() 179 outb(port + FIFOR, in serial_init() [all …]
|
H A D | boot_vga.c | 168 outb(VGA_COLOR_CRTC_INDEX, index); in vga_set_crtc() 169 outb(VGA_COLOR_CRTC_DATA, val); in vga_set_crtc() 175 outb(VGA_COLOR_CRTC_INDEX, index); in vga_get_crtc()
|
/titanic_44/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()
|
/titanic_44/usr/src/uts/i86pc/io/psm/ |
H A D | uppc.c | 268 outb(PITCTL_PORT, (PIT_C0|PIT_NDIVMODE|PIT_READMODE)); in uppc_clkinit() 269 outb(PITCTR0_PORT, (uchar_t)clkticks); in uppc_clkinit() 270 outb(PITCTR0_PORT, (uchar_t)(clkticks>>8)); in uppc_clkinit() 575 outb(SIMR_PORT, sp->smask); in pic_restore_state() 576 outb(MIMR_PORT, sp->mmask); in pic_restore_state() 965 outb(MCMD_PORT, PIC_NSEOI); in uppc_intr_enter() 967 outb(SCMD_PORT, PIC_NSEOI); in uppc_intr_enter() 972 outb(MCMD_PORT, PIC_NSEOI); in uppc_intr_enter() 978 outb(MCMD_PORT, PIC_NSEOI); in uppc_intr_enter() 979 outb(SCMD_PORT, PIC_SEOI_LVL7); in uppc_intr_enter() [all …]
|
/titanic_44/usr/src/uts/i86pc/io/pcplusmp/ |
H A D | apic_common.c | 449 outb(CMOS_ADDR, SSB); in apic_cpu_send_SIPI() 450 outb(CMOS_DATA, BIOS_SHUTDOWN); in apic_cpu_send_SIPI() 1186 outb(CMOS_ADDR, SSB); in apic_shutdown() 1187 outb(CMOS_DATA, 0); in apic_shutdown() 1194 outb(APIC_IMCR_P1, (uchar_t)APIC_IMCR_SELECT); in apic_shutdown() 1195 outb(APIC_IMCR_P2, (uchar_t)APIC_IMCR_PIC); in apic_shutdown() 1228 outb(CMOS_ADDR, RTC_REGA); in apic_shutdown() 1230 outb(CMOS_DATA, (byte | EXT_BANK)); in apic_shutdown() 1232 outb(CMOS_ADDR, PFR_REG); in apic_shutdown() 1242 outb(CMOS_DATA, byte); in apic_shutdown() [all …]
|
/titanic_44/usr/src/uts/intel/io/acpica/ |
H A D | acpica_ec.c | 176 outb(ec.ec_sc, EC_RD); /* output a read command */ in ec_rd() 184 outb(ec.ec_base, addr); /* output addr */ in ec_rd() 225 outb(ec.ec_sc, EC_WR); /* output a write command */ in ec_wr() 233 outb(ec.ec_base, addr); /* output addr */ in ec_wr() 241 outb(ec.ec_base, val); /* write data */ in ec_wr() 263 outb(ec.ec_sc, EC_QR); /* output a query command */ in ec_query()
|