ltq-atm: rewrite tx path to use IRQs
[openwrt/openwrt.git] / package / kernel / lantiq / ltq-atm / src / ifxmips_atm_core.h
index 2f754c982b2a3485317969935b01b518b2985ee5..398be7d8282a77b67c5908a7a205bda9ed2009f4 100644 (file)
@@ -43,6 +43,7 @@ struct ltq_atm_ops {
        void (*fw_ver)(unsigned int *major, unsigned int *minor);
 };
 
+#include <linux/atomic.h>
 #include <lantiq_atm.h>
 
 /*
@@ -195,6 +196,7 @@ struct connection {
        volatile struct tx_descriptor *tx_desc;
        unsigned int tx_desc_pos;
        struct sk_buff **tx_skb;
+       spinlock_t lock;
 
        unsigned int aal5_vcc_crc_err; /* number of packets with CRC error */
        unsigned int aal5_vcc_oversize_sdu; /* number of packets with oversize error */