Lines Matching +full:100 +full:base +full:- +full:tx
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* drivers/atm/eni.h - Efficient Networks ENI155P device driver declarations */
4 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
28 #define TX_DMA_BUF 100 /* should be enough for 64 kB */
33 #define ENI_ZEROES_SIZE 4 /* need that many DMA-able zero bytes */
42 void __iomem *send; /* base, 0 if unused */
45 unsigned long tx_pos; /* current TX write position */
46 unsigned long words; /* size of TX queue */
47 int index; /* TX channel number */
50 struct sk_buff_head backlog; /* queue of waiting TX buffers */
59 struct eni_tx *tx; /* TXer, NULL if none */ member
62 int txing; /* number of pending TX bytes */
70 /*-------------------------------- spinlock */
74 /*-------------------------------- base pointers into Midway address
78 void __iomem *reg; /* register base */
79 void __iomem *ram; /* RAM base */
82 void __iomem *tx_dma; /* TX DMA queue */
84 /*-------------------------------- TX part */
85 struct eni_tx tx[NR_CHAN]; /* TX channels */ member
87 struct sk_buff_head tx_queue; /* PDUs currently being TX DMAed*/
96 /*-------------------------------- RX part */
101 struct sk_buff_head rx_queue; /* PDUs currently being RX-DMAed */
104 /*-------------------------------- statistics */
106 /*-------------------------------- memory management */
107 unsigned long base_diff; /* virtual-real base address */
111 /*-------------------------------- ENI links */
113 /*-------------------------------- general information */
121 #define ENI_DEV(d) ((struct eni_dev *) (d)->dev_data)
122 #define ENI_VCC(d) ((struct eni_vcc *) (d)->dev_data)
132 #define ENI_PRV_SIZE(skb) (((struct eni_skb_prv *) (skb)->cb)->size)
133 #define ENI_PRV_POS(skb) (((struct eni_skb_prv *) (skb)->cb)->pos)
134 #define ENI_PRV_PADDR(skb) (((struct eni_skb_prv *) (skb)->cb)->paddr)