Lines Matching refs:OUTB

281 #define	OUTB(r, val) bus_space_write_1(np->bst, np->bsh, \
316 #define OUTONB(r, m) OUTB(r, INB(r) | (m))
317 #define OUTOFFB(r, m) OUTB(r, INB(r) & ~(m))
3388 ** Now the INB INW INL OUTB OUTW OUTL macros
3737 OUTB (nc_istat, SRST);
3739 OUTB (nc_istat, 0 );
4165 OUTB (nc_istat, SIGP);
4348 OUTB (nc_scntl1, CRST);
4713 OUTB (nc_istat, SRST);
4715 OUTB (nc_istat, 0);
4748 OUTB (nc_istat, 0x00 ); /* Remove Reset, abort ... */
4749 OUTB (nc_scntl0, 0xca ); /* full arb., ena parity, par->ATN */
4750 OUTB (nc_scntl1, 0x00 ); /* odd parity, and remove CRST!! */
4752 OUTB (nc_scid , RRE|np->myaddr);/* host adapter SCSI address */
4754 OUTB (nc_istat , SIGP ); /* Signal Process */
4755 OUTB (nc_dmode , np->rv_dmode); /* XXX modify burstlen ??? */
4756 OUTB (nc_dcntl , np->rv_dcntl);
4757 OUTB (nc_ctest3, np->rv_ctest3);
4758 OUTB (nc_ctest5, np->rv_ctest5);
4759 OUTB (nc_ctest4, np->rv_ctest4);/* enable master parity checking */
4760 OUTB (nc_stest2, np->rv_stest2|EXT); /* Extended Sreq/Sack filtering */
4761 OUTB (nc_stest3, TE ); /* TolerANT enable */
4762 OUTB (nc_stime0, 0x0b ); /* HTH = disabled, STO = 0.1 sec. */
4798 OUTB (nc_dien , MDPE|BF|ABRT|SSI|SIR|IID);
4973 OUTB (nc_sxfer, sxfer);
4975 OUTB (nc_scntl3, scntl3);
5052 OUTB (nc_sxfer, sxfer);
5054 OUTB (nc_scntl3, scntl3);
5121 OUTB (nc_istat, SIGP);
5285 OUTB (nc_istat, INTF);
5415 OUTB (nc_stest3, TE|CSF); /* clear scsi fifo */
5416 OUTB (nc_ctest3, np->rv_ctest3 | CLF);
5427 OUTB (nc_scntl1, CRST);
5429 OUTB (nc_scntl1, 0x00);
5430 OUTB (nc_scr0, HS_FAIL);
5443 OUTB (nc_scr0, HS_UNEXPECTED);
5465 OUTB (nc_dcntl, np->rv_dcntl | STD);
5490 OUTB (nc_dcntl, np->rv_dcntl | STD);
5504 OUTB (nc_ctest3, np->rv_ctest3 | CLF);
5538 OUTB (nc_istat, SRST);
5670 OUTB (nc_ctest3, np->rv_ctest3 | CLF); /* clear dma fifo */
5671 OUTB (nc_stest3, TE|CSF); /* clear scsi fifo */
5773 OUTB (nc_dcntl, np->rv_dcntl | STD);
6017 OUTB (HS_PRT, HS_BUSY);
6114 OUTB (HS_PRT, HS_BUSY);
6203 OUTB (HS_PRT, HS_BUSY);
6383 OUTB (nc_dcntl, np->rv_dcntl | STD);
6777 OUTB (nc_istat, SRST);
6779 OUTB (nc_istat, 0 );
6911 OUTB(nc_scntl3, scntl3);
6918 OUTB(nc_stest1, DBLEN); /* Enable clock multiplier */
6927 OUTB(nc_stest3, HSC); /* Halt the scsi clock */
6928 OUTB(nc_scntl3, scntl3);
6929 OUTB(nc_stest1, (DBLEN|DBLSEL));/* Select clock multiplier */
6930 OUTB(nc_stest3, 0x00); /* Restart scsi clock */
6955 OUTB (nc_stest1, 0); /* make sure clock doubler is OFF */
6958 OUTB (nc_dien , 0); /* mask all dma interrupts */
6960 OUTB (nc_scntl3, 4); /* set pre-scaler to divide by 3 */
6961 OUTB (nc_stime1, 0); /* disable general purpose timer */
6962 OUTB (nc_stime1, gen); /* set to nominal delay of (1<<gen) * 125us */
6965 OUTB (nc_stime1, 0); /* disable general purpose timer */
6966 OUTB (nc_scntl3, 0);
6972 OUTB (nc_scntl3, 0);
7056 OUTB (nc_gpreg, val);
7058 OUTB (nc_gpreg, val | 0x04);
7060 OUTB (nc_gpreg, val);
7067 OUTB (nc_gpreg, 0x10);
7069 OUTB (nc_gpreg, 0x14);
7081 OUTB (nc_gpreg, 0x10);
7095 OUTB (nc_gpreg, 0x00);