aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/atm/he.h
diff options
context:
space:
mode:
authorChas Williams <chas@cmf.nrl.navy.mil>2008-06-17 19:21:44 -0400
committerDavid S. Miller <davem@davemloft.net>2008-06-17 19:21:44 -0400
commit7255ca3f3c928fec6d9ce607fed7d0a4f4fca6f7 (patch)
tree516a1aaaa7a57a2f3db1608abd1acd72ac747e82 /drivers/atm/he.h
parent97928f7021dc70f268037e9a7ea18a7345762fca (diff)
atm: [he] remove #ifdef clutter
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm/he.h')
-rw-r--r--drivers/atm/he.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/atm/he.h b/drivers/atm/he.h
index b87d6ccabac1..c2983e0d4ec1 100644
--- a/drivers/atm/he.h
+++ b/drivers/atm/he.h
@@ -51,8 +51,6 @@
51#define CONFIG_IRQ_SIZE 128 51#define CONFIG_IRQ_SIZE 128
52#define CONFIG_IRQ_THRESH (CONFIG_IRQ_SIZE/2) 52#define CONFIG_IRQ_THRESH (CONFIG_IRQ_SIZE/2)
53 53
54#define CONFIG_NUMTPDS 256
55
56#define CONFIG_TPDRQ_SIZE 512 54#define CONFIG_TPDRQ_SIZE 512
57#define TPDRQ_MASK(x) (((unsigned long)(x))&((CONFIG_TPDRQ_SIZE<<3)-1)) 55#define TPDRQ_MASK(x) (((unsigned long)(x))&((CONFIG_TPDRQ_SIZE<<3)-1))
58 56
@@ -140,12 +138,7 @@ struct he_tpd {
140 struct sk_buff *skb; 138 struct sk_buff *skb;
141 struct atm_vcc *vcc; 139 struct atm_vcc *vcc;
142 140
143#ifdef USE_TPD_POOL
144 struct list_head entry; 141 struct list_head entry;
145#else
146 u32 inuse;
147 char padding[32 - sizeof(u32) - (2*sizeof(void*))];
148#endif
149}; 142};
150 143
151#define TPD_ALIGNMENT 64 144#define TPD_ALIGNMENT 64
@@ -291,16 +284,9 @@ struct he_dev {
291 volatile unsigned *irq_tailoffset; 284 volatile unsigned *irq_tailoffset;
292 int irq_peak; 285 int irq_peak;
293 286
294#ifdef USE_TASKLET
295 struct tasklet_struct tasklet; 287 struct tasklet_struct tasklet;
296#endif
297#ifdef USE_TPD_POOL
298 struct pci_pool *tpd_pool; 288 struct pci_pool *tpd_pool;
299 struct list_head outstanding_tpds; 289 struct list_head outstanding_tpds;
300#else
301 struct he_tpd *tpd_head, *tpd_base, *tpd_end;
302 dma_addr_t tpd_base_phys;
303#endif
304 290
305 dma_addr_t tpdrq_phys; 291 dma_addr_t tpdrq_phys;
306 struct he_tpdrq *tpdrq_base, *tpdrq_tail, *tpdrq_head; 292 struct he_tpdrq *tpdrq_base, *tpdrq_tail, *tpdrq_head;
@@ -311,25 +297,13 @@ struct he_dev {
311 struct he_rbrq *rbrq_base, *rbrq_head; 297 struct he_rbrq *rbrq_base, *rbrq_head;
312 int rbrq_peak; 298 int rbrq_peak;
313 299
314#ifdef USE_RBPL_POOL
315 struct pci_pool *rbpl_pool; 300 struct pci_pool *rbpl_pool;
316#else
317 void *rbpl_pages;
318 dma_addr_t rbpl_pages_phys;
319#endif
320 dma_addr_t rbpl_phys; 301 dma_addr_t rbpl_phys;
321 struct he_rbp *rbpl_base, *rbpl_tail; 302 struct he_rbp *rbpl_base, *rbpl_tail;
322 struct he_virt *rbpl_virt; 303 struct he_virt *rbpl_virt;
323 int rbpl_peak; 304 int rbpl_peak;
324 305
325#ifdef USE_RBPS
326#ifdef USE_RBPS_POOL
327 struct pci_pool *rbps_pool; 306 struct pci_pool *rbps_pool;
328#else
329 void *rbps_pages;
330 dma_addr_t rbps_pages_phys;
331#endif
332#endif
333 dma_addr_t rbps_phys; 307 dma_addr_t rbps_phys;
334 struct he_rbp *rbps_base, *rbps_tail; 308 struct he_rbp *rbps_base, *rbps_tail;
335 struct he_virt *rbps_virt; 309 struct he_virt *rbps_virt;