aic7xxx.reg (28169) | aic7xxx.reg (29897) |
---|---|
1/* 2 * Aic7xxx register and scratch ram definitions. 3 * 4 * Copyright (c) 1994-1997 Justin Gibbs. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 21 unchanged lines hidden (view full) --- 30 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * | 1/* 2 * Aic7xxx register and scratch ram definitions. 3 * 4 * Copyright (c) 1994-1997 Justin Gibbs. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 21 unchanged lines hidden (view full) --- 30 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * |
38 * $Id: aic7xxx.reg,v 1.4 1997/06/27 19:38:39 gibbs Exp $ | 38 * $Id: aic7xxx.reg,v 1.5 1997/08/13 17:02:24 gibbs Exp $ |
39 */ 40 41/* 42 * This file is processed by the aic7xxx_asm utility for use in assembling 43 * firmware for the aic7xxx family of SCSI host adapters as well as to generate 44 * a C header file for use in the kernel portion of the Aic7xxx driver. 45 * 46 * All page numbers refer to the Adaptec AIC-7770 Data Book available from --- 904 unchanged lines hidden (view full) --- 951 bit SDMAEN 0x10 952 bit SDMAENACK 0x10 953 bit HDMAEN 0x08 954 bit HDMAENACK 0x08 955 bit DIRECTION 0x04 956 bit FIFOFLUSH 0x02 957 bit FIFORESET 0x01 958 } | 39 */ 40 41/* 42 * This file is processed by the aic7xxx_asm utility for use in assembling 43 * firmware for the aic7xxx family of SCSI host adapters as well as to generate 44 * a C header file for use in the kernel portion of the Aic7xxx driver. 45 * 46 * All page numbers refer to the Adaptec AIC-7770 Data Book available from --- 904 unchanged lines hidden (view full) --- 951 bit SDMAEN 0x10 952 bit SDMAENACK 0x10 953 bit HDMAEN 0x08 954 bit HDMAENACK 0x08 955 bit DIRECTION 0x04 956 bit FIFOFLUSH 0x02 957 bit FIFORESET 0x01 958 } |
959 /* 960 * Number of SCBs supported by 961 * this card. 962 */ 963 SCBCOUNT { 964 size 1 965 } 966 /* 967 * Two's complement of SCBCOUNT 968 */ 969 COMP_SCBCOUNT { 970 size 1 971 } 972 /* 973 * Mask of bits to test against 974 * when looking at the Queue Count 975 * registers. Works around a bug 976 * on aic7850 chips. 977 */ 978 QCNTMASK { 979 size 1 980 } | |
981 SEQ_FLAGS { 982 size 1 983 bit RESELECTED 0x80 984 bit IDENTIFY_SEEN 0x40 985 bit TAGGED_SCB 0x20 986 bit DPHASE 0x10 987 bit PAGESCBS 0x04 988 bit WIDE_BUS 0x02 --- 23 unchanged lines hidden (view full) --- 1012 } 1013 SAVED_LINKPTR { 1014 size 1 1015 } 1016 SAVED_SCBPTR { 1017 size 1 1018 } 1019 /* | 959 SEQ_FLAGS { 960 size 1 961 bit RESELECTED 0x80 962 bit IDENTIFY_SEEN 0x40 963 bit TAGGED_SCB 0x20 964 bit DPHASE 0x10 965 bit PAGESCBS 0x04 966 bit WIDE_BUS 0x02 --- 23 unchanged lines hidden (view full) --- 990 } 991 SAVED_LINKPTR { 992 size 1 993 } 994 SAVED_SCBPTR { 995 size 1 996 } 997 /* |
1020 * The sequencer will stick the frist byte of any rejected message here 1021 * so we can see what is getting thrown away. 1022 */ 1023 REJBYTE { 1024 size 1 1025 } 1026 /* | |
1027 * The last bus phase as seen by the sequencer. 1028 */ 1029 LASTPHASE { 1030 size 1 1031 bit CDI 0x80 1032 bit IOI 0x40 1033 bit MSGI 0x20 1034 mask PHASE_MASK CDI|IOI|MSGI --- 47 unchanged lines hidden (view full) --- 1082 /* 1083 * Running count of commands placed in 1084 * the QOUTFIFO. This is cleared by the 1085 * kernel driver every FIFODEPTH commands. 1086 */ 1087 CMDOUTCNT { 1088 size 1 1089 } | 998 * The last bus phase as seen by the sequencer. 999 */ 1000 LASTPHASE { 1001 size 1 1002 bit CDI 0x80 1003 bit IOI 0x40 1004 bit MSGI 0x20 1005 mask PHASE_MASK CDI|IOI|MSGI --- 47 unchanged lines hidden (view full) --- 1053 /* 1054 * Running count of commands placed in 1055 * the QOUTFIFO. This is cleared by the 1056 * kernel driver every FIFODEPTH commands. 1057 */ 1058 CMDOUTCNT { 1059 size 1 1060 } |
1090 /* 1091 * Maximum number of entries allowed in 1092 * the QOUT/INFIFO. 1093 */ 1094 FIFODEPTH { 1095 size 1 1096 } | |
1097 ARG_1 { 1098 size 1 1099 mask SEND_MSG 0x80 1100 mask SEND_SENSE 0x40 1101 mask SEND_REJ 0x20 1102 alias RETURN_1 1103 } 1104 /* --- 23 unchanged lines hidden (view full) --- 1128 1129 1130/* WDTR Message values */ 1131const BUS_8_BIT 0x00 1132const BUS_16_BIT 0x01 1133const BUS_32_BIT 0x02 1134const MAX_OFFSET_8BIT 0x0f 1135const MAX_OFFSET_16BIT 0x08 | 1061 ARG_1 { 1062 size 1 1063 mask SEND_MSG 0x80 1064 mask SEND_SENSE 0x40 1065 mask SEND_REJ 0x20 1066 alias RETURN_1 1067 } 1068 /* --- 23 unchanged lines hidden (view full) --- 1092 1093 1094/* WDTR Message values */ 1095const BUS_8_BIT 0x00 1096const BUS_16_BIT 0x01 1097const BUS_32_BIT 0x02 1098const MAX_OFFSET_8BIT 0x0f 1099const MAX_OFFSET_16BIT 0x08 |
1100 1101/* 1102 * Downloaded (kernel inserted) constants 1103 */ 1104const SCBCOUNT download /* The number of SCBs on this card */ 1105const COMP_SCBCOUNT download /* Two's complement of max SCBID */ 1106/* 1107 * The maximum number of entries allowed in the QIN/OUTFIFO. 1108 */ 1109const FIFODEPTH download /* Two's complement of SCBCOUNT */ 1110/* 1111 * Mask of bits to test against when looking at the Queue Count 1112 * registers. Works around a bug on aic7850 chips. 1113 */ 1114const QCNTMASK download |
|