summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r--payloads/libpayload/include/usb/dwc2_registers.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/payloads/libpayload/include/usb/dwc2_registers.h b/payloads/libpayload/include/usb/dwc2_registers.h
index b6ae2ed7ad..0e46985d4b 100644
--- a/payloads/libpayload/include/usb/dwc2_registers.h
+++ b/payloads/libpayload/include/usb/dwc2_registers.h
@@ -364,10 +364,10 @@ typedef union {
uint32_t d32;
/* register bits */
struct {
- unsigned nptxfstaddr:16;
- unsigned nptxfdep:16;
+ unsigned txfstaddr:16;
+ unsigned txfdep:16;
};
-} gnptxfsiz_t;
+} gtxfsiz_t;
/**
* This union represents the bit fields of the Core Receive FIFO Size
@@ -512,6 +512,23 @@ typedef union {
} hcfg_t;
/**
+ * This union represents the bit fields in the Host Frame Number/Frame Time
+ * Remaining Register
+ */
+typedef union {
+ /* raw register data */
+ uint32_t d32;
+
+ /* register bits */
+ struct {
+ /** Frame Number */
+ unsigned frnum:16;
+ /** Frame Time Remaining */
+ unsigned frrem:16;
+ };
+} hfnum_t;
+
+/**
* This union represents the bit fields in the Host Port Control and status
* Register.
*/