]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/sym53c8xx.h
sunxi: Fix MAINTAINERS board sorting
[karo-tx-uboot.git] / include / sym53c8xx.h
index 821e1f85a4d3b91168399e37dbc24634c079020e..f992a8552372fb78a06fe634174058ba0db2d551 100644 (file)
@@ -2,28 +2,10 @@
  * (C) Copyright 2001
  * Denis Peter, MPL AG Switzerland
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- *
+ * SPDX-License-Identifier:    GPL-2.0+
  *
  * Most of these definitions are derived from
  * linux/drivers/scsi/sym53c8xx_defs.h
- *
  */
 
 #ifndef _SYM53C8XX_DEFS_H
@@ -33,7 +15,7 @@
 #define SCNTL0         0x00    /* full arb., ena parity, par->ATN  */
 
 #define SCNTL1         0x01    /* no reset                         */
-  #define   ISCON   0x10  /* connected to scsi                                         */
+  #define   ISCON   0x10  /* connected to scsi                                         */
   #define   CRST    0x08  /* force reset                      */
   #define   IARB    0x02  /* immediate arbitration            */
 
 
 #define CTEST3         0x1b
        #define   FLF     0x08  /* cmd: flush dma fifo              */
-       #define   CLF           0x04    /* cmd: clear dma fifo              */
+       #define   CLF           0x04    /* cmd: clear dma fifo              */
        #define   FM      0x02  /* mod: fetch pin mode              */
        #define   WRIE    0x01  /* mod: write and invalidate enable */
                                /* bits 4-7 rsvd for C1010          */
        #define   IRQM    0x08  /* mod: irq mode (1 = totem pole !) */
        #define   STD     0x04  /* cmd: start dma mode              */
        #define   IRQD    0x02  /* mod: irq disable                 */
-       #define   NOCOM   0x01  /* cmd: protect sfbr while reselect */
+       #define   NOCOM   0x01  /* cmd: protect sfbr while reselect */
                                /* bits 0-1 rsvd for C1010          */
 
 #define ADDER                  0x3c
 
 #define SIDL                   0x50    /* Lowlevel: latched from scsi data */
 #define STEST4         0x52
-       #define SMODE   0xc0    /* SCSI bus mode      (895/6 only) */
+       #define SMODE   0xc0    /* SCSI bus mode      (895/6 only) */
        #define SMODE_HVD 0x40  /* High Voltage Differential       */
        #define SMODE_SE  0x80  /* Single Ended                    */
        #define SMODE_LVD 0xc0  /* Low Voltage Differential        */
 #define SBDL                   0x58    /* Lowlevel: data from scsi data    */
 
 
-
-
 /*-----------------------------------------------------------
 **
 **     Utility macros for the script.
 #define        SCR_ATN         0x00000008
 
 
-
-
 /*-----------------------------------------------------------
 **
 **     Memory to memory move
 #define SCR_REG_OFS(ofs) ((((ofs) & 0x7f) << 16ul)) /* + ((ofs) & 0x80)) */
 
 #define SCR_SFBR_REG(reg,op,data) \
-        (0x68000000 | (SCR_REG_OFS(REG(reg))) | (op) | (((data)&0xff)<<8ul))
+       (0x68000000 | (SCR_REG_OFS(REG(reg))) | (op) | (((data)&0xff)<<8ul))
 
 #define SCR_REG_SFBR(reg,op,data) \
-        (0x70000000 | (SCR_REG_OFS(REG(reg))) | (op) | (((data)&0xff)<<8ul))
+       (0x70000000 | (SCR_REG_OFS(REG(reg))) | (op) | (((data)&0xff)<<8ul))
 
 #define SCR_REG_REG(reg,op,data) \
-        (0x78000000 | (SCR_REG_OFS(REG(reg))) | (op) | (((data)&0xff)<<8ul))
+       (0x78000000 | (SCR_REG_OFS(REG(reg))) | (op) | (((data)&0xff)<<8ul))
 
 
 #define      SCR_LOAD   0x00000000
 **     LOAD_REG (reg, data)      reg  = <data>
 **     << 0 >>
 **
-**     LOAD_SFBR(data)           SFBR = <data>
+**     LOAD_SFBR(data)           SFBR = <data>
 **     << 0 >>
 **
 **-----------------------------------------------------------
        SCR_REG_REG(reg,SCR_LOAD,data)
 
 #define SCR_LOAD_SFBR(data) \
-        (SCR_REG_SFBR (gpreg, SCR_LOAD, data))
+       (SCR_REG_SFBR (gpreg, SCR_LOAD, data))
 
 /*-----------------------------------------------------------
 **
 #define SCR_DSA_REL2   0x10000000
 
 #define SCR_LOAD_R(reg, how, n) \
-        (0xe1000000 | how | (SCR_REG_OFS2(REG(reg))) | (n))
+       (0xe1000000 | how | (SCR_REG_OFS2(REG(reg))) | (n))
 
 #define SCR_STORE_R(reg, how, n) \
-        (0xe0000000 | how | (SCR_REG_OFS2(REG(reg))) | (n))
+       (0xe0000000 | how | (SCR_REG_OFS2(REG(reg))) | (n))
 
 #define SCR_LOAD_ABS(reg, n)   SCR_LOAD_R(reg, SCR_NO_FLUSH2, n)
 #define SCR_LOAD_REL(reg, n)   SCR_LOAD_R(reg, SCR_NO_FLUSH2|SCR_DSA_REL2, n)
 #define CARRYSET       (0x00200000)
 
 
-
 #define SIR_COMPLETE                                    0x10000000
 /* script errors */
 #define SIR_SEL_ATN_NO_MSG_OUT 0x00000001
 
 #define SCSI_IDENTIFY                                  0xC0
 
-#ifndef TRUE
-#define TRUE 1
-#endif
-#ifndef FALSE
-#define FALSE 0
-#endif
-
 #endif