comparison include/mailbox.h @ 0:ed10291ff195

first commit
author mir3636
date Sun, 06 Jan 2019 19:27:03 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:ed10291ff195
1 #define MAILBOX_BASE (MMIO_VA+0x00B880)
2
3 #define MPI_REQUEST 0x00000000
4 #define MPI_RESPONSE_OK 0x80000000
5 #define MPI_RESPONSE_ERR 0x80000001
6
7 #define POS_OVERALL_LENGTH 0
8 #define POS_RV 1
9 #define POS_TAG 2
10
11 #define POS_TAG_ID 0
12 #define POS_TAG_BUFLEN 1
13 #define POS_TAG_DATALEN 2
14 #define POS_TAG_DATA 3
15
16
17 #define MB_HEADER_LENGTH 2
18 #define TAG_HEADER_LENGTH 3
19
20 /* to be extended */
21 #define MPI_TAG_GET_FIRMWARE 0x00000001
22 #define MPI_TAG_GET_BOARD_MODEL 0x00010001
23 #define MPI_TAG_GET_BOARD_REVISION 0x00010002
24 #define MPI_TAG_GET_MAC_ADDRESS 0x00010003
25 #define MPI_TAG_GET_BOARD_SERIAL 0x00010004
26 #define MPI_TAG_GET_ARM_MEMORY 0x00010005
27 #define MPI_TAG_GET_VC_MEMORY 0x00010006
28 #define MPI_TAG_GET_CLOCKS 0x00010007
29 #define MPI_TAG_GET_COMMANDLINE 0x00050001
30 #define MPI_TAG_GET_DMA_CHANNELS 0x00060001
31 #define MPI_TAG_GET_POWER_STATE 0x00020001
32 #define MPI_TAG_SET_POWER_STATE 0x00028001
33 #define MPI_TAG_GET_TIMING 0x00020002
34 #define MPI_TAG_GET_FIRMWARE 0x00000001
35 #define MPI_TAG_GET_CLOCK_STATE 0x00030001
36 #define MPI_TAG_SET_CLOCK_STATE 0x00038001
37
38