--- zzzz-none-000/linux-2.6.32.60/drivers/usb/gadget/u_ether.h 2012-10-07 21:41:24.000000000 +0000 +++ ur8-7270-606/linux-2.6.32.60/drivers/usb/gadget/u_ether.h 2011-07-20 07:23:51.000000000 +0000 @@ -62,15 +62,36 @@ /* hooks for added framing, as needed for RNDIS and EEM. */ u32 header_len; - struct sk_buff *(*wrap)(struct gether *port, - struct sk_buff *skb); - int (*unwrap)(struct gether *port, + #if defined(__IFX_USB_GADGET__) && defined(__RETAIN_BUF_TX__) + int (*wrap)(struct gether *port, + u8 *buf, + struct sk_buff *skb, + int max_len); + #else + struct sk_buff *(*wrap)(struct gether *, struct sk_buff *skb); + #endif + + #if defined(__IFX_USB_GADGET__) && defined(__RETAIN_BUF_RX__) + int (*unwrap)( struct gether *port, + u8 *buf, u16 len, + struct sk_buff_head *list); + #else + int (*unwrap)(struct gether *, struct sk_buff *skb, struct sk_buff_head *list); + #endif /* called on network open/close */ void (*open)(struct gether *); void (*close)(struct gether *); + + #if defined(__IFX_USB_GADGET__) && defined(__MAC_ECM_FIX__) + int ecm_only; + int ecm_only_postive; + int ecm_only_negtive; + #define ecm_only_postive_max 3 + #define ecm_only_negtive_max 5 + #endif }; #define DEFAULT_FILTER (USB_CDC_PACKET_TYPE_BROADCAST \