ls2k1000.h 742 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _LS2K1000_H__
  2. #define _LS2K1000_H__
  3. #include <mips.h>
  4. #include "interrupt.h"
  5. #define APB_BASE CKSEG1ADDR(0xbfe00000)
  6. #define UART0_BASE_ADDR 0xbfe00000
  7. #define UART0_OFF 0x0
  8. #define UART0_BASE CKSEG1ADDR(UART0_BASE_ADDR + UART0_OFF)
  9. #define UARTx_BASE(x) ((APB_BASE | (0x0 << 12) | (x << 8)))
  10. #define LIOINTC0_BASE CKSEG1ADDR(0x1fe11400)
  11. #define CORE0_INTISR0 CKSEG1ADDR(0x1fe11040)
  12. #define LIOINTC1_BASE CKSEG1ADDR(0x1fe11440)
  13. #define CORE0_INTISR1 CKSEG1ADDR(0x1fe11048)
  14. #define GPIO_BASE 0xFFFFFFFFBFE10500
  15. #define PLL_SYS_BASE 0xFFFFFFFFBFE10480
  16. #define RTC_BASE 0xFFFFFFFFBFE07820
  17. #define GEN_CONFIG0_REG 0xFFFFFFFFBfe10420
  18. void rt_hw_timer_handler(void);
  19. void rt_hw_uart_init(void);
  20. #endif