aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic79xx.h
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2006-01-12 06:05:46 -0500
committerJames Bottomley <jejb@mulgrave.(none)>2006-01-12 13:00:34 -0500
commit66a0683e4620f087e41e79d4d2be6c5a06bb206b (patch)
tree09f5b125da1bda61a582212f6ca1b2265f5b34f5 /drivers/scsi/aic7xxx/aic79xx.h
parent5e46631b04382ef14255467288052f29cb77daeb (diff)
[SCSI] aic79xx: Use struct map_node
Use struct map_node instead of separate variables. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic79xx.h')
-rw-r--r--drivers/scsi/aic7xxx/aic79xx.h27
1 files changed, 17 insertions, 10 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx.h b/drivers/scsi/aic7xxx/aic79xx.h
index 653fb0b42aea..ac3d07a2a286 100644
--- a/drivers/scsi/aic7xxx/aic79xx.h
+++ b/drivers/scsi/aic7xxx/aic79xx.h
@@ -37,7 +37,7 @@
37 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 37 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38 * POSSIBILITY OF SUCH DAMAGES. 38 * POSSIBILITY OF SUCH DAMAGES.
39 * 39 *
40 * $Id: //depot/aic7xxx/aic7xxx/aic79xx.h#95 $ 40 * $Id: //depot/aic7xxx/aic7xxx/aic79xx.h#108 $
41 * 41 *
42 * $FreeBSD$ 42 * $FreeBSD$
43 */ 43 */
@@ -1062,6 +1062,7 @@ struct ahd_softc {
1062 struct scb_data scb_data; 1062 struct scb_data scb_data;
1063 1063
1064 struct hardware_scb *next_queued_hscb; 1064 struct hardware_scb *next_queued_hscb;
1065 struct map_node *next_queued_hscb_map;
1065 1066
1066 /* 1067 /*
1067 * SCBs that have been sent to the controller 1068 * SCBs that have been sent to the controller
@@ -1140,10 +1141,6 @@ struct ahd_softc {
1140 ahd_flag flags; 1141 ahd_flag flags;
1141 struct seeprom_config *seep_config; 1142 struct seeprom_config *seep_config;
1142 1143
1143 /* Values to store in the SEQCTL register for pause and unpause */
1144 uint8_t unpause;
1145 uint8_t pause;
1146
1147 /* Command Queues */ 1144 /* Command Queues */
1148 uint16_t qoutfifonext; 1145 uint16_t qoutfifonext;
1149 uint16_t qoutfifonext_valid_tag; 1146 uint16_t qoutfifonext_valid_tag;
@@ -1151,6 +1148,17 @@ struct ahd_softc {
1151 uint16_t qinfifo[AHD_SCB_MAX]; 1148 uint16_t qinfifo[AHD_SCB_MAX];
1152 uint16_t *qoutfifo; 1149 uint16_t *qoutfifo;
1153 1150
1151 /*
1152 * Our qfreeze count. The sequencer compares
1153 * this value with its own counter to determine
1154 * whether to allow selections to occur.
1155 */
1156 uint16_t qfreeze_cnt;
1157
1158 /* Values to store in the SEQCTL register for pause and unpause */
1159 uint8_t unpause;
1160 uint8_t pause;
1161
1154 /* Critical Section Data */ 1162 /* Critical Section Data */
1155 struct cs *critical_sections; 1163 struct cs *critical_sections;
1156 u_int num_critical_sections; 1164 u_int num_critical_sections;
@@ -1197,8 +1205,7 @@ struct ahd_softc {
1197 */ 1205 */
1198 bus_dma_tag_t parent_dmat; 1206 bus_dma_tag_t parent_dmat;
1199 bus_dma_tag_t shared_data_dmat; 1207 bus_dma_tag_t shared_data_dmat;
1200 bus_dmamap_t shared_data_dmamap; 1208 struct map_node shared_data_map;
1201 dma_addr_t shared_data_busaddr;
1202 1209
1203 /* Information saved through suspend/resume cycles */ 1210 /* Information saved through suspend/resume cycles */
1204 struct ahd_suspend_state suspend_state; 1211 struct ahd_suspend_state suspend_state;
@@ -1296,9 +1303,9 @@ struct ahd_devinfo {
1296}; 1303};
1297 1304
1298/****************************** PCI Structures ********************************/ 1305/****************************** PCI Structures ********************************/
1299#define AHD_PCI_IOADDR0 PCIR_MAPS /* I/O BAR*/ 1306#define AHD_PCI_IOADDR0 PCIR_BAR(0) /* I/O BAR*/
1300#define AHD_PCI_MEMADDR (PCIR_MAPS + 4) /* Memory BAR */ 1307#define AHD_PCI_MEMADDR PCIR_BAR(1) /* Memory BAR */
1301#define AHD_PCI_IOADDR1 (PCIR_MAPS + 12)/* Second I/O BAR */ 1308#define AHD_PCI_IOADDR1 PCIR_BAR(3) /* Second I/O BAR */
1302 1309
1303typedef int (ahd_device_setup_t)(struct ahd_softc *); 1310typedef int (ahd_device_setup_t)(struct ahd_softc *);
1304 1311