maple.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef __ASM_MAPLE_H
  2. #define __ASM_MAPLE_H
  3. #define MAPLE_PORTS 4
  4. #define MAPLE_PNP_INTERVAL HZ
  5. #define MAPLE_MAXPACKETS 8
  6. #define MAPLE_DMA_ORDER 14
  7. #define MAPLE_DMA_SIZE (1 << MAPLE_DMA_ORDER)
  8. #define MAPLE_DMA_PAGES ((MAPLE_DMA_ORDER > PAGE_SHIFT) ? \
  9. MAPLE_DMA_ORDER - PAGE_SHIFT : 0)
  10. /* Maple Bus registers */
  11. #define MAPLE_BASE 0xa05f6c00
  12. #define MAPLE_DMAADDR (MAPLE_BASE+0x04)
  13. #define MAPLE_TRIGTYPE (MAPLE_BASE+0x10)
  14. #define MAPLE_ENABLE (MAPLE_BASE+0x14)
  15. #define MAPLE_STATE (MAPLE_BASE+0x18)
  16. #define MAPLE_SPEED (MAPLE_BASE+0x80)
  17. #define MAPLE_RESET (MAPLE_BASE+0x8c)
  18. #define MAPLE_MAGIC 0x6155404f
  19. #define MAPLE_2MBPS 0
  20. #define MAPLE_TIMEOUT(n) ((n)<<15)
  21. /* Function codes */
  22. #define MAPLE_FUNC_CONTROLLER 0x001
  23. #define MAPLE_FUNC_MEMCARD 0x002
  24. #define MAPLE_FUNC_LCD 0x004
  25. #define MAPLE_FUNC_CLOCK 0x008
  26. #define MAPLE_FUNC_MICROPHONE 0x010
  27. #define MAPLE_FUNC_ARGUN 0x020
  28. #define MAPLE_FUNC_KEYBOARD 0x040
  29. #define MAPLE_FUNC_LIGHTGUN 0x080
  30. #define MAPLE_FUNC_PURUPURU 0x100
  31. #define MAPLE_FUNC_MOUSE 0x200
  32. #endif /* __ASM_MAPLE_H */