37#ifndef __USBHS_REGISTERS_H__
38#define __USBHS_REGISTERS_H__
47#define USBHS_REG_FADDR 0x000
48#define USBHS_REG_POWER 0x001
49#define USBHS_REG_INTRTX 0x002
50#define USBHS_REG_INTRRX 0x004
51#define USBHS_REG_INTRTXE 0x006
52#define USBHS_REG_INTRRXE 0x008
53#define USBHS_REG_INTRUSB 0x00A
54#define USBHS_REG_INTRUSBE 0x00B
55#define USBHS_REG_FRAME 0x00C
56#define USBHS_REG_INDEX 0x00E
57#define USBHS_REG_TESTMODE 0x00F
66#define USBHS_REG_EP_TXMAXP 0x000
67#define USBHS_REG_EP_CSR0L 0x002
68#define USBHS_REG_EP_CSR0H 0x003
69#define USBHS_REG_EP_TXCSRL 0x002
70#define USBHS_REG_EP_TXCSRH 0x003
71#define USBHS_REG_EP_RXMAXP 0x004
72#define USBHS_REG_EP_RXCSRL 0x006
73#define USBHS_REG_EP_RXCSRH 0x007
74#define USBHS_REG_EP_COUNT0 0x008
75#define USBHS_REG_EP_RXCOUNT 0x008
76#define USBHS_REG_EP_TYPE0 0x01A
77#define USBHS_REG_EP_TXTYPE 0x01A
78#define USBHS_REG_EP_NAKLIMIT0 0x01B
79#define USBHS_REG_EP_TXINTERVAL 0x01B
80#define USBHS_REG_EP_RXTYPE 0x01C
81#define USBHS_REG_EP_RXINTERVAL 0x01D
82#define USBHS_REG_EP_CONFIGDATA 0x01F
83#define USBHS_REG_EP_FIFOSIZE 0x01F
85#define USBHS_HOST_EP0_SETUPKT_SET 0x8
86#define USBHS_HOST_EP0_TXPKTRDY_SET 0x2
87#define USBHS_SOFT_RST_NRST_SET 0x1
88#define USBHS_SOFT_RST_NRSTX_SET 0x2
89#define USBHS_EP0_DEVICE_SERVICED_RXPKTRDY 0x40
90#define USBHS_EP0_DEVICE_DATAEND 0x08
91#define USBHS_EP0_DEVICE_TXPKTRDY 0x02
92#define USBHS_EP0_HOST_STATUS_STAGE_START 0x40
93#define USBHS_EP0_HOST_REQPKT 0x20
94#define USBHS_EP0_HOST_TXPKTRDY 0x02
95#define USBHS_EP0_HOST_RXPKTRDY 0x01
96#define USBHS_EP_DEVICE_TX_SENT_STALL 0x20
97#define USBHS_EP_DEVICE_TX_SEND_STALL 0x10
98#define USBHS_EP_DEVICE_RX_SENT_STALL 0x40
99#define USBHS_EP_DEVICE_RX_SEND_STALL 0x20
104 struct __attribute__((packed))
117 struct __attribute__((packed))
138 struct __attribute__((packed))
160 struct __attribute__((packed))
182 struct __attribute__((packed))
191 unsigned VBUSERRIE:1;
203 struct __attribute__((packed))
218 struct __attribute__((packed))
233 struct __attribute__((packed))
254 struct __attribute__((packed))
269 struct __attribute__((packed))
284 struct __attribute__((packed))
304 struct __attribute__((packed))
308 unsigned SENTSTALL:1;
311 unsigned SENDSTALL:1;
313 unsigned SVSSETEND:1;
325 struct __attribute__((packed))
346 struct __attribute__((packed))
352 unsigned SENDSTALL:1;
353 unsigned SENTSTALL:1;
367 struct __attribute__((packed))
388 struct __attribute__((packed))
393 unsigned DMAREQENL:1;
408 struct __attribute__((packed))
429 struct __attribute__((packed))
444 struct __attribute__((packed))
462 struct __attribute__((packed))
477 struct __attribute__((packed))
484 unsigned SENDSTALL:1;
485 unsigned SENTSTALL:1;
498 struct __attribute__((packed))
519 struct __attribute__((packed))
523 unsigned DMAREQMODE:1;
539 struct __attribute__((packed))
560 struct __attribute__((packed))
575 struct __attribute__((packed))
591 struct __attribute__((packed))
623 struct __attribute__((packed))
633typedef struct __attribute__((packed))
642typedef struct __attribute__((packed))
653 struct __attribute__((packed))
655 unsigned TXFIFOAD:13;
665 struct __attribute__((packed))
667 unsigned RXFIFOAD:13;
677 struct __attribute__((packed))
690 struct __attribute__((packed))
702 struct __attribute__((packed))
715 struct __attribute__((packed))
717 unsigned TXHUBADDR:7;
728 struct __attribute__((packed))
730 unsigned RXHUBADDR:7;
741 struct __attribute__((packed))
755 struct __attribute__((packed))
768 struct __attribute__((packed))
785typedef struct __attribute__((packed))
848 volatile uint8_t NAKLIMIT0;
857 volatile uint8_t CONFIGDATA;
858 volatile uint8_t FIFOSIZE;
864typedef struct __attribute__((packed))
878typedef struct __attribute__((packed))
881 volatile uint32_t DMAADDR;
882 volatile uint32_t DMACOUNT;
883 volatile uint32_t pad;
887typedef struct __attribute__((aligned(4),packed))
891 volatile uint16_t INTRTX;
892 volatile uint16_t INTRRX;
895 volatile uint8_t INTRUSB;
901 volatile uint32_t FIFO[16];
903 volatile uint8_t MISC;
910 volatile uint32_t VCONTROL;
911 volatile uint16_t HWVERS;
912 volatile uint8_t padding1[10];
913 volatile uint8_t EPINFO;
914 volatile uint8_t RAMINFO;
915 volatile uint8_t LINKINFO;
916 volatile uint8_t VPLEN;
917 volatile uint8_t HS_EOF1;
918 volatile uint8_t FS_EOF1;
919 volatile uint8_t LS_EOF1;
925 volatile uint32_t DMA_INTR;
927 volatile uint32_t RQPKTXOUNT[16];
Definition usbhs_registers.h:879
Definition usbhs_registers.h:786
Definition usbhs_registers.h:643
Definition usbhs_registers.h:613
Definition usbhs_registers.h:865
Definition usbhs_registers.h:634
Definition usbhs_registers.h:606
Definition usbhs_registers.h:888
Definition usbhs_registers.h:253
Definition usbhs_registers.h:428
Definition usbhs_registers.h:443
Definition usbhs_registers.h:303
Definition usbhs_registers.h:324
Definition usbhs_registers.h:283
Definition usbhs_registers.h:767
Definition usbhs_registers.h:103
Definition usbhs_registers.h:202
Definition usbhs_registers.h:217
Definition usbhs_registers.h:159
Definition usbhs_registers.h:137
Definition usbhs_registers.h:181
Definition usbhs_registers.h:116
Definition usbhs_registers.h:559
Definition usbhs_registers.h:518
Definition usbhs_registers.h:538
Definition usbhs_registers.h:476
Definition usbhs_registers.h:497
Definition usbhs_registers.h:664
Definition usbhs_registers.h:701
Definition usbhs_registers.h:727
Definition usbhs_registers.h:754
Definition usbhs_registers.h:461
Definition usbhs_registers.h:590
Definition usbhs_registers.h:676
Definition usbhs_registers.h:232
Definition usbhs_registers.h:387
Definition usbhs_registers.h:407
Definition usbhs_registers.h:345
Definition usbhs_registers.h:366
Definition usbhs_registers.h:652
Definition usbhs_registers.h:689
Definition usbhs_registers.h:714
Definition usbhs_registers.h:740
Definition usbhs_registers.h:622
Definition usbhs_registers.h:574
Definition usbhs_registers.h:268