blob: fb2417c01ebb10d6f5a8fb6d0b2d5f8a4e6411d3 [file] [log] [blame]
#ifndef _UTIL_H_
#define _UTIL_H_
#define UTIL_DMEM_BASE_ADDR 0x00000000
#define UTIL_DMEM_SIZE 0x00002000
#define UTIL_DMEM_END (UTIL_DMEM_BASE_ADDR + UTIL_DMEM_SIZE)
#define IS_DMEM(addr, len) (((unsigned long)(addr) >= UTIL_DMEM_BASE_ADDR) && (((unsigned long)(addr) + (len)) <= UTIL_DMEM_END))
#define CBUS_BASE_ADDR 0xc0000000
#define UTIL_APB_BASE_ADDR 0xc1000000
#include "cbus.h"
#define GPT_BASE_ADDR (UTIL_APB_BASE_ADDR + 0x00000)
#define UART_BASE_ADDR (UTIL_APB_BASE_ADDR + 0x10000)
#define EAPE_BASE_ADDR (UTIL_APB_BASE_ADDR + 0x20000)
#define INQ_BASE_ADDR (UTIL_APB_BASE_ADDR + 0x30000)
#define EFET1_BASE_ADDR (UTIL_APB_BASE_ADDR + 0x40000)
#define EFET2_BASE_ADDR (UTIL_APB_BASE_ADDR + 0x50000)
#define EFET3_BASE_ADDR (UTIL_APB_BASE_ADDR + 0x60000)
#include "gpt.h"
#include "uart.h"
#include "util/eape.h"
#include "util/inq.h"
#include "util/efet.h"
#endif /* _UTIL_H_ */