mailbox.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #define MAILBOX_BASE 0xFE00B880
  2. #define MPI_REQUEST 0x00000000
  3. #define MPI_RESPONSE_OK 0x80000000
  4. #define MPI_RESPONSE_ERR 0x80000001
  5. #define POS_OVERALL_LENGTH 0
  6. #define POS_RV 1
  7. #define POS_TAG 2
  8. #define POS_TAG_ID 0
  9. #define POS_TAG_BUFLEN 1
  10. #define POS_TAG_DATALEN 2
  11. #define POS_TAG_DATA 3
  12. #define MB_HEADER_LENGTH 2
  13. #define TAG_HEADER_LENGTH 3
  14. /* to be extended */
  15. #define MPI_TAG_GET_FIRMWARE 0x00000001
  16. #define MPI_TAG_GET_BOARD_MODEL 0x00010001
  17. #define MPI_TAG_GET_BOARD_REVISION 0x00010002
  18. #define MPI_TAG_GET_MAC_ADDRESS 0x00010003
  19. #define MPI_TAG_GET_BOARD_SERIAL 0x00010004
  20. #define MPI_TAG_GET_ARM_MEMORY 0x00010005
  21. #define MPI_TAG_GET_VC_MEMORY 0x00010006
  22. #define MPI_TAG_GET_CLOCKS 0x00010007
  23. #define MPI_TAG_GET_COMMANDLINE 0x00050001
  24. #define MPI_TAG_GET_DMA_CHANNELS 0x00060001
  25. #define MPI_TAG_GET_POWER_STATE 0x00020001
  26. #define MPI_TAG_SET_POWER_STATE 0x00028001
  27. #define MPI_TAG_GET_TIMING 0x00020002
  28. #define MPI_TAG_GET_FIRMWARE 0x00000001
  29. #define MPI_TAG_GET_CLOCK_STATE 0x00030001
  30. #define MPI_TAG_SET_CLOCK_STATE 0x00038001