Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/next/external/cache/sources/wl/include/bcmusb.h
Views: 3959
/*1* Broadcom USB/HSIC framing2* Software-specific framing definitions shared between host and device3*4* $Copyright Open 2012 Broadcom Corporation$5*6* $Id: bcmusb.h 281591 2012-09-02 18:43:02Z sgsiener $7*/89#ifndef _bcmusb_h_10#define _bcmusb_h_1112/*13* Software-defined USB frame header14*/1516#ifdef USB_FRAME_HEADER17#define USBF_HEADER_LEN 1618#else19#define USBF_HEADER_LEN 020#endif2122#ifdef USBF_CKSUM_OVER_FRAME23#define USBF_DEF_CKSUM_LEN 024#else25#define USBF_DEF_CKSUM_LEN USBF_HEADER_LEN26#endif2728/* Current protocol version */29#define USBF_PROT_VERSION 13031/* ----- first 32-bit word ----- */3233/* 4-bit version field */34#define USBF_VER_MASK 0x0000000f3536/* 8-bit flags field */37#define USBF_FLAGS_MASK 0x00000ff038#define USBF_FLAGS_SHIFT 43940/* flags field definitions */41#define USBF_FLAGS_TIMESTAMPED 0x01 /* frame header includes timestamp */42#define USBF_FLAGS_FRAME_EVENT 0x02 /* set when frame contains an Event indication */43#define USBF_FLAGS_FRAME_CKSUM 0x04 /* set when cksum is over entire frame */4445/* 3-bit channel identifier field */46#define USBF_CHAN_MASK 0x0000700047#define USBF_CHAN_SHIFT 124849#define USBF_CHAN_CONTROL 050#define USBF_CHAN_INTERRUPT 151#define USBF_CHAN_DATAEVENT 25253/* used by host & device to disambiguate frames with this header from ones without */54#define USBF_TAG 0x00008000 /* bit won't appear in bdc/ioctl header */5556/* 16-bit checksum */57#define USBF_CHECKSUM_MASK 0xffff0000 /* checksum mask */58#define USBF_CHECKSUM_SHIFT 165960/* ----- second 32-bit word ----- */6162/* 16-bit length */63#define USBF_LENGTH_MASK 0x0000ffff /* length mask */6465/* 16-bit sequence number */66#define USBF_SEQNUM_MASK 0xffff0000 /* sequence number mask */67#define USBF_SEQSUM_SHIFT 166869/* ----- third 32-bit word ----- */7071/* 32-bit timestamp */72#define USBF_TIMESTAMP_MASK 0xffffffff /* timestamp value mask */7374/* ----- fourth 32-bit word ----- */7576/* reserve 32 bits for future use */77#define USBF_RESERVED_MASK 0xffffffff /* reserved for future use mask */7879#endif /* _bcmusb_h_ */808182