diff options
Diffstat (limited to 'drivers/scsi/sym53c8xx_2/sym_hipd.h')
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_hipd.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.h b/drivers/scsi/sym53c8xx_2/sym_hipd.h index c55c7a57afa0..3131a6bf7ab7 100644 --- a/drivers/scsi/sym53c8xx_2/sym_hipd.h +++ b/drivers/scsi/sym53c8xx_2/sym_hipd.h | |||
@@ -151,6 +151,16 @@ | |||
151 | */ | 151 | */ |
152 | #define SYM_CONF_MIN_ASYNC (40) | 152 | #define SYM_CONF_MIN_ASYNC (40) |
153 | 153 | ||
154 | |||
155 | /* | ||
156 | * MEMORY ALLOCATOR. | ||
157 | */ | ||
158 | |||
159 | #define SYM_MEM_WARN 1 /* Warn on failed operations */ | ||
160 | |||
161 | #define SYM_MEM_PAGE_ORDER 0 /* 1 PAGE maximum */ | ||
162 | #define SYM_MEM_CLUSTER_SHIFT (PAGE_SHIFT+SYM_MEM_PAGE_ORDER) | ||
163 | #define SYM_MEM_FREE_UNUSED /* Free unused pages immediately */ | ||
154 | /* | 164 | /* |
155 | * Shortest memory chunk is (1<<SYM_MEM_SHIFT), currently 16. | 165 | * Shortest memory chunk is (1<<SYM_MEM_SHIFT), currently 16. |
156 | * Actual allocations happen as SYM_MEM_CLUSTER_SIZE sized. | 166 | * Actual allocations happen as SYM_MEM_CLUSTER_SIZE sized. |
@@ -1192,12 +1202,6 @@ static inline void sym_setup_data_pointers(struct sym_hcb *np, | |||
1192 | * MEMORY ALLOCATOR. | 1202 | * MEMORY ALLOCATOR. |
1193 | */ | 1203 | */ |
1194 | 1204 | ||
1195 | #define SYM_MEM_PAGE_ORDER 0 /* 1 PAGE maximum */ | ||
1196 | #define SYM_MEM_CLUSTER_SHIFT (PAGE_SHIFT+SYM_MEM_PAGE_ORDER) | ||
1197 | #define SYM_MEM_FREE_UNUSED /* Free unused pages immediately */ | ||
1198 | |||
1199 | #define SYM_MEM_WARN 1 /* Warn on failed operations */ | ||
1200 | |||
1201 | #define sym_get_mem_cluster() \ | 1205 | #define sym_get_mem_cluster() \ |
1202 | (void *) __get_free_pages(GFP_ATOMIC, SYM_MEM_PAGE_ORDER) | 1206 | (void *) __get_free_pages(GFP_ATOMIC, SYM_MEM_PAGE_ORDER) |
1203 | #define sym_free_mem_cluster(p) \ | 1207 | #define sym_free_mem_cluster(p) \ |