diff options
| author | David Jeffery <david_jeffery@adaptec.com> | 2003-01-03 08:10:32 -0600 |
|---|---|---|
| committer | James Bottomley <jejb@raven.il.steeleye.com> | 2003-01-03 08:10:32 -0600 |
| commit | 6de983fac23061ded7e2bf3b5c64f643aea3bbca (patch) | |
| tree | 388fdd969497f5e7735bdfaa75e58a8bfb4e4759 /drivers/scsi/ips.h | |
| parent | 8f0678e695ad32a988f98b418d299008bc627b8c (diff) | |
ips driver 3/3: code cleanup
This patch does 3 small cleanups.
It moves some of the init code into a new helper function.
It simplifies the S/G path by using the scsi_to_pci_dma_dir()
macro directly instead of the more complex IPS_DMA_DIR() macro.
It deletes unused defines and structs from ips.h.
Diffstat (limited to 'drivers/scsi/ips.h')
| -rw-r--r-- | drivers/scsi/ips.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/drivers/scsi/ips.h b/drivers/scsi/ips.h index bc64400cc689..2735b6150e96 100644 --- a/drivers/scsi/ips.h +++ b/drivers/scsi/ips.h @@ -350,27 +350,8 @@ #define IPS_SCSI_MP3_AllocateSurface 0x08 /* - * Configuration Structure Flags - */ - #define IPS_CFG_USEROPT_UPDATECOUNT(cfg) (((cfg)->UserOpt & 0xffff000) >> 16) - #define IPS_CFG_USEROPT_CONCURSTART(cfg) (((cfg)->UserOpt & 0xf000) >> 12) - #define IPS_CFG_USEROPT_STARTUPDELAY(cfg) (((cfg)->UserOpt & 0xf00) >> 8) - #define IPS_CFG_USEROPT_REARRANGE(cfg) ((cfg)->UserOpt & 0x80) - #define IPS_CFG_USEROPT_CDBOOT(cfg) ((cfg)->UserOpt & 0x40) - #define IPS_CFG_USEROPT_CLUSTER(cfg) ((cfg)->UserOpt & 0x20) - - /* - * Host adapter Flags (bit numbers) - */ - #define IPS_IN_INTR 0 - #define IPS_IN_ABORT 1 - #define IPS_IN_RESET 2 - - /* * SCB Flags */ - #define IPS_SCB_ACTIVE 0x00001 - #define IPS_SCB_WAITING 0x00002 #define IPS_SCB_MAP_SG 0x00008 #define IPS_SCB_MAP_SINGLE 0X00010 @@ -381,7 +362,6 @@ #define IPS_COPPIOCCMD (('C'<<8) | 66) #define IPS_NUMCTRLS (('C'<<8) | 68) #define IPS_CTRLINFO (('C'<<8) | 69) - #define IPS_FLASHBIOS (('C'<<8) | 70) /* flashing defines */ #define IPS_FW_IMAGE 0x00 @@ -976,19 +956,6 @@ typedef struct { int option_value; } IPS_OPTION; -typedef struct { - void *userbuffer; - uint32_t usersize; - void *kernbuffer; - uint32_t kernsize; - void *ha; - void *SC; - void *pt; - struct semaphore *sem; - uint32_t offset; - uint32_t retcode; -} IPS_FLASH_DATA; - /* * Status Info */ |
