mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-24 12:19:21 +01:00
initial stab at some IPC defs; please expand or fix as appropriate
This commit is contained in:
parent
c4465b02b8
commit
513926130a
21
ipc.h
21
ipc.h
@ -7,6 +7,10 @@
|
|||||||
#define IPC_SLOW 0x00
|
#define IPC_SLOW 0x00
|
||||||
|
|
||||||
#define IPC_DEV_SYS 0x00
|
#define IPC_DEV_SYS 0x00
|
||||||
|
#define IPC_DEV_NAND 0x01
|
||||||
|
#define IPC_DEV_SD 0x02
|
||||||
|
#define IPC_DEV_KEYS 0x03
|
||||||
|
#define IPC_DEV_MISC 0x10
|
||||||
|
|
||||||
#define IPC_SYS_PING 0x0000
|
#define IPC_SYS_PING 0x0000
|
||||||
#define IPC_SYS_JUMP 0x0001
|
#define IPC_SYS_JUMP 0x0001
|
||||||
@ -26,6 +30,23 @@
|
|||||||
#define IPC_SYS_MASK16 0x010d
|
#define IPC_SYS_MASK16 0x010d
|
||||||
#define IPC_SYS_MASK8 0x010e
|
#define IPC_SYS_MASK8 0x010e
|
||||||
|
|
||||||
|
#define IPC_NAND_RESET 0x0000
|
||||||
|
#define IPC_NAND_GETID 0x0001
|
||||||
|
#define IPC_NAND_READ 0x0002
|
||||||
|
#define IPC_NAND_WRITE 0x0003
|
||||||
|
#define IPC_NAND_ERASE 0x0004
|
||||||
|
|
||||||
|
#define IPC_SD_RESET 0x0000
|
||||||
|
#define IPC_SD_GETSTATUS 0x0001
|
||||||
|
#define IPC_SD_GETSIZE 0x0002
|
||||||
|
#define IPC_SD_READ 0x0003
|
||||||
|
#define IPC_SD_WRITE 0x0004
|
||||||
|
|
||||||
|
#define IPC_KEYS_GETOTP 0x0000
|
||||||
|
#define IPC_KEYS_GETEEP 0x0001
|
||||||
|
|
||||||
|
#define IPC_MISC_BACKUP_DOBLOCK 0x0001
|
||||||
|
|
||||||
#define IPC_CODE (f,d,r) (((f)<<24)|((d)<<16)|(r))
|
#define IPC_CODE (f,d,r) (((f)<<24)|((d)<<16)|(r))
|
||||||
|
|
||||||
#define IPC_IN_SIZE 32
|
#define IPC_IN_SIZE 32
|
||||||
|
Loading…
Reference in New Issue
Block a user