X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fusb%2Fatm%2Fusb_atm.h;h=cf8c532835306df41fddb0631399bc67e5caa52d;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=188e9171073e1a3e09b8b4f391dc6d755c36c144;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/usb/atm/usb_atm.h b/drivers/usb/atm/usb_atm.h index 188e91710..cf8c53283 100644 --- a/drivers/usb/atm/usb_atm.h +++ b/drivers/usb/atm/usb_atm.h @@ -21,13 +21,30 @@ * ******************************************************************************/ +#include #include -#include #include #include #include #include +/* +#define DEBUG +#define VERBOSE_DEBUG +*/ + +#if !defined (DEBUG) && defined (CONFIG_USB_DEBUG) +# define DEBUG +#endif + +#include + +#ifdef DEBUG +#define UDSL_ASSERT(x) BUG_ON(!(x)) +#else +#define UDSL_ASSERT(x) do { if (!(x)) warn("failed assertion '" #x "' at line %d", __LINE__); } while(0) +#endif + #define UDSL_MAX_RCV_URBS 4 #define UDSL_MAX_SND_URBS 4 #define UDSL_MAX_RCV_BUFS 8 @@ -91,7 +108,6 @@ struct udsl_control { unsigned int num_cells; unsigned int num_entire; unsigned int pdu_padding; - unsigned char cell_header[ATM_CELL_HEADER]; unsigned char aal5_trailer[ATM_AAL5_TRAILER]; };