/original-bsd/sys/i386/stand/ |
H A D | kbd.c | 24 u_char inb(); 116 while(inb(0x64)&1 == 0); in kbd() 117 dt = inb(0x60); in kbd() 119 while(inb(0x64)&1 == 0); in kbd() 120 } while(dt == inb(0x60)); in kbd() 174 c = inb(0x60); in scankbd() 189 while (inb(0x64)&2); outb(0x64,0x60); in kbdreset() 190 while (inb(0x64)&2); outb(0x60,0x4D); in kbdreset() 193 while (inb(0x64)&2); /* wait input ready */ in kbdreset() 196 while((c=inb(0x60))!=0xFA) ; in kbdreset() [all …]
|
H A D | wd.c | 214 while ((inb(wdc+wd_status) & WDCS_DRQ) == 0) ; 221 if (inb(wdc+wd_status) & WDCS_DRQ) goto error; 225 if (inb(wdc+wd_status) & WDCS_ERR) goto error; 232 erro = inb(wdc+wd_error); 238 blknm, inb(wdc+wd_status), erro); 279 if ((i = inb(wdc+wd_status)) & WDCS_ERR) { 304 while (inb(wdc+wd_status) & WDCS_BUSY) ; 320 if ((i = inb(wdc+wd_status)) & WDCS_ERR) { 323 err = inb(wdc+wd_error); 373 while (inb(wdc+wd_status) & WDCS_BUSY) ; [all …]
|
H A D | wdbootblk.c | 126 inb %dx,%al 148 inb %dx,%al 153 inb %dx,%al /* cyl_hi */ 160 inb %dx,%al /* sdh */
|
H A D | fdbootblk.c | 159 2: inb %dx,%al 178 inb %dx,%al 190 2: inb %dx,%al 196 inb %dx,%al
|
H A D | fd.c | 192 while ((i = inb(fdc+fdsts) & 192) != 192) if (i == 128) return -1; in in_fdc() 193 return inb(0x3f5); in in_fdc() 237 while ((c=inb(0x20))&0x7f != 6); /* wait for int */ in waitio() 246 r = (inb(fdc+fdsts) & 192);
|
H A D | cga.c | 57 cursorat = inb(addr_6845+1)<<8 ; 59 cursorat |= inb(addr_6845+1);
|
H A D | srt0.c | 166 inb %dx,%al
|
/original-bsd/sys/i386/isa/ |
H A D | com.c | 266 code = inb(com+com_iir); 278 code = inb(com+com_data); \ 287 code = inb(com+com_data); \ 334 c = inb(com+com_data); 361 stat = inb(com+com_msr); 511 if (inb(com+com_lsr) & LSR_TXRDY) { 566 bits = inb(com+com_msr); 633 stat = inb(com+com_iir); 649 c = inb(com+com_data); in comcngetc() 650 stat = inb(com+com_iir); in comcngetc() [all …]
|
H A D | clock.c | 77 if (s = inb (IO_RTC+1)) in startrtclock() 98 low = inb(IO_TIMER1); /* least siginifcant */ in findcpuspeed() 99 remainder = inb(IO_TIMER1); /* most significant */ in findcpuspeed() 208 printf("%d ",bcd(inb(IO_RTC+1))); 210 printf("%d ",bcd(inb(IO_RTC+1))); 212 printf("%d ",bcd(inb(IO_RTC+1))); 214 printf("%d ",bcd(inb(IO_RTC+1))); 216 printf("%d ",bcd(inb(IO_RTC+1))); 218 printf("%d\n",bcd(inb(IO_RTC+1)));
|
H A D | wd.c | 156 if(inb(wdc+wd_error) != 0x5a && inb(wdc+wd_cyl_lo) == 0xa5) 398 while ((inb(wdc+wd_status) & WDCS_BUSY) != 0) ; in wdstart() 434 while ((inb(wdc+wd_status) & WDCS_DRQ) == 0); in wdstart() 530 while ((inb(wdc+wd_status) & WDCS_DRQ) == 0) ; in wdintr() 753 if ((stat = inb(wdc+wd_status)) & WDCS_ERR) { 758 inb(wdc+wd_error), WDERR_BITS); 800 if ((stat = inb(wdc+wd_status)) & WDCS_ERR) { 856 stat = inb(wdc+wd_error); 1083 while (inb(wdc+wd_status) & WDCS_BUSY) ; 1147 inb(wdc+wd_sdh), inb(wdc+wd_sector), [all …]
|
H A D | if_we.c | 118 sum += inb(is->id_iobase + WD_ROM_OFFSET + i); 121 sc->we_type = inb(is->id_iobase + WD_ROM_OFFSET + 6); 390 weisr.is_byte = inb(sc->we_io_nic_addr + WD_P0_ISR); 398 inb(sc->we_io_nic_addr + WD_P0_TBCR0); 405 (void) inb(sc->we_io_nic_addr + 0xD); 406 (void) inb(sc->we_io_nic_addr + 0xE); 407 (void) inb(sc->we_io_nic_addr + 0xF); 427 weisr.is_byte = inb(sc->we_io_nic_addr + WD_P0_ISR); 479 bnry = inb(sc->we_io_nic_addr + WD_P0_BNRY); 482 curr = inb(sc->we_io_nic_addr + WD_P1_CURR); [all …]
|
H A D | pccons.c | 90 u_char inb(); 99 while (inb(0x64)&2); outb(0x64,0x60); 100 while (inb(0x64)&2); outb(0x60,0x4D); 103 while (inb(0x64)&2); /* wait input ready */ 105 while((c=inb(0x60))!=0xFA) { 114 while((c=inb(0x60))!=0xAA); 396 outb(0x61,inb(0x61)&0xFC); in sysbeepstop() 404 outb(0x61,inb(0x61)|3); in sysbeep() 467 cursorat = inb(addr_6845+1)<<8 ; 469 cursorat |= inb(addr_6845+1); [all …]
|
H A D | if_ne.c | 105 val = inb(nec+ne_reset); 181 cmd = inb(nec+ds_cmd); 207 cmd = inb(nec+ds_cmd); 409 cmd = inb (nec+ds_cmd); in neintr() 411 isr = inb (nec+ds0_isr); in neintr() 418 (void) inb(nec+ ds0_rsr); in neintr() 419 (void) inb(nec+ 0xD); in neintr() 420 (void) inb(nec + 0xE); in neintr() 421 (void) inb(nec + 0xF); in neintr() 430 pend = inb(nec+ds1_curr); in neintr() [all …]
|
H A D | wt.c | 737 stat = inb(wtport) & (READY|EXCEP); in wtdsl2() 882 do s = inb(STATPORT); in cmds() 921 do s = inb(STATPORT); in ioend() 942 do s = inb(STATPORT); in wmark() 957 do s = inb(STATPORT); in rwind() 972 do s = inb(STATPORT); 983 do s = inb(STATPORT); 991 *stp++ = inb(DATAPORT); /* read status byte */ 1016 if ((inb(STATPORT) & RESETMASK) == RESETVAL) in t_reset() 1051 do s = inb(STATPORT) & STAT; [all …]
|
H A D | isa.h | 18 unsigned char inb(), rtcin();
|
H A D | isa.c | 217 log(LOG_CRIT, "\nNMI port 61 %x, port 70 %x\n", inb(0x61), inb(0x70)); in isa_nmi()
|
H A D | fd.c | 222 while ((i = inb(fdc+fdsts) & (NE7_DIO|NE7_RQM)) != (NE7_DIO|NE7_RQM)) in in_fdc() 224 return inb(fdc+fddata); in in_fdc() 246 r = (inb(fdc+fdsts) & (NE7_DIO|NE7_RQM)); 272 if (inb(fdc+fdsts)& NE7_RQM) return 0; in check_fdc()
|
H A D | if_apx.c | 108 #define APX_RCSR(apx, csrname) inb(&(apx->apx_reg->csrname))
|
H A D | if_ec.c | 160 #define ECRD(p, e) inb(&(p->e))
|
/original-bsd/usr.bin/tcopy/ |
H A D | tcopy.c | 211 char *inb; local 213 inb = getspace(maxblk); 216 if ((inn = read(inp, inb, inmaxblk)) == -1) { 219 inn = read(inp, inb, inmaxblk); 249 if (bcmp(inb, outb, inn)) {
|
/original-bsd/old/refer/refer/ |
H A D | glue4.c | 19 char *inp, inb[500]; local 25 strcpy (inp=inb, in);
|
/original-bsd/sys/i386/i386/ |
H A D | mem.c | 113 tmp = inb(uio->uio_offset);
|
H A D | locore.s | 50 #define NOP inb $0x84, %al ; inb $0x84, %al 409 inb %dx,%al 427 inb $0x71,%al # Compaq SystemPro 855 inb $0x84,%al # check wristwatch 859 inb $0x84,%al # check wristwatch 866 inb $0x84,%al # check wristwatch 870 inb $0x84,%al # check wristwatch
|