aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/gdth.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/gdth.h')
-rw-r--r--drivers/scsi/gdth.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/drivers/scsi/gdth.h b/drivers/scsi/gdth.h
index 37423300592e..1434c6b0297c 100644
--- a/drivers/scsi/gdth.h
+++ b/drivers/scsi/gdth.h
@@ -13,7 +13,6 @@
13 * $Id: gdth.h,v 1.58 2006/01/11 16:14:09 achim Exp $ 13 * $Id: gdth.h,v 1.58 2006/01/11 16:14:09 achim Exp $
14 */ 14 */
15 15
16#include <linux/version.h>
17#include <linux/types.h> 16#include <linux/types.h>
18 17
19#ifndef TRUE 18#ifndef TRUE
@@ -304,15 +303,8 @@
304#define MAILBOXREG 0x0c90 /* mailbox reg. (16 bytes) */ 303#define MAILBOXREG 0x0c90 /* mailbox reg. (16 bytes) */
305#define EISAREG 0x0cc0 /* EISA configuration */ 304#define EISAREG 0x0cc0 /* EISA configuration */
306 305
307/* DMA memory mappings */
308#define GDTH_MAP_NONE 0
309#define GDTH_MAP_SINGLE 1
310#define GDTH_MAP_SG 2
311#define GDTH_MAP_IOCTL 3
312
313/* other defines */ 306/* other defines */
314#define LINUX_OS 8 /* used for cache optim. */ 307#define LINUX_OS 8 /* used for cache optim. */
315#define SCATTER_GATHER 1 /* s/g feature */
316#define SECS32 0x1f /* round capacity */ 308#define SECS32 0x1f /* round capacity */
317#define BIOS_ID_OFFS 0x10 /* offset contr-ID in ISABIOS */ 309#define BIOS_ID_OFFS 0x10 /* offset contr-ID in ISABIOS */
318#define LOCALBOARD 0 /* board node always 0 */ 310#define LOCALBOARD 0 /* board node always 0 */
@@ -854,6 +846,9 @@ typedef struct {
854 846
855/* controller information structure */ 847/* controller information structure */
856typedef struct { 848typedef struct {
849 struct Scsi_Host *shost;
850 struct list_head list;
851 ushort hanum;
857 ushort oem_id; /* OEM */ 852 ushort oem_id; /* OEM */
858 ushort type; /* controller class */ 853 ushort type; /* controller class */
859 ulong32 stype; /* subtype (PCI: device ID) */ 854 ulong32 stype; /* subtype (PCI: device ID) */
@@ -865,6 +860,7 @@ typedef struct {
865 void __iomem *brd; /* DPRAM address */ 860 void __iomem *brd; /* DPRAM address */
866 ulong32 brd_phys; /* slot number/BIOS address */ 861 ulong32 brd_phys; /* slot number/BIOS address */
867 gdt6c_plx_regs *plx; /* PLX regs (new PCI contr.) */ 862 gdt6c_plx_regs *plx; /* PLX regs (new PCI contr.) */
863 gdth_cmd_str cmdext;
868 gdth_cmd_str *pccb; /* address command structure */ 864 gdth_cmd_str *pccb; /* address command structure */
869 ulong32 ccb_phys; /* phys. address */ 865 ulong32 ccb_phys; /* phys. address */
870#ifdef INT_COAL 866#ifdef INT_COAL
@@ -916,6 +912,19 @@ typedef struct {
916 Scsi_Cmnd *cmnd; /* pending request */ 912 Scsi_Cmnd *cmnd; /* pending request */
917 ushort service; /* service */ 913 ushort service; /* service */
918 } cmd_tab[GDTH_MAXCMDS]; /* table of pend. requests */ 914 } cmd_tab[GDTH_MAXCMDS]; /* table of pend. requests */
915 struct gdth_cmndinfo { /* per-command private info */
916 int index;
917 int internal_command; /* don't call scsi_done */
918 dma_addr_t sense_paddr; /* sense dma-addr */
919 unchar priority;
920 int timeout;
921 volatile int wait_for_completion;
922 ushort status;
923 ulong32 info;
924 enum dma_data_direction dma_dir;
925 int phase; /* ???? */
926 int OpCode;
927 } cmndinfo[GDTH_MAXCMDS]; /* index==0 is free */
919 unchar bus_cnt; /* SCSI bus count */ 928 unchar bus_cnt; /* SCSI bus count */
920 unchar tid_cnt; /* Target ID count */ 929 unchar tid_cnt; /* Target ID count */
921 unchar bus_id[MAXBUS]; /* IOP IDs */ 930 unchar bus_id[MAXBUS]; /* IOP IDs */
@@ -938,19 +947,10 @@ typedef struct {
938 struct scsi_device *sdev; 947 struct scsi_device *sdev;
939} gdth_ha_str; 948} gdth_ha_str;
940 949
941/* structure for scsi_register(), SCSI bus != 0 */ 950static inline struct gdth_cmndinfo *gdth_cmnd_priv(struct scsi_cmnd* cmd)
942typedef struct { 951{
943 ushort hanum; 952 return (struct gdth_cmndinfo *)cmd->host_scribble;
944 ushort busnum; 953}
945} gdth_num_str;
946
947/* structure for scsi_register() */
948typedef struct {
949 gdth_num_str numext; /* must be the first element */
950 gdth_ha_str haext;
951 gdth_cmd_str cmdext;
952} gdth_ext_str;
953
954 954
955/* INQUIRY data format */ 955/* INQUIRY data format */
956typedef struct { 956typedef struct {