From 3d61ed89f19ec50689aa5d374e5fa5724eeb57c2 Mon Sep 17 00:00:00 2001 From: ariahiro64 Date: Tue, 17 Oct 2023 09:10:17 -0400 Subject: [PATCH] use libdragon io --- src/flashcart/ed64/ed64_ll.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/flashcart/ed64/ed64_ll.h b/src/flashcart/ed64/ed64_ll.h index 42156faf..676cd78e 100644 --- a/src/flashcart/ed64/ed64_ll.h +++ b/src/flashcart/ed64/ed64_ll.h @@ -14,9 +14,7 @@ // FIXME: redefined because its in a .c instead of a .h #define PI_BASE_REG 0x04600000 -#define IO_READ(addr) (*(volatile uint32_t *)PHYS_TO_K1(addr)) -#define IO_WRITE(addr,data) \ - (*(volatile uint32_t *)PHYS_TO_K1(addr) = (uint32_t)(data)) +/////////////////////////////////////////////////////// #define PIF_RAM_START 0x1FC007C0 #define PI_STATUS_ERROR 0x04 @@ -38,6 +36,7 @@ #define PI_BSD_DOM2_PWD_REG (PI_BASE_REG+0x28) #define PI_BSD_DOM2_PGS_REG (PI_BASE_REG+0x2C) #define PI_BSD_DOM2_RLS_REG (PI_BASE_REG+0x30) +/////////////////////////////////////////////////////// #define PHYS_TO_K0(x) ((unsigned long)(x)|0x80000000) /* physical to kseg0 */ #define K0_TO_PHYS(x) ((unsigned long)(x)&0x1FFFFFFF) /* kseg0 to physical */