diff options
author | <jejb@titanic.il.steeleye.com> | 2005-04-17 18:03:20 -0500 |
---|---|---|
committer | James Bottomley <jejb@titanic> | 2005-04-18 13:52:27 -0500 |
commit | cb624029cab62e5415287d15b2ec907b8f322ff5 (patch) | |
tree | 9ab51220f3ad2a63632b69c5d3662f2c9a771a09 /drivers/scsi/aic7xxx/aic7xxx_osm.h | |
parent | 92d161c373b45be158b73a162bedebb5293a73d3 (diff) | |
download | kernel_goldelico_gta04-cb624029cab62e5415287d15b2ec907b8f322ff5.zip kernel_goldelico_gta04-cb624029cab62e5415287d15b2ec907b8f322ff5.tar.gz kernel_goldelico_gta04-cb624029cab62e5415287d15b2ec907b8f322ff5.tar.bz2 |
aic7xxx: convert to SPI transport class Domain Validation
Now that we export all the parameters, this is easy to do.
It also means that we can dump about 2000 lines of code that
were dedicated to doing this internally.
Additionally, this removes all the aic7xxx driver abuse
of SCSI timers which were embedded in the DV routines.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_osm.h')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_osm.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.h b/drivers/scsi/aic7xxx/aic7xxx_osm.h index db3bd63..c401537 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.h +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.h @@ -424,27 +424,9 @@ struct ahc_linux_device { }; typedef enum { - AHC_DV_REQUIRED = 0x01, AHC_INQ_VALID = 0x02, - AHC_BASIC_DV = 0x04, - AHC_ENHANCED_DV = 0x08 } ahc_linux_targ_flags; -/* DV States */ -typedef enum { - AHC_DV_STATE_EXIT = 0, - AHC_DV_STATE_INQ_SHORT_ASYNC, - AHC_DV_STATE_INQ_ASYNC, - AHC_DV_STATE_INQ_ASYNC_VERIFY, - AHC_DV_STATE_TUR, - AHC_DV_STATE_REBD, - AHC_DV_STATE_INQ_VERIFY, - AHC_DV_STATE_WEB, - AHC_DV_STATE_REB, - AHC_DV_STATE_SU, - AHC_DV_STATE_BUSY -} ahc_dv_state; - struct ahc_linux_target { struct ahc_linux_device *devices[AHC_NUM_LUNS]; int channel; @@ -454,19 +436,6 @@ struct ahc_linux_target { struct ahc_softc *ahc; ahc_linux_targ_flags flags; struct scsi_inquiry_data *inq_data; - /* - * The next "fallback" period to use for narrow/wide transfers. - */ - uint8_t dv_next_narrow_period; - uint8_t dv_next_wide_period; - uint8_t dv_max_width; - uint8_t dv_max_ppr_options; - uint8_t dv_last_ppr_options; - u_int dv_echo_size; - ahc_dv_state dv_state; - u_int dv_state_retry; - char *dv_buffer; - char *dv_buffer1; }; /********************* Definitions Required by the Core ***********************/ @@ -511,10 +480,6 @@ struct scb_platform_data { * this driver. */ typedef enum { - AHC_DV_WAIT_SIMQ_EMPTY = 0x01, - AHC_DV_WAIT_SIMQ_RELEASE = 0x02, - AHC_DV_ACTIVE = 0x04, - AHC_DV_SHUTDOWN = 0x08, AHC_RUN_CMPLT_Q_TIMER = 0x10 } ahc_linux_softc_flags; @@ -937,11 +902,6 @@ int ahc_linux_proc_info(struct Scsi_Host *, char *, char **, #endif /*************************** Domain Validation ********************************/ -#define AHC_DV_CMD(cmd) ((cmd)->scsi_done == ahc_linux_dv_complete) -#define AHC_DV_SIMQ_FROZEN(ahc) \ - ((((ahc)->platform_data->flags & AHC_DV_ACTIVE) != 0) \ - && (ahc)->platform_data->qfrozen == 1) - /*********************** Transaction Access Wrappers *************************/ static __inline void ahc_cmd_set_transaction_status(Scsi_Cmnd *, uint32_t); static __inline void ahc_set_transaction_status(struct scb *, uint32_t); |