patch-2.3.48 linux/drivers/atm/eni.h

Next file: linux/drivers/atm/fore200e.c
Previous file: linux/drivers/atm/eni.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/drivers/atm/eni.h linux/drivers/atm/eni.h
@@ -27,6 +27,8 @@
 #define DEFAULT_RX_MULT	300		/* max_sdu*3 */
 #define DEFAULT_TX_MULT	300		/* max_sdu*3 */
 
+#define ENI_ZEROES_SIZE	  4		/* need that many DMA-able zero bytes */
+
 
 struct eni_free {
 	unsigned long start;		/* counting in bytes */
@@ -113,9 +115,11 @@
 	struct atm_skb_data _;		/* reserved */
 	unsigned long pos;		/* position of next descriptor */
 	int size;			/* PDU size in reassembly buffer */
+	dma_addr_t paddr;		/* DMA handle */
 };
 
 #define ENI_PRV_SIZE(skb) (((struct eni_skb_prv *) (skb)->cb)->size)
 #define ENI_PRV_POS(skb) (((struct eni_skb_prv *) (skb)->cb)->pos)
+#define ENI_PRV_PADDR(skb) (((struct eni_skb_prv *) (skb)->cb)->paddr)
 
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)