diff options
Diffstat (limited to 'drivers/scsi/aic7xxx/aiclib.h')
-rw-r--r-- | drivers/scsi/aic7xxx/aiclib.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/scsi/aic7xxx/aiclib.h b/drivers/scsi/aic7xxx/aiclib.h index e7d94cbaf2a8..3bfbf0fe1ec2 100644 --- a/drivers/scsi/aic7xxx/aiclib.h +++ b/drivers/scsi/aic7xxx/aiclib.h | |||
@@ -141,28 +141,6 @@ aic_sector_div(sector_t capacity, int heads, int sectors) | |||
141 | return (int)capacity; | 141 | return (int)capacity; |
142 | } | 142 | } |
143 | 143 | ||
144 | /**************************** Module Library Hack *****************************/ | ||
145 | /* | ||
146 | * What we'd like to do is have a single "scsi library" module that both the | ||
147 | * aic7xxx and aic79xx drivers could load and depend on. A cursory examination | ||
148 | * of implementing module dependencies in Linux (handling the install and | ||
149 | * initrd cases) does not look promissing. For now, we just duplicate this | ||
150 | * code in both drivers using a simple symbol renaming scheme that hides this | ||
151 | * hack from the drivers. | ||
152 | */ | ||
153 | #define AIC_LIB_ENTRY_CONCAT(x, prefix) prefix ## x | ||
154 | #define AIC_LIB_ENTRY_EXPAND(x, prefix) AIC_LIB_ENTRY_CONCAT(x, prefix) | ||
155 | #define AIC_LIB_ENTRY(x) AIC_LIB_ENTRY_EXPAND(x, AIC_LIB_PREFIX) | ||
156 | |||
157 | #define aic_calc_syncsrate AIC_LIB_ENTRY(_calc_syncrate) | ||
158 | |||
159 | u_int aic_calc_syncsrate(u_int /*period_factor*/); | ||
160 | |||
161 | typedef void aic_option_callback_t(u_long, int, int, int32_t); | ||
162 | char * aic_parse_brace_option(char *opt_name, char *opt_arg, | ||
163 | char *end, int depth, | ||
164 | aic_option_callback_t *, u_long); | ||
165 | |||
166 | static __inline uint32_t | 144 | static __inline uint32_t |
167 | scsi_4btoul(uint8_t *bytes) | 145 | scsi_4btoul(uint8_t *bytes) |
168 | { | 146 | { |