Modify device virtual address base address

This commit is contained in:
songyanguang 2024-11-15 16:50:52 +08:00
parent d7b78ecd2a
commit f339d35b16
1 changed files with 5 additions and 3 deletions

View File

@ -66,9 +66,11 @@ extern "C" {
*/ */
#define USB3_DWC3_ADDR_GAP 0x01000 #define USB3_DWC3_ADDR_GAP 0x01000
#define USB3_VIRADDR_BASE 0x0000002000000000ULL /* Deivce memory layout */
#define USB3_0_VIRADDR_BASE USB3_VIRADDR_BASE #define DEV_PHYMEM_BASE (0x00000000F0000000ULL)
#define USB3_1_VIRADDR_BASE USB3_VIRADDR_BASE + USB3_ADDR_OFFSET_UPPER_BOUND + USB3_DWC3_ADDR_GAP #define DEV_VRTMEM_BASE (0x00000020F0000000ULL)
#define USB3_0_VIRADDR_BASE (DEV_VRTMEM_BASE - DEV_PHYMEM_BASE + USB3_0_BASE_ADDR)
#define USB3_1_VIRADDR_BASE (DEV_VRTMEM_BASE - DEV_PHYMEM_BASE + USB3_1_BASE_ADDR)
#define USB3_0_INTERRUPT_NO 201 #define USB3_0_INTERRUPT_NO 201
#define USB3_1_INTERRUPT_NO 202 #define USB3_1_INTERRUPT_NO 202