Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
whci-hc.h File Reference
#include <linux/list.h>

Go to the source code of this file.

Data Structures

struct  whc_qtd
 
struct  whc_itd
 
struct  whc_page_list_entry
 
struct  whc_seg_list_entry
 
struct  whc_qhead
 
struct  whc_qset
 
struct  di_buf_entry
 
struct  dn_buf_entry
 

Macros

#define WHCI_PAGE_SIZE   4096
 
#define QTD_MAX_XFER_SIZE   1048575
 
#define QTD_STS_ACTIVE   (1 << 31) /* enable execution of transaction */
 
#define QTD_STS_HALTED   (1 << 30) /* transfer halted */
 
#define QTD_STS_DBE   (1 << 29) /* data buffer error */
 
#define QTD_STS_BABBLE   (1 << 28) /* babble detected */
 
#define QTD_STS_RCE   (1 << 27) /* retry count exceeded */
 
#define QTD_STS_LAST_PKT   (1 << 26) /* set Last Packet Flag in WUSB header */
 
#define QTD_STS_INACTIVE   (1 << 25) /* queue set is marked inactive */
 
#define QTD_STS_IALT_VALID   (1 << 23) /* iAlt field is valid */
 
#define QTD_STS_IALT(i)   (QTD_STS_IALT_VALID | ((i) << 20)) /* iAlt field */
 
#define QTD_STS_LEN(l)   ((l) << 0) /* transfer length */
 
#define QTD_STS_TO_LEN(s)   ((s) & 0x000fffff)
 
#define QTD_OPT_IOC   (1 << 1) /* page_list_ptr points to buffer directly */
 
#define QTD_OPT_SMALL   (1 << 0) /* interrupt on complete */
 
#define ITD_STS_ACTIVE   (1 << 7) /* enable execution of transaction */
 
#define ITD_STS_DBE   (1 << 5) /* data buffer error */
 
#define ITD_STS_BABBLE   (1 << 4) /* babble detected */
 
#define ITD_STS_INACTIVE   (1 << 1) /* queue set is marked inactive */
 
#define ITD_OPT_IOC   (1 << 1) /* interrupt on complete */
 
#define ITD_OPT_SMALL   (1 << 0) /* page_list_ptr points to buffer directly */
 
#define QH_LINK_PTR_MASK   (~0x03Full)
 
#define QH_LINK_PTR(ptr)   ((ptr) & QH_LINK_PTR_MASK)
 
#define QH_LINK_IQS   (1 << 4) /* isochronous queue set */
 
#define QH_LINK_NTDS(n)   (((n) - 1) << 1) /* number of TDs in queue set */
 
#define QH_LINK_T   (1 << 0) /* last queue set in periodic schedule list */
 
#define QH_INFO1_EP(e)   ((e) << 0) /* endpoint number */
 
#define QH_INFO1_DIR_IN   (1 << 4) /* IN transfer */
 
#define QH_INFO1_DIR_OUT   (0 << 4) /* OUT transfer */
 
#define QH_INFO1_TR_TYPE_CTRL   (0x0 << 5) /* control transfer */
 
#define QH_INFO1_TR_TYPE_ISOC   (0x1 << 5) /* isochronous transfer */
 
#define QH_INFO1_TR_TYPE_BULK   (0x2 << 5) /* bulk transfer */
 
#define QH_INFO1_TR_TYPE_INT   (0x3 << 5) /* interrupt */
 
#define QH_INFO1_TR_TYPE_LP_INT   (0x7 << 5) /* low power interrupt */
 
#define QH_INFO1_DEV_INFO_IDX(i)   ((i) << 8) /* index into device info buffer */
 
#define QH_INFO1_SET_INACTIVE   (1 << 15) /* set inactive after transfer */
 
#define QH_INFO1_MAX_PKT_LEN(l)   ((l) << 16) /* maximum packet length */
 
#define QH_INFO2_BURST(b)   ((b) << 0) /* maximum burst length */
 
#define QH_INFO2_DBP(p)   ((p) << 5) /* data burst policy (see [WUSB] table 5-7) */
 
#define QH_INFO2_MAX_COUNT(c)   ((c) << 8) /* max isoc/int pkts per zone */
 
#define QH_INFO2_RQS   (1 << 15) /* reactivate queue set */
 
#define QH_INFO2_MAX_RETRY(r)   ((r) << 16) /* maximum transaction retries */
 
#define QH_INFO2_MAX_SEQ(s)   ((s) << 20) /* maximum sequence number */
 
#define QH_INFO3_MAX_DELAY(d)   ((d) << 0) /* maximum stream delay in 125 us units (isoc only) */
 
#define QH_INFO3_INTERVAL(i)   ((i) << 16) /* segment interval in 125 us units (isoc only) */
 
#define QH_INFO3_TX_RATE(r)   ((r) << 24) /* PHY rate (see [ECMA-368] section 10.3.1.1) */
 
#define QH_INFO3_TX_PWR(p)   ((p) << 29) /* transmit power (see [WUSB] section 5.2.1.2) */
 
#define QH_STATUS_FLOW_CTRL   (1 << 15)
 
#define QH_STATUS_ICUR(i)   ((i) << 5)
 
#define QH_STATUS_TO_ICUR(s)   (((s) >> 5) & 0x7)
 
#define QH_STATUS_SEQ_MASK   0x1f
 
#define WHCI_QSET_TD_MAX   8
 
#define WHC_DI_SECURE   (1 << 31)
 
#define WHC_DI_DISABLE   (1 << 30)
 
#define WHC_DI_KEY_IDX(k)   ((k) << 8)
 
#define WHC_DI_KEY_IDX_MASK   0x0000ff00
 
#define WHC_DI_DEV_ADDR(a)   ((a) << 0)
 
#define WHC_DI_DEV_ADDR_MASK   0x000000ff
 
#define WHC_DN_STATUS_VALID   (1 << 7) /* buffer entry is valid */
 
#define WHC_DN_STATUS_SECURE   (1 << 6) /* notification received using secure frame */
 
#define WHC_N_DN_ENTRIES   (4096 / sizeof(struct dn_buf_entry))
 
#define WHC_GEN_CMD_DATA_LEN   256
 
#define WHCIVERSION   0x00
 
#define WHCSPARAMS   0x04
 
#define WHCSPARAMS_TO_N_MMC_IES(p)   (((p) >> 16) & 0xff)
 
#define WHCSPARAMS_TO_N_KEYS(p)   (((p) >> 8) & 0xff)
 
#define WHCSPARAMS_TO_N_DEVICES(p)   (((p) >> 0) & 0x7f)
 
#define WUSBCMD   0x08
 
#define WUSBCMD_BCID(b)   ((b) << 16)
 
#define WUSBCMD_BCID_MASK   (0xff << 16)
 
#define WUSBCMD_ASYNC_QSET_RM   (1 << 12)
 
#define WUSBCMD_PERIODIC_QSET_RM   (1 << 11)
 
#define WUSBCMD_WUSBSI(s)   ((s) << 8)
 
#define WUSBCMD_WUSBSI_MASK   (0x7 << 8)
 
#define WUSBCMD_ASYNC_SYNCED_DB   (1 << 7)
 
#define WUSBCMD_PERIODIC_SYNCED_DB   (1 << 6)
 
#define WUSBCMD_ASYNC_UPDATED   (1 << 5)
 
#define WUSBCMD_PERIODIC_UPDATED   (1 << 4)
 
#define WUSBCMD_ASYNC_EN   (1 << 3)
 
#define WUSBCMD_PERIODIC_EN   (1 << 2)
 
#define WUSBCMD_WHCRESET   (1 << 1)
 
#define WUSBCMD_RUN   (1 << 0)
 
#define WUSBSTS   0x0c
 
#define WUSBSTS_ASYNC_SCHED   (1 << 15)
 
#define WUSBSTS_PERIODIC_SCHED   (1 << 14)
 
#define WUSBSTS_DNTS_SCHED   (1 << 13)
 
#define WUSBSTS_HCHALTED   (1 << 12)
 
#define WUSBSTS_GEN_CMD_DONE   (1 << 9)
 
#define WUSBSTS_CHAN_TIME_ROLLOVER   (1 << 8)
 
#define WUSBSTS_DNTS_OVERFLOW   (1 << 7)
 
#define WUSBSTS_BPST_ADJUSTMENT_CHANGED   (1 << 6)
 
#define WUSBSTS_HOST_ERR   (1 << 5)
 
#define WUSBSTS_ASYNC_SCHED_SYNCED   (1 << 4)
 
#define WUSBSTS_PERIODIC_SCHED_SYNCED   (1 << 3)
 
#define WUSBSTS_DNTS_INT   (1 << 2)
 
#define WUSBSTS_ERR_INT   (1 << 1)
 
#define WUSBSTS_INT   (1 << 0)
 
#define WUSBSTS_INT_MASK   0x3ff
 
#define WUSBINTR   0x10
 
#define WUSBINTR_GEN_CMD_DONE   (1 << 9)
 
#define WUSBINTR_CHAN_TIME_ROLLOVER   (1 << 8)
 
#define WUSBINTR_DNTS_OVERFLOW   (1 << 7)
 
#define WUSBINTR_BPST_ADJUSTMENT_CHANGED   (1 << 6)
 
#define WUSBINTR_HOST_ERR   (1 << 5)
 
#define WUSBINTR_ASYNC_SCHED_SYNCED   (1 << 4)
 
#define WUSBINTR_PERIODIC_SCHED_SYNCED   (1 << 3)
 
#define WUSBINTR_DNTS_INT   (1 << 2)
 
#define WUSBINTR_ERR_INT   (1 << 1)
 
#define WUSBINTR_INT   (1 << 0)
 
#define WUSBINTR_ALL   0x3ff
 
#define WUSBGENCMDSTS   0x14
 
#define WUSBGENCMDSTS_ACTIVE   (1 << 31)
 
#define WUSBGENCMDSTS_ERROR   (1 << 24)
 
#define WUSBGENCMDSTS_IOC   (1 << 23)
 
#define WUSBGENCMDSTS_MMCIE_ADD   0x01
 
#define WUSBGENCMDSTS_MMCIE_RM   0x02
 
#define WUSBGENCMDSTS_SET_MAS   0x03
 
#define WUSBGENCMDSTS_CHAN_STOP   0x04
 
#define WUSBGENCMDSTS_RWP_EN   0x05
 
#define WUSBGENCMDPARAMS   0x18
 
#define WUSBGENADDR   0x20
 
#define WUSBASYNCLISTADDR   0x28
 
#define WUSBDNTSBUFADDR   0x30
 
#define WUSBDEVICEINFOADDR   0x38
 
#define WUSBSETSECKEYCMD   0x40
 
#define WUSBSETSECKEYCMD_SET   (1 << 31)
 
#define WUSBSETSECKEYCMD_ERASE   (1 << 30)
 
#define WUSBSETSECKEYCMD_GTK   (1 << 8)
 
#define WUSBSETSECKEYCMD_IDX(i)   ((i) << 0)
 
#define WUSBTKID   0x44
 
#define WUSBSECKEY   0x48
 
#define WUSBPERIODICLISTBASE   0x58
 
#define WUSBMASINDEX   0x60
 
#define WUSBDNTSCTRL   0x64
 
#define WUSBDNTSCTRL_ACTIVE   (1 << 31)
 
#define WUSBDNTSCTRL_INTERVAL(i)   ((i) << 8)
 
#define WUSBDNTSCTRL_SLOTS(s)   ((s) << 0)
 
#define WUSBTIME   0x68
 
#define WUSBTIME_CHANNEL_TIME_MASK   0x00ffffff
 
#define WUSBBPST   0x6c
 
#define WUSBDIBUPDATED   0x70
 

Functions

struct whc_qtd __attribute__ ((packed))
 

Variables

__le32 status
 
__le32 options
 
__le64 page_list_ptr
 
__u8 setup [8]
 
__le16 presentation_time
 
__u8 num_segments
 
__le64 seg_list_ptr
 
__le64 buf_ptr
 
__le16 len
 
__u8 idx
 
__le16 offset
 
__le64 link
 
__le32 info1
 
__le32 info2
 
__le32 info3
 
__le16 err_count
 
__le32 cur_window
 
__le32 scratch [3]
 
union {
   struct whc_qtd   qtd
 
   struct whc_itd   itd
 
overlay
 
struct whc_qset __attribute__
 
__le32 availability_info [8]
 
__le32 addr_sec_info
 
__le32 reserved [7]
 
__u8 msg_size
 
__u8 reserved1
 
__u8 src_addr
 
__le32 tkid
 
__u8 dn_data [56]
 

Macro Definition Documentation

#define ITD_OPT_IOC   (1 << 1) /* interrupt on complete */

Definition at line 93 of file whci-hc.h.

#define ITD_OPT_SMALL   (1 << 0) /* page_list_ptr points to buffer directly */

Definition at line 94 of file whci-hc.h.

#define ITD_STS_ACTIVE   (1 << 7) /* enable execution of transaction */

Definition at line 88 of file whci-hc.h.

#define ITD_STS_BABBLE   (1 << 4) /* babble detected */

Definition at line 90 of file whci-hc.h.

#define ITD_STS_DBE   (1 << 5) /* data buffer error */

Definition at line 89 of file whci-hc.h.

#define ITD_STS_INACTIVE   (1 << 1) /* queue set is marked inactive */

Definition at line 91 of file whci-hc.h.

#define QH_INFO1_DEV_INFO_IDX (   i)    ((i) << 8) /* index into device info buffer */

Definition at line 162 of file whci-hc.h.

#define QH_INFO1_DIR_IN   (1 << 4) /* IN transfer */

Definition at line 155 of file whci-hc.h.

#define QH_INFO1_DIR_OUT   (0 << 4) /* OUT transfer */

Definition at line 156 of file whci-hc.h.

#define QH_INFO1_EP (   e)    ((e) << 0) /* endpoint number */

Definition at line 154 of file whci-hc.h.

#define QH_INFO1_MAX_PKT_LEN (   l)    ((l) << 16) /* maximum packet length */

Definition at line 164 of file whci-hc.h.

#define QH_INFO1_SET_INACTIVE   (1 << 15) /* set inactive after transfer */

Definition at line 163 of file whci-hc.h.

#define QH_INFO1_TR_TYPE_BULK   (0x2 << 5) /* bulk transfer */

Definition at line 159 of file whci-hc.h.

#define QH_INFO1_TR_TYPE_CTRL   (0x0 << 5) /* control transfer */

Definition at line 157 of file whci-hc.h.

#define QH_INFO1_TR_TYPE_INT   (0x3 << 5) /* interrupt */

Definition at line 160 of file whci-hc.h.

#define QH_INFO1_TR_TYPE_ISOC   (0x1 << 5) /* isochronous transfer */

Definition at line 158 of file whci-hc.h.

#define QH_INFO1_TR_TYPE_LP_INT   (0x7 << 5) /* low power interrupt */

Definition at line 161 of file whci-hc.h.

#define QH_INFO2_BURST (   b)    ((b) << 0) /* maximum burst length */

Definition at line 166 of file whci-hc.h.

#define QH_INFO2_DBP (   p)    ((p) << 5) /* data burst policy (see [WUSB] table 5-7) */

Definition at line 167 of file whci-hc.h.

#define QH_INFO2_MAX_COUNT (   c)    ((c) << 8) /* max isoc/int pkts per zone */

Definition at line 168 of file whci-hc.h.

#define QH_INFO2_MAX_RETRY (   r)    ((r) << 16) /* maximum transaction retries */

Definition at line 170 of file whci-hc.h.

#define QH_INFO2_MAX_SEQ (   s)    ((s) << 20) /* maximum sequence number */

Definition at line 171 of file whci-hc.h.

#define QH_INFO2_RQS   (1 << 15) /* reactivate queue set */

Definition at line 169 of file whci-hc.h.

#define QH_INFO3_INTERVAL (   i)    ((i) << 16) /* segment interval in 125 us units (isoc only) */

Definition at line 173 of file whci-hc.h.

#define QH_INFO3_MAX_DELAY (   d)    ((d) << 0) /* maximum stream delay in 125 us units (isoc only) */

Definition at line 172 of file whci-hc.h.

#define QH_INFO3_TX_PWR (   p)    ((p) << 29) /* transmit power (see [WUSB] section 5.2.1.2) */

Definition at line 176 of file whci-hc.h.

#define QH_INFO3_TX_RATE (   r)    ((r) << 24) /* PHY rate (see [ECMA-368] section 10.3.1.1) */

Definition at line 175 of file whci-hc.h.

#define QH_LINK_IQS   (1 << 4) /* isochronous queue set */

Definition at line 150 of file whci-hc.h.

#define QH_LINK_NTDS (   n)    (((n) - 1) << 1) /* number of TDs in queue set */

Definition at line 151 of file whci-hc.h.

#define QH_LINK_PTR (   ptr)    ((ptr) & QH_LINK_PTR_MASK)

Definition at line 149 of file whci-hc.h.

#define QH_LINK_PTR_MASK   (~0x03Full)

Definition at line 148 of file whci-hc.h.

#define QH_LINK_T   (1 << 0) /* last queue set in periodic schedule list */

Definition at line 152 of file whci-hc.h.

#define QH_STATUS_FLOW_CTRL   (1 << 15)

Definition at line 178 of file whci-hc.h.

#define QH_STATUS_ICUR (   i)    ((i) << 5)

Definition at line 179 of file whci-hc.h.

#define QH_STATUS_SEQ_MASK   0x1f

Definition at line 181 of file whci-hc.h.

#define QH_STATUS_TO_ICUR (   s)    (((s) >> 5) & 0x7)

Definition at line 180 of file whci-hc.h.

#define QTD_MAX_XFER_SIZE   1048575

QTD_MAX_TXFER_SIZE - max number of bytes to transfer with a single qtd.

This is 2^20 - 1.

Definition at line 39 of file whci-hc.h.

#define QTD_OPT_IOC   (1 << 1) /* page_list_ptr points to buffer directly */

Definition at line 68 of file whci-hc.h.

#define QTD_OPT_SMALL   (1 << 0) /* interrupt on complete */

Definition at line 69 of file whci-hc.h.

#define QTD_STS_ACTIVE   (1 << 31) /* enable execution of transaction */

Definition at line 56 of file whci-hc.h.

#define QTD_STS_BABBLE   (1 << 28) /* babble detected */

Definition at line 59 of file whci-hc.h.

#define QTD_STS_DBE   (1 << 29) /* data buffer error */

Definition at line 58 of file whci-hc.h.

#define QTD_STS_HALTED   (1 << 30) /* transfer halted */

Definition at line 57 of file whci-hc.h.

#define QTD_STS_IALT (   i)    (QTD_STS_IALT_VALID | ((i) << 20)) /* iAlt field */

Definition at line 64 of file whci-hc.h.

#define QTD_STS_IALT_VALID   (1 << 23) /* iAlt field is valid */

Definition at line 63 of file whci-hc.h.

#define QTD_STS_INACTIVE   (1 << 25) /* queue set is marked inactive */

Definition at line 62 of file whci-hc.h.

#define QTD_STS_LAST_PKT   (1 << 26) /* set Last Packet Flag in WUSB header */

Definition at line 61 of file whci-hc.h.

#define QTD_STS_LEN (   l)    ((l) << 0) /* transfer length */

Definition at line 65 of file whci-hc.h.

#define QTD_STS_RCE   (1 << 27) /* retry count exceeded */

Definition at line 60 of file whci-hc.h.

#define QTD_STS_TO_LEN (   s)    ((s) & 0x000fffff)

Definition at line 66 of file whci-hc.h.

#define WHC_DI_DEV_ADDR (   a)    ((a) << 0)

Definition at line 291 of file whci-hc.h.

#define WHC_DI_DEV_ADDR_MASK   0x000000ff

Definition at line 292 of file whci-hc.h.

#define WHC_DI_DISABLE   (1 << 30)

Definition at line 288 of file whci-hc.h.

#define WHC_DI_KEY_IDX (   k)    ((k) << 8)

Definition at line 289 of file whci-hc.h.

#define WHC_DI_KEY_IDX_MASK   0x0000ff00

Definition at line 290 of file whci-hc.h.

#define WHC_DI_SECURE   (1 << 31)

Definition at line 287 of file whci-hc.h.

#define WHC_DN_STATUS_SECURE   (1 << 6) /* notification received using secure frame */

Definition at line 309 of file whci-hc.h.

#define WHC_DN_STATUS_VALID   (1 << 7) /* buffer entry is valid */

Definition at line 308 of file whci-hc.h.

#define WHC_GEN_CMD_DATA_LEN   256

Definition at line 315 of file whci-hc.h.

#define WHC_N_DN_ENTRIES   (4096 / sizeof(struct dn_buf_entry))

Definition at line 311 of file whci-hc.h.

#define WHCI_PAGE_SIZE   4096

WHCI_PAGE_SIZE - page size use by WHCI

WHCI assumes that host system uses pages of 4096 octets.

Definition at line 30 of file whci-hc.h.

#define WHCI_QSET_TD_MAX   8

Maxiumum number of TDs in a qset.

Definition at line 202 of file whci-hc.h.

#define WHCIVERSION   0x00

Definition at line 323 of file whci-hc.h.

#define WHCSPARAMS   0x04

Definition at line 325 of file whci-hc.h.

#define WHCSPARAMS_TO_N_DEVICES (   p)    (((p) >> 0) & 0x7f)

Definition at line 328 of file whci-hc.h.

#define WHCSPARAMS_TO_N_KEYS (   p)    (((p) >> 8) & 0xff)

Definition at line 327 of file whci-hc.h.

#define WHCSPARAMS_TO_N_MMC_IES (   p)    (((p) >> 16) & 0xff)

Definition at line 326 of file whci-hc.h.

#define WUSBASYNCLISTADDR   0x28

Definition at line 388 of file whci-hc.h.

#define WUSBBPST   0x6c

Definition at line 411 of file whci-hc.h.

#define WUSBCMD   0x08

Definition at line 330 of file whci-hc.h.

#define WUSBCMD_ASYNC_EN   (1 << 3)

Definition at line 341 of file whci-hc.h.

#define WUSBCMD_ASYNC_QSET_RM   (1 << 12)

Definition at line 333 of file whci-hc.h.

#define WUSBCMD_ASYNC_SYNCED_DB   (1 << 7)

Definition at line 337 of file whci-hc.h.

#define WUSBCMD_ASYNC_UPDATED   (1 << 5)

Definition at line 339 of file whci-hc.h.

#define WUSBCMD_BCID (   b)    ((b) << 16)

Definition at line 331 of file whci-hc.h.

#define WUSBCMD_BCID_MASK   (0xff << 16)

Definition at line 332 of file whci-hc.h.

#define WUSBCMD_PERIODIC_EN   (1 << 2)

Definition at line 342 of file whci-hc.h.

#define WUSBCMD_PERIODIC_QSET_RM   (1 << 11)

Definition at line 334 of file whci-hc.h.

#define WUSBCMD_PERIODIC_SYNCED_DB   (1 << 6)

Definition at line 338 of file whci-hc.h.

#define WUSBCMD_PERIODIC_UPDATED   (1 << 4)

Definition at line 340 of file whci-hc.h.

#define WUSBCMD_RUN   (1 << 0)

Definition at line 344 of file whci-hc.h.

#define WUSBCMD_WHCRESET   (1 << 1)

Definition at line 343 of file whci-hc.h.

#define WUSBCMD_WUSBSI (   s)    ((s) << 8)

Definition at line 335 of file whci-hc.h.

#define WUSBCMD_WUSBSI_MASK   (0x7 << 8)

Definition at line 336 of file whci-hc.h.

#define WUSBDEVICEINFOADDR   0x38

Definition at line 390 of file whci-hc.h.

#define WUSBDIBUPDATED   0x70

Definition at line 412 of file whci-hc.h.

#define WUSBDNTSBUFADDR   0x30

Definition at line 389 of file whci-hc.h.

#define WUSBDNTSCTRL   0x64

Definition at line 403 of file whci-hc.h.

#define WUSBDNTSCTRL_ACTIVE   (1 << 31)

Definition at line 404 of file whci-hc.h.

#define WUSBDNTSCTRL_INTERVAL (   i)    ((i) << 8)

Definition at line 405 of file whci-hc.h.

#define WUSBDNTSCTRL_SLOTS (   s)    ((s) << 0)

Definition at line 406 of file whci-hc.h.

#define WUSBGENADDR   0x20

Definition at line 387 of file whci-hc.h.

#define WUSBGENCMDPARAMS   0x18

Definition at line 386 of file whci-hc.h.

#define WUSBGENCMDSTS   0x14

Definition at line 376 of file whci-hc.h.

#define WUSBGENCMDSTS_ACTIVE   (1 << 31)

Definition at line 377 of file whci-hc.h.

#define WUSBGENCMDSTS_CHAN_STOP   0x04

Definition at line 383 of file whci-hc.h.

#define WUSBGENCMDSTS_ERROR   (1 << 24)

Definition at line 378 of file whci-hc.h.

#define WUSBGENCMDSTS_IOC   (1 << 23)

Definition at line 379 of file whci-hc.h.

#define WUSBGENCMDSTS_MMCIE_ADD   0x01

Definition at line 380 of file whci-hc.h.

#define WUSBGENCMDSTS_MMCIE_RM   0x02

Definition at line 381 of file whci-hc.h.

#define WUSBGENCMDSTS_RWP_EN   0x05

Definition at line 384 of file whci-hc.h.

#define WUSBGENCMDSTS_SET_MAS   0x03

Definition at line 382 of file whci-hc.h.

#define WUSBINTR   0x10

Definition at line 363 of file whci-hc.h.

#define WUSBINTR_ALL   0x3ff

Definition at line 374 of file whci-hc.h.

#define WUSBINTR_ASYNC_SCHED_SYNCED   (1 << 4)

Definition at line 369 of file whci-hc.h.

#define WUSBINTR_BPST_ADJUSTMENT_CHANGED   (1 << 6)

Definition at line 367 of file whci-hc.h.

#define WUSBINTR_CHAN_TIME_ROLLOVER   (1 << 8)

Definition at line 365 of file whci-hc.h.

#define WUSBINTR_DNTS_INT   (1 << 2)

Definition at line 371 of file whci-hc.h.

#define WUSBINTR_DNTS_OVERFLOW   (1 << 7)

Definition at line 366 of file whci-hc.h.

#define WUSBINTR_ERR_INT   (1 << 1)

Definition at line 372 of file whci-hc.h.

#define WUSBINTR_GEN_CMD_DONE   (1 << 9)

Definition at line 364 of file whci-hc.h.

#define WUSBINTR_HOST_ERR   (1 << 5)

Definition at line 368 of file whci-hc.h.

#define WUSBINTR_INT   (1 << 0)

Definition at line 373 of file whci-hc.h.

#define WUSBINTR_PERIODIC_SCHED_SYNCED   (1 << 3)

Definition at line 370 of file whci-hc.h.

#define WUSBMASINDEX   0x60

Definition at line 401 of file whci-hc.h.

#define WUSBPERIODICLISTBASE   0x58

Definition at line 400 of file whci-hc.h.

#define WUSBSECKEY   0x48

Definition at line 399 of file whci-hc.h.

#define WUSBSETSECKEYCMD   0x40

Definition at line 392 of file whci-hc.h.

#define WUSBSETSECKEYCMD_ERASE   (1 << 30)

Definition at line 394 of file whci-hc.h.

#define WUSBSETSECKEYCMD_GTK   (1 << 8)

Definition at line 395 of file whci-hc.h.

#define WUSBSETSECKEYCMD_IDX (   i)    ((i) << 0)

Definition at line 396 of file whci-hc.h.

#define WUSBSETSECKEYCMD_SET   (1 << 31)

Definition at line 393 of file whci-hc.h.

#define WUSBSTS   0x0c

Definition at line 346 of file whci-hc.h.

#define WUSBSTS_ASYNC_SCHED   (1 << 15)

Definition at line 347 of file whci-hc.h.

#define WUSBSTS_ASYNC_SCHED_SYNCED   (1 << 4)

Definition at line 356 of file whci-hc.h.

#define WUSBSTS_BPST_ADJUSTMENT_CHANGED   (1 << 6)

Definition at line 354 of file whci-hc.h.

#define WUSBSTS_CHAN_TIME_ROLLOVER   (1 << 8)

Definition at line 352 of file whci-hc.h.

#define WUSBSTS_DNTS_INT   (1 << 2)

Definition at line 358 of file whci-hc.h.

#define WUSBSTS_DNTS_OVERFLOW   (1 << 7)

Definition at line 353 of file whci-hc.h.

#define WUSBSTS_DNTS_SCHED   (1 << 13)

Definition at line 349 of file whci-hc.h.

#define WUSBSTS_ERR_INT   (1 << 1)

Definition at line 359 of file whci-hc.h.

#define WUSBSTS_GEN_CMD_DONE   (1 << 9)

Definition at line 351 of file whci-hc.h.

#define WUSBSTS_HCHALTED   (1 << 12)

Definition at line 350 of file whci-hc.h.

#define WUSBSTS_HOST_ERR   (1 << 5)

Definition at line 355 of file whci-hc.h.

#define WUSBSTS_INT   (1 << 0)

Definition at line 360 of file whci-hc.h.

#define WUSBSTS_INT_MASK   0x3ff

Definition at line 361 of file whci-hc.h.

#define WUSBSTS_PERIODIC_SCHED   (1 << 14)

Definition at line 348 of file whci-hc.h.

#define WUSBSTS_PERIODIC_SCHED_SYNCED   (1 << 3)

Definition at line 357 of file whci-hc.h.

#define WUSBTIME   0x68

Definition at line 408 of file whci-hc.h.

#define WUSBTIME_CHANNEL_TIME_MASK   0x00ffffff

Definition at line 409 of file whci-hc.h.

#define WUSBTKID   0x44

Definition at line 398 of file whci-hc.h.

Function Documentation

struct whc_qtd __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

__le32 addr_sec_info

Definition at line 287 of file whci-hc.h.

__le32 availability_info[8]

Definition at line 286 of file whci-hc.h.

__le64 buf_ptr

Definition at line 107 of file whci-hc.h.

__le32 cur_window

Definition at line 153 of file whci-hc.h.

__u8 dn_data[56]

Definition at line 312 of file whci-hc.h.

__le16 err_count

Definition at line 152 of file whci-hc.h.

__u8 idx

Definition at line 128 of file whci-hc.h.

__le32 info1

Definition at line 148 of file whci-hc.h.

__le32 info2

Definition at line 149 of file whci-hc.h.

__le32 info3

Definition at line 150 of file whci-hc.h.

Definition at line 157 of file whci-hc.h.

__le16 len

Definition at line 127 of file whci-hc.h.

Definition at line 147 of file whci-hc.h.

__u8 msg_size

Definition at line 307 of file whci-hc.h.

__u8 num_segments

Definition at line 88 of file whci-hc.h.

Definition at line 130 of file whci-hc.h.

__le32 options

Definition at line 56 of file whci-hc.h.

union { ... } overlay
__le64 page_list_ptr

Definition at line 57 of file whci-hc.h.

__le16 presentation_time

Definition at line 87 of file whci-hc.h.

Definition at line 156 of file whci-hc.h.

__le32 reserved[7]

Definition at line 288 of file whci-hc.h.

__u8 reserved1

Definition at line 308 of file whci-hc.h.

Definition at line 154 of file whci-hc.h.

__le64 seg_list_ptr

Definition at line 92 of file whci-hc.h.

__u8 setup[8]

Definition at line 58 of file whci-hc.h.

__u8 src_addr

Definition at line 309 of file whci-hc.h.

Definition at line 55 of file whci-hc.h.

__le32 tkid

Definition at line 311 of file whci-hc.h.