Commit f0567a75 authored by James Bottomley's avatar James Bottomley

SCSI: Fix tmscsim driver

From: 	Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked by: Kurt Garloff <kurt@garloff.de
parent 94484ab0
...@@ -1272,7 +1272,7 @@ config SCSI_DC395x ...@@ -1272,7 +1272,7 @@ config SCSI_DC395x
config SCSI_DC390T config SCSI_DC390T
tristate "Tekram DC390(T) and Am53/79C974 SCSI support" tristate "Tekram DC390(T) and Am53/79C974 SCSI support"
depends on PCI && SCSI && BROKEN depends on PCI && SCSI
---help--- ---help---
This driver supports PCI SCSI host adapters based on the Am53C974A This driver supports PCI SCSI host adapters based on the Am53C974A
chip, e.g. Tekram DC390(T), DawiControl 2974 and some onboard chip, e.g. Tekram DC390(T), DawiControl 2974 and some onboard
......
...@@ -36,14 +36,10 @@ ...@@ -36,14 +36,10 @@
extern int DC390_detect(Scsi_Host_Template *psht); extern int DC390_detect(Scsi_Host_Template *psht);
extern int DC390_queue_command(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)); extern int DC390_queue_command(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *));
extern int DC390_abort(Scsi_Cmnd *cmd); extern int DC390_abort(Scsi_Cmnd *cmd);
extern int DC390_reset(Scsi_Cmnd *cmd, unsigned int resetFlags); extern int DC390_reset(Scsi_Cmnd *cmd);
extern int DC390_bios_param(struct scsi_device *sdev, struct block_device *dev, extern int DC390_bios_param(struct scsi_device *sdev, struct block_device *dev,
sector_t capacity, int geom[]); sector_t capacity, int geom[]);
#ifdef MODULE
static int DC390_release(struct Scsi_Host *); static int DC390_release(struct Scsi_Host *);
#else
# define DC390_release NULL
#endif
#endif /* DC390_H */ #endif /* DC390_H */
This diff is collapsed.
This diff is collapsed.
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#define END_SCAN 2 #define END_SCAN 2
#define pci_dma_lo32(a) (a & 0xffffffff)
typedef u8 UCHAR; /* 8 bits */ typedef u8 UCHAR; /* 8 bits */
typedef u16 USHORT; /* 16 bits */ typedef u16 USHORT; /* 16 bits */
typedef u32 UINT; /* 32 bits */ typedef u32 UINT; /* 32 bits */
...@@ -213,8 +215,7 @@ PSRB pTmpSRB; ...@@ -213,8 +215,7 @@ PSRB pTmpSRB;
/* 0x2c: */ /* 0x2c: */
ULONG QueryCnt; ULONG QueryCnt;
PSCSICMD pQueryHead; struct list_head cmdq;
PSCSICMD pQueryTail;
/* 0x38: */ /* 0x38: */
UCHAR msgin123[4]; UCHAR msgin123[4];
...@@ -401,6 +402,20 @@ typedef struct _ACB DC390_ACB, *PACB; ...@@ -401,6 +402,20 @@ typedef struct _ACB DC390_ACB, *PACB;
/*;----SCSI MSG BYTE*/ /* see scsi/scsi.h */ /* One is missing ! */ /*;----SCSI MSG BYTE*/ /* see scsi/scsi.h */ /* One is missing ! */
#define ABORT_TAG 0x0d #define ABORT_TAG 0x0d
/*
* SISC query queue
*/
typedef struct {
struct list_head list;
dma_addr_t saved_dma_handle;
} dc390_cmd_scp_t;
struct scsi_cmnd_list
{
char dummy[offsetof(struct scsi_cmnd, SCp)];
dc390_cmd_scp_t scp;
};
/* /*
** Inquiry Data format ** Inquiry Data format
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment