From a8ac5c651fa0cdfe9cfc37a235cc0f5be8fd0dd2 Mon Sep 17 00:00:00 2001 From: hexkyz Date: Fri, 31 Aug 2018 22:38:46 +0000 Subject: [PATCH] exosphere: Add SYSCTR0 register definitions. --- exosphere/src/sysctr0.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/exosphere/src/sysctr0.h b/exosphere/src/sysctr0.h index 9c887c48c..c29a956ea 100644 --- a/exosphere/src/sysctr0.h +++ b/exosphere/src/sysctr0.h @@ -9,9 +9,25 @@ #define SYSCTR0_BASE (MMIO_GET_DEVICE_ADDRESS(MMIO_DEVID_SYSCTR0)) - #define MAKE_SYSCTR0_REG(n) MAKE_REG32(SYSCTR0_BASE + n) - +#define SYSCTR0_CNTCR_0 MAKE_SYSCTR0_REG(0x00) +#define SYSCTR0_CNTSR_0 MAKE_SYSCTR0_REG(0x04) +#define SYSCTR0_CNTCV0_0 MAKE_SYSCTR0_REG(0x08) +#define SYSCTR0_CNTCV1_0 MAKE_SYSCTR0_REG(0x0C) +#define SYSCTR0_CNTFID0_0 MAKE_SYSCTR0_REG(0x20) +#define SYSCTR0_CNTFID1_0 MAKE_SYSCTR0_REG(0x24) +#define SYSCTR0_COUNTERID4_0 MAKE_SYSCTR0_REG(0xFD0) +#define SYSCTR0_COUNTERID5_0 MAKE_SYSCTR0_REG(0xFD4) +#define SYSCTR0_COUNTERID6_0 MAKE_SYSCTR0_REG(0xFD8) +#define SYSCTR0_COUNTERID7_0 MAKE_SYSCTR0_REG(0xFDC) +#define SYSCTR0_COUNTERID0_0 MAKE_SYSCTR0_REG(0xFE0) +#define SYSCTR0_COUNTERID1_0 MAKE_SYSCTR0_REG(0xFE4) +#define SYSCTR0_COUNTERID2_0 MAKE_SYSCTR0_REG(0xFE8) +#define SYSCTR0_COUNTERID3_0 MAKE_SYSCTR0_REG(0xFEC) +#define SYSCTR0_COUNTERID8_0 MAKE_SYSCTR0_REG(0xFF0) +#define SYSCTR0_COUNTERID9_0 MAKE_SYSCTR0_REG(0xFF4) +#define SYSCTR0_COUNTERID10_0 MAKE_SYSCTR0_REG(0xFF8) +#define SYSCTR0_COUNTERID11_0 MAKE_SYSCTR0_REG(0xFFC) #endif