--- zzzz-none-000/linux-2.6.32.61/include/linux/atmdev.h 2013-06-10 09:43:48.000000000 +0000 +++ ar9-7330-650/linux-2.6.32.61/include/linux/atmdev.h 2013-05-02 15:41:28.000000000 +0000 @@ -98,15 +98,47 @@ /* set backend handler */ #define ATM_NEWBACKENDIF _IOW('a',ATMIOC_SPECIAL+3,atm_backend_t) /* use backend to make new if */ -#define ATM_ADDPARTY _IOW('a', ATMIOC_SPECIAL+4,struct atm_iobuf) +#define ATM_DELBACKENDIF _IOW('a',ATMIOC_SPECIAL+4,atm_backend_t) + /* set backend to remove if */ +#define ATM_ADDPARTY _IOW('a', ATMIOC_SPECIAL+5,struct atm_iobuf) /* add party to p2mp call */ #ifdef CONFIG_COMPAT /* It actually takes struct sockaddr_atmsvc, not struct atm_iobuf */ -#define COMPAT_ATM_ADDPARTY _IOW('a', ATMIOC_SPECIAL+4,struct compat_atm_iobuf) +#define COMPAT_ATM_ADDPARTY _IOW('a', ATMIOC_SPECIAL+5,struct compat_atm_iobuf) #endif -#define ATM_DROPPARTY _IOW('a', ATMIOC_SPECIAL+5,int) +#define ATM_DROPPARTY _IOW('a', ATMIOC_SPECIAL+6,int) /* drop party from p2mp call */ +#ifdef CONFIG_MACH_FUSIV +#define ATM_DEL_INTERFACE _IOW('a',ATMIOC_SPECIAL+6,atm_backend_t) //FUSIV + /* use backend to delete new if */ +#endif + +/*! NOTE(bk): extensions for TI */ +#ifdef CONFIG_MIPS_UR8 + +#define ATM_TXFLUSH _IOW('a', ATMIOC_SPECIAL+6,int) + /* Flush the device data cache on TI DSL modem */ +#define ATM_TXSTOP _IOW('a', ATMIOC_SPECIAL+7,int) + /* Stop the Tx on TI DSL modem device */ +#define ATM_DSL_READ_WRITE _IOW('a', ATMIOC_SPECIAL+8,int) + /* read and write commands to TI DSL modem device */ + +#endif //CONFIG_MIPS_UR8 +//end bk + +#ifdef CONFIG_WAN_VLAN_SUPPORT +struct wan_vlan_struct { + int vlan_if_num; + char vlan_if_name[16]; /* VLAN Enabled WAN-IF name */ + int8_t tag_vlan_enable; + int8_t untag_vlan; + uint16_t vlan_vci; +}; +#define ATM_BR2684_VLAN_CONFIG _IOW('a', ATMIOC_SPECIAL+5,int) +#define ATM_BR2684_VLAN_VCC_CONFIG _IOW('a', ATMIOC_SPECIAL+6,struct wan_vlan_struct) +#endif + /* * These are backend handkers that can be set via the ATM_SETBACKEND call * above. In the future we may support dynamic loading of these - for now, @@ -457,7 +489,7 @@ } -static inline int atm_may_send(struct atm_vcc *vcc,unsigned int size) +static inline int atm_may_send(struct atm_vcc *vcc, int size) { return (size + atomic_read(&sk_atm(vcc)->sk_wmem_alloc)) < sk_atm(vcc)->sk_sndbuf;