Main Page Modules Alphabetical List Data Structures File List Data Fields Globals # usbbasictypes.h Go to the documentation of this file.
    00001
    00060 #include <IxTypes.h>
    00061
    00062 #ifndef usbbasictypes_H
    00063
    00064 #ifndef __doxygen_HIDE
    00065
    00066 #define usbbasictypes_H
    00067
    00068 #endif /* __doxygen_HIDE */
    00069
    00070 #ifdef IX_USB_HAS_DUMMY_MBLK
    00071
    00072 typedef struct struct_mBlk
    00073 {
    00074     void *m_data;
    00075     int m_len;
    00076     int pktlen;
    00077     void (*m_free)(struct struct_mBlk *this_mBlk);
    00078 } IX_USB_MBLK;
    00079
    00080 #define IX_USB_MBLK_DATA(buf)      ((buf)->m_data)
    00081 #define IX_USB_MBLK_LEN(buf)       ((buf)->m_len)
    00082 #define IX_USB_MBLK_FREE(buf)      if ((buf) != NULL) {(buf)->m_free(buf);}
    00083 #define IX_USB_MBLK_PKT_LEN(buf)   ((buf)->pktlen)
    00084
    00085 #else
    00086
    00087 #include <IxOsBuffMgt.h>
    00088 #include <IxOsBuffPoolMgt.h>
    00089
    00091 #define IX_USB_MBLK        IX_MBUF
    00092
    00094 #define IX_USB_MBLK_DATA(buf)      IX_MBUF_MDATA(buf)
    00095
    00097 #define IX_USB_MBLK_LEN(buf)       IX_MBUF_MLEN(buf)
    00098
    00100 #define IX_USB_MBLK_FREE(buf)      if (buf) { IX_MBUF_POOL_PUT(buf); }
    00101
    00103 #define IX_USB_MBLK_PKT_LEN(buf)   IX_MBUF_PKT_LEN(buf)
    00104
    00105
    00106 #endif /* IX_USB_HAS_DUMMY_MBLK */
    00107
    00108 #endif /* usbbasictypes_H */
    00109
Automatically generated from sources. © Intel Corp. 2003