diff options
author | Christoph Hellwig <hch@lst.de> | 2005-08-19 12:57:13 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-09-04 20:46:07 -0400 |
commit | 1ff927306e08b356d764e605eff7c50079550bd2 (patch) | |
tree | e96b628ce6673694c615f57013fcc14f72a6677f /drivers/scsi/aic7xxx/aiclib.h | |
parent | 77d71d222e871670300f3e3092e2a06f20c842f0 (diff) |
[SCSI] aic7xxx: remove aiclib.c
#include of C files and macro tricks to rename symbols are evil and just
cause trouble. Let's doublicate the two functions as they're going to
go away soon enough anyway.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
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 | { |