fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / drivers / scsi / esp.h
index df6d41a..a98cda9 100644 (file)
@@ -8,8 +8,6 @@
 #ifndef _SPARC_ESP_H
 #define _SPARC_ESP_H
 
-#include <linux/config.h>
-
 /* For dvma controller register definitions. */
 #include <asm/dma.h>
 
@@ -75,10 +73,12 @@ struct esp_device {
   unsigned disconnect:1;
 };
 
+struct scsi_cmnd;
+
 /* We get one of these for each ESP probed. */
 struct esp {
-       unsigned long           eregs;          /* ESP controller registers */
-       unsigned long           dregs;          /* DMA controller registers */
+       void __iomem            *eregs;         /* ESP controller registers */
+       void __iomem            *dregs;         /* DMA controller registers */
        struct sbus_dma         *dma;           /* DMA controller sw state */
        struct Scsi_Host        *ehost;         /* Backpointer to SCSI Host */
        struct sbus_dev         *sdev;          /* Pointer to SBus entry */
@@ -181,9 +181,9 @@ struct esp {
        int                     bursts;         /* Burst sizes our DVMA supports */
 
        /* Our command queues, only one cmd lives in the current_SC queue. */
-       Scsi_Cmnd               *issue_SC;      /* Commands to be issued */
-       Scsi_Cmnd               *current_SC;    /* Who is currently working the bus */
-       Scsi_Cmnd               *disconnected_SC;/* Commands disconnected from the bus */
+       struct scsi_cmnd        *issue_SC;      /* Commands to be issued */
+       struct scsi_cmnd        *current_SC;    /* Who is currently working the bus */
+       struct scsi_cmnd        *disconnected_SC;/* Commands disconnected from the bus */
 
        /* Message goo */
        u8                      cur_msgout[16];
@@ -403,8 +403,4 @@ struct esp {
 #define ESP_MHZ_TO_CYCLE(mhertz)  ((1000000000) / ((mhertz) / 1000))
 #define ESP_TICK(ccf, cycle)  ((7682 * (ccf) * (cycle) / 1000))
 
-/* For our interrupt engine. */
-#define for_each_esp(esp) \
-        for((esp) = espchain; (esp); (esp) = (esp)->next)
-
 #endif /* !(_SPARC_ESP_H) */