00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef BIPCCODES_H
00013 #define BIPCCODES_H
00014
00015
00016
00017
00018
00019
00020
00021 #define IPC_COMMAND(x) (x & 0xffffff00)
00022 #define IPC_ARG(x) (x & 0x000000ff)
00023
00024 #define IPC_GET 0x80
00025
00026 #define IPC_WIFI_INIT 0x12345600
00027 #define IPC_WIFI_SYNC 0x87654300
00028
00029 #define IPC_BACKLIGHT 0xbadeaf00
00030 #define IPC_BACKLIGHT_TOP 0x1
00031 #define IPC_BACKLIGHT_BOTTOM 0x2
00032
00033 #define IPC_BRIGHTNESS 0xbabefa00
00034 #define IPC_BRIGHTNESS_0 0x0
00035 #define IPC_BRIGHTNESS_1 0x1
00036 #define IPC_BRIGHTNESS_2 0x2
00037 #define IPC_BRIGHTNESS_3 0x3
00038
00039 #define IPC_POWEROFF 0xdeadba00
00040
00041 #define IPC_OK 0x80000000
00042 #define IPC_ERROR 0x00000000
00043
00044 bool readFifo(u32* val);
00045
00046 #endif