Lines Matching +full:4 +full:- +full:pole
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 ** Device driver for the PCI-SCSI NCR538XX controller family.
6 ** Copyright (C) 1998-2001 Gerard Roudier <groudier@free.fr>
9 **-----------------------------------------------------------------------------
23 ** Stefan Esser <se@mi.Uni-Koeln.de>
62 /* ---------------------------------------------------------------------
65 ** ---------------------------------------------------------------------
143 * Disallow disconnections at boot-up
179 * Settle time after reset at boot-up
184 ** Bridge quirks work-around option defaulted to 1.
191 ** Work-around common bridge misbehaviour.
193 ** - Do not flush posted writes in the opposite
195 ** - May reorder DMA writes to memory.
209 ** - Edge triggered instead of level sensitive.
210 ** - No interrupt line connected.
211 ** - IRQ number misconfigured.
281 #else /* Other big-endian */
338 * If the CPU and the NCR use same endian-ness addressing,
365 * If the CPU and the NCR use same endian-ness addressing,
370 * assumed to perform little-endian to big-endian byte
379 #define INB_OFF(o) readb_raw((char __iomem *)np->reg + ncr_offb(o))
380 #define OUTB_OFF(o, val) writeb_raw((val), (char __iomem *)np->reg + ncr_offb(o))
384 #define INW_OFF(o) readw_l2b((char __iomem *)np->reg + ncr_offw(o))
385 #define INL_OFF(o) readl_l2b((char __iomem *)np->reg + (o))
387 #define OUTW_OFF(o, val) writew_b2l((val), (char __iomem *)np->reg + ncr_offw(o))
388 #define OUTL_OFF(o, val) writel_b2l((val), (char __iomem *)np->reg + (o))
392 #define INW_OFF(o) readw_b2l((char __iomem *)np->reg + ncr_offw(o))
393 #define INL_OFF(o) readl_b2l((char __iomem *)np->reg + (o))
395 #define OUTW_OFF(o, val) writew_l2b((val), (char __iomem *)np->reg + ncr_offw(o))
396 #define OUTL_OFF(o, val) writel_l2b((val), (char __iomem *)np->reg + (o))
402 #define INW_OFF(o) (readb((char __iomem *)np->reg + ncr_offw(o)) << 8 | readb((char __iomem *)np->…
404 #define INW_OFF(o) readw_raw((char __iomem *)np->reg + ncr_offw(o))
406 #define INL_OFF(o) readl_raw((char __iomem *)np->reg + (o))
410 … writeb((char)((val) >> 8), (char __iomem *)np->reg + ncr_offw(o)); writeb((char)(val), (char __io…
412 #define OUTW_OFF(o, val) writew_raw((val), (char __iomem *)np->reg + ncr_offw(o))
414 #define OUTL_OFF(o, val) writel_raw((val), (char __iomem *)np->reg + (o))
460 unsigned char burst_max; /* log-base-2 of max burst */
467 #define FE_DBLR (1<<4) /* Clock doubler present */
480 #define FE_64BIT (1<<17) /* Have a 64-bit PCI interface */
503 ** It can be overridden at boot-up by the boot command line.
598 /*-----------------------------------------------------------------
602 **-----------------------------------------------------------------
606 /*00*/ u8 nc_scntl0; /* full arb., ena parity, par->ATN */
622 /* bits 0-2, 7 rsvd for C1010 */
629 /* bits 6-7 rsvd for C1010 */
631 /*06*/ u8 nc_sdid; /* ### Destination-ID */
633 /*07*/ u8 nc_gpreg; /* ??? IO-Pins */
638 #define CREQ 0x80 /* r/w: SCSI-REQ */
639 #define CACK 0x40 /* r/w: SCSI-ACK */
640 #define CBSY 0x20 /* r/w: SCSI-BSY */
641 #define CSEL 0x10 /* r/w: SCSI-SEL */
642 #define CATN 0x08 /* r/w: SCSI-ATN */
643 #define CMSG 0x04 /* r/w: SCSI-MSG */
644 #define CC_D 0x02 /* r/w: SCSI-C_D */
645 #define CI_O 0x01 /* r/w: SCSI-I_O */
680 /*10*/ u8 nc_dsa; /* --> Base page */
685 /*14*/ u8 nc_istat; /* --> Main Command and status */
692 #define SIP 0x02 /* sta: scsi-interrupt */
709 /* bits 0-2,7 rsvd for C1010 */
716 /* bits 4-7 rsvd for C1010 */
728 /* bits 0-1, 3-7 rsvd for C1010 */
733 /*2c*/ u32 nc_dsp; /* --> Script Pointer */
734 /*30*/ u32 nc_dsps; /* --> Script pointer save/opcode#2 */
751 /*3b*/ u8 nc_dcntl; /* --> Script execution control */
753 #define PFF 0x40 /* cmd: pre-fetch flush */
754 #define PFEN 0x20 /* mod: pre-fetch enable */
755 #define EA 0x20 /* mod: 720 enable-ack */
757 #define IRQM 0x08 /* mod: irq mode (1 = totem pole !) */
761 /* bits 0-1 rsvd for C1010 */
765 /*40*/ u16 nc_sien; /* -->: interrupt enable */
766 /*42*/ u16 nc_sist; /* <--: interrupt status */
786 /*4a*/ u16 nc_respid; /* sta: Reselect-IDs */
788 /*4c*/ u8 nc_stest0;
790 /*4d*/ u8 nc_stest1;
796 /*4e*/ u8 nc_stest2;
801 /*4f*/ u8 nc_stest3;
813 /* bits 0-5 rsvd for C1010 */
829 #define XTIMOD 0x04 /* 64-bit Table Ind. Indexing Mode */
830 #define EXTIBMV 0x02 /* Enable 64-bit Table Ind. BMOV */
831 #define EXDBMV 0x01 /* Enable 64-bit Direct BMOV */
841 /*60*/ u8 nc_scrx[64]; /* Working register C-R */
891 /*-----------------------------------------------------------
895 **-----------------------------------------------------------
903 /*-----------------------------------------------------------
909 **-----------------------------------------------------------
924 /*-----------------------------------------------------------
928 **-----------------------------------------------------------
939 **-----------------------------------------------------------
957 /*-----------------------------------------------------------
961 **-----------------------------------------------------------
969 **-----------------------------------------------------------
997 /*-----------------------------------------------------------
1001 **-----------------------------------------------------------
1009 **-----------------------------------------------------------
1015 /*-----------------------------------------------------------
1019 **-----------------------------------------------------------
1025 **-----------------------------------------------------------
1039 /*-----------------------------------------------------------
1043 **-----------------------------------------------------------
1054 **-----------------------------------------------------------
1062 /*-----------------------------------------------------------
1066 **-----------------------------------------------------------
1077 **-----------------------------------------------------------
1083 **-----------------------------------------------------------
1109 /*-----------------------------------------------------------
1123 **-----------------------------------------------------------
1138 /*-----------------------------------------------------------
1145 **-----------------------------------------------------------
1153 **-----------------------------------------------------------
1177 /*-----------------------------------------------------------
1181 **-----------------------------------------------------------
1210 **-----------------------------------------------------------
1234 /*-----------------------------------------------------------
1238 **-----------------------------------------------------------
1253 (data)->addr = cpu_to_scr(badd); \
1254 (data)->size = cpu_to_scr(len); \