various io files

This commit is contained in:
angie
2023-09-03 18:03:11 -03:00
parent bc35674ed3
commit f8bb3c248b
24 changed files with 109 additions and 80 deletions
+6
View File
@@ -93,6 +93,12 @@ typedef struct OSDevMgr {
#define OS_MESG_PRI_NORMAL 0
#define OS_MESG_PRI_HIGH 1
/*
* PI/EPI
*/
#define PI_DOMAIN1 0
#define PI_DOMAIN2 1
extern OSPiHandle* __osPiTable;
+6
View File
@@ -115,6 +115,12 @@
#define CHNL_ERR_MASK 0xC0 /* Bit 6-7: channel errors */
#define PI_DOM1_ADDR1 0x06000000 /* to 0x07FFFFFF */
#define PI_DOM1_ADDR2 0x10000000 /* to 0x1FBFFFFF */
#define PI_DOM1_ADDR3 0x1FD00000 /* to 0x7FFFFFFF */
#define PI_DOM2_ADDR1 0x05000000 /* to 0x05FFFFFF */
#define PI_DOM2_ADDR2 0x08000000 /* to 0x0FFFFFFF */
#define IO_READ(addr) (*(vu32*)PHYS_TO_K1(addr))
#define IO_WRITE(addr,data) (*(vu32*)PHYS_TO_K1(addr)=(u32)(data))