/*
	sh7206.h フルヘッダ
	
	Copyright　Beyond the river Inc.
	2006.11.04 written by H.M , Y.M
*/


/* ADｺﾝﾄｰﾙ */

#define ADCSR_1    (*(volatile unsigned short *)0xfffe5822)
#define ADCR       (*(volatile unsigned short *)0xfffe5824)

/* DAﾃﾞｰﾀﾚｼﾞｽﾀ･ｺﾝﾄﾛｰﾙﾚｼﾞｽﾀ */

#define DADR0      (*(volatile unsigned char *)0xfffe6800)
#define DADR1      (*(volatile unsigned char *)0xfffe6801)
#define DACR       (*(volatile unsigned char *)0xfffe6802)

/* ﾎﾟｰﾄA */
#define PAIOR      (*(volatile unsigned long *)0xfffe3804)
#define PAIORH     (*(volatile unsigned short *)0xfffe3804)
#define PAIORL     (*(volatile unsigned short *)0xfffe3806)
#define PACRH3     (*(volatile unsigned short *)0xfffe380A)
#define PACRH2     (*(volatile unsigned short *)0xfffe380C)
#define PACRH1     (*(volatile unsigned short *)0xfffe380E)
#define PACRL4     (*(volatile unsigned short *)0xfffe3810)
#define PACRL3     (*(volatile unsigned short *)0xfffe3812)
#define PACRL2     (*(volatile unsigned short *)0xfffe3814)
#define PACRL1     (*(volatile unsigned short *)0xfffe3816)

/* ﾎﾟｰﾄB */
#define PBIOR      (*(volatile unsigned short *)0xfffe3886)
#define PBCR3      (*(volatile unsigned short *)0xfffe3892)
#define PBCR2      (*(volatile unsigned short *)0xfffe3894)
#define PBCR1      (*(volatile unsigned short *)0xfffe3896)

/* ﾎﾟｰﾄC */
#define PCIORL     (*(volatile unsigned short *)0xfffe3906)
#define PCCRL1     (*(volatile unsigned short *)0xfffe3916)

/* ﾎﾟｰﾄD */
#define PDIOR      (*(volatile unsigned long *)0xfffe3984)
#define PDIORH     (*(volatile unsigned short *)0xfffe3984)
#define PDIORL     (*(volatile unsigned short *)0xfffe3986)
#define PDCRH4     (*(volatile unsigned short *)0xfffe3988)
#define PDCRH3     (*(volatile unsigned short *)0xfffe398A)
#define PDCRH2     (*(volatile unsigned short *)0xfffe398C)
#define PDCRH1     (*(volatile unsigned short *)0xfffe398E)
#define PDCRL4     (*(volatile unsigned short *)0xfffe3990)
#define PDCRL3     (*(volatile unsigned short *)0xfffe3992)

/* ﾎﾟｰﾄE */
#define PEIOR      (*(volatile unsigned long *)0xfffe3A04)
#define PEIORH     (*(volatile unsigned short *)0xfffe3A04)
#define PEIORL     (*(volatile unsigned short *)0xfffe3A06)
#define PECRH1     (*(volatile unsigned short *)0xfffe3A0E)
#define PECRL4     (*(volatile unsigned short *)0xfffe3A10)
#define PECRL3     (*(volatile unsigned short *)0xfffe3A12)
#define PECRL2     (*(volatile unsigned short *)0xfffe3A14)
#define PECRL1     (*(volatile unsigned short *)0xfffe3A16)

/* IRQOUT 機能ｺﾝﾄｰﾛｰﾙ */
#define IFCR       (*(volatile unsigned short *)0xfffe3A22)

/* I/O ﾎﾟｰﾄA */
#define PADR       (*(volatile unsigned long *)0xfffe3800)
#define PADRH      (*(volatile unsigned short *)0xfffe3800)
#define PADRL      (*(volatile unsigned short *)0xfffe3802)
#define PAPR       (*(volatile unsigned long *)0xfffe381c)
#define PAPRH      (*(volatile unsigned short *)0xfffe381c)
#define PAPRL      (*(volatile unsigned short *)0xfffe381e)

/* I/O ﾎﾟｰﾄB */
#define PBDR       (*(volatile unsigned short *)0xfffe3882)
#define PBPR       (*(volatile unsigned short *)0xfffe389e)

/* I/O ﾎﾟｰﾄC */
#define PCDRL      (*(volatile unsigned short *)0xfffe3902)
#define PCPRL      (*(volatile unsigned short *)0xfffe391e)

/* I/O ﾎﾟｰﾄD */
#define PDDR       (*(volatile unsigned long *)0xfffe3980)
#define PDDRH      (*(volatile unsigned short *)0xfffe3980)
#define PDDRL      (*(volatile unsigned short *)0xfffe3982)
#define PDPR       (*(volatile unsigned long *)0xfffe399c)
#define PDPRH      (*(volatile unsigned short *)0xfffe399c)
#define PDPRL      (*(volatile unsigned short *)0xfffe399e)

/* I/O ﾎﾟｰﾄE */
#define PEDR       (*(volatile unsigned long *)0xfffe3a00)
#define PEDRH      (*(volatile unsigned short *)0xfffe3a00)
#define PEDRL      (*(volatile unsigned short *)0xfffe3a02)
#define PEPR       (*(volatile unsigned long *)0xfffe3a1c)
#define PEPRH      (*(volatile unsigned short *)0xfffe3a1c)
#define PEPRL      (*(volatile unsigned short *)0xfffe3a1e)

/* I/O ﾎﾟｰﾄF */
#define PFDR       (*(volatile unsigned short *)0xfffe3a82)

/* 低消費電力ﾓｰﾄﾞ */
#define STBCR      (*(volatile unsigned char *)0xfffe0014)
#define STBCR2     (*(volatile unsigned char *)0xfffe0018)
#define SYSCR1     (*(volatile unsigned char *)0xfffe0402)
#define SYSCR2     (*(volatile unsigned char *)0xfffe0404)
#define STBCR3     (*(volatile unsigned char *)0xfffe0408)
#define STBCR4     (*(volatile unsigned char *)0xfffe040c)

/* H.UDI */
#define SDIR       (*(volatile unsigned short *)0xfffe2000)

/* WDT */
#define WTCSR      (*(volatile unsigned short *)0xfffe0000)
#define WTCNT      (*(volatile unsigned short *)0xfffe0002)
#define WRCSR      (*(volatile unsigned short *)0xfffe0004)

/* SCIF */
#define SCSMR_0    (*(volatile unsigned short *)0xfffe8000)
#define SCBRR_0    (*(volatile unsigned char *)0xfffe8004)
#define SCSCR_0    (*(volatile unsigned short *)0xfffe8008)
#define SCFTDR_0   (*(volatile unsigned char *)0xfffe800c)
#define SCFSR_0    (*(volatile unsigned short *)0xfffe8010)
#define SCFRDR_0   (*(volatile unsigned char *)0xfffe8014)
#define SCFCR_0    (*(volatile unsigned short *)0xfffe8018)
#define SCFDR_0    (*(volatile unsigned short *)0xfffe801c)
#define SCSPTR_0   (*(volatile unsigned short *)0xfffe8020)
#define SCLSR_0    (*(volatile unsigned short *)0xfffe8024)

#define SCSMR_1    (*(volatile unsigned short *)0xfffe8800)
#define SCBRR_1    (*(volatile unsigned char *)0xfffe8804)
#define SCSCR_1    (*(volatile unsigned short *)0xfffe8808)
#define SCFTDR_1   (*(volatile unsigned char *)0xfffe880c)
#define SCFSR_1    (*(volatile unsigned short *)0xfffe8810)
#define SCFRDR_1   (*(volatile unsigned char *)0xfffe8814)
#define SCFCR_1    (*(volatile unsigned short *)0xfffe8818)
#define SCFDR_1    (*(volatile unsigned short *)0xfffe881c)
#define SCSPTR_1   (*(volatile unsigned short *)0xfffe8820)
#define SCLSR_1    (*(volatile unsigned short *)0xfffe8824)

#define SCSMR_2    (*(volatile unsigned short *)0xfffe9000)
#define SCBRR_2    (*(volatile unsigned char *)0xfffe9004)
#define SCSCR_2    (*(volatile unsigned short *)0xfffe9008)
#define SCFTDR_2   (*(volatile unsigned char *)0xfffe900c)
#define SCFSR_2    (*(volatile unsigned short *)0xfffe9010)
#define SCFRDR_2   (*(volatile unsigned char *)0xfffe9014)
#define SCFCR_2    (*(volatile unsigned short *)0xfffe9018)
#define SCFDR_2    (*(volatile unsigned short *)0xfffe901c)
#define SCSPTR_2   (*(volatile unsigned short *)0xfffe9020)
#define SCLSR_2    (*(volatile unsigned short *)0xfffe9024)

#define SCSMR_3    (*(volatile unsigned short *)0xfffe9800)
#define SCBRR_3    (*(volatile unsigned char *)0xfffe9804)
#define SCSCR_3    (*(volatile unsigned short *)0xfffe9808)
#define SCFTDR_3   (*(volatile unsigned char *)0xfffe980c)
#define SCFSR_3    (*(volatile unsigned short *)0xfffe9810)
#define SCFRDR_3   (*(volatile unsigned char *)0xfffe9814)
#define SCFCR_3    (*(volatile unsigned short *)0xfffe9818)
#define SCFDR_3    (*(volatile unsigned short *)0xfffe981c)
#define SCSPTR_3   (*(volatile unsigned short *)0xfffe9820)
#define SCLSR_3    (*(volatile unsigned short *)0xfffe9824)


/* IIC3 */

#define ICCR1      (*(volatile unsigned char *)0xfffee000)
#define ICCR2      (*(volatile unsigned char *)0xfffee001)
#define ICMR       (*(volatile unsigned char *)0xfffee002)
#define ICIER      (*(volatile unsigned char *)0xfffee003)
#define ICSR       (*(volatile unsigned char *)0xfffee004)
#define SAR        (*(volatile unsigned char *)0xfffee005)
#define ICDRT      (*(volatile unsigned char *)0xfffee006)
#define ICDRR      (*(volatile unsigned char *)0xfffee007)
#define NF2CYC     (*(volatile unsigned char *)0xfffee008)


/* ADC */

#define ADDRA_0    (*(volatile unsigned short *)0xfffe5800)
#define ADDRB_0    (*(volatile unsigned short *)0xfffe5802)
#define ADDRC_0    (*(volatile unsigned short *)0xfffe5804)
#define ADDRD_0    (*(volatile unsigned short *)0xfffe5806)
#define ADDRE_0    (*(volatile unsigned short *)0xfffe5808)
#define ADDRF_0    (*(volatile unsigned short *)0xfffe580a)
#define ADDRG_0    (*(volatile unsigned short *)0xfffe580c)
#define ADDRH_0    (*(volatile unsigned short *)0xfffe580e)

#define ADDRA_1    (*(volatile unsigned short *)0xfffe5810)
#define ADDRB_1    (*(volatile unsigned short *)0xfffe5812)
#define ADDRC_1    (*(volatile unsigned short *)0xfffe5814)
#define ADDRD_1    (*(volatile unsigned short *)0xfffe5816)
#define ADDRE_1    (*(volatile unsigned short *)0xfffe5818)
#define ADDRF_1    (*(volatile unsigned short *)0xfffe581a)
#define ADDRG_1    (*(volatile unsigned short *)0xfffe581c)
#define ADDRH_1    (*(volatile unsigned short *)0xfffe581e)

#define ADCSR_0    (*(volatile unsigned short *)0xfffe5820)


/* MTU2S */

#define TADCORA_4S  (*(volatile unsigned short *)0xfffe4a44)
#define TADCORB_4S  (*(volatile unsigned short *)0xfffe4a46)
#define TADCOBRA_4S (*(volatile unsigned short *)0xfffe4a48)
#define TADCOBRB_4S (*(volatile unsigned short *)0xfffe4a4a)

#define TCRU_5S     (*(volatile unsigned char *)0xfffe4884)
#define TCRV_5S     (*(volatile unsigned char *)0xfffe4894)
#define TCRW_5S     (*(volatile unsigned char *)0xfffe48a4)
#define TIORU_5S    (*(volatile unsigned char *)0xfffe4886)
#define TIORV_5S    (*(volatile unsigned char *)0xfffe4896)
#define TIORW_5S    (*(volatile unsigned char *)0xfffe48a6)
#define TIER_5S     (*(volatile unsigned char *)0xfffe48b2)
#define TSR_5S      (*(volatile unsigned char *)0xfffe48b0)
#define TSTR_5S     (*(volatile unsigned char *)0xfffe48b4)
#define TCNTU_5S    (*(volatile unsigned short *)0xfffe4880)
#define TCNTV_5S    (*(volatile unsigned short *)0xfffe4890)
#define TCNTW_5S    (*(volatile unsigned short *)0xfffe48a0)
#define TGRU_5S     (*(volatile unsigned short *)0xfffe4882)
#define TGRV_5S     (*(volatile unsigned short *)0xfffe4892)
#define TGRW_5S     (*(volatile unsigned short *)0xfffe48a2)

#define TCNTCMPCLRS (*(volatile unsigned char *)0xfffe48b6)
#define TSTRS       (*(volatile unsigned char *)0xfffe4a80)
#define TSYRS       (*(volatile unsigned char *)0xfffe4a81)
#define TRWERS      (*(volatile unsigned char *)0xfffe4a84)
#define TOERS       (*(volatile unsigned char *)0xfffe4a0a)
#define TOCR1S      (*(volatile unsigned char *)0xfffe4a0e)
#define TOCR2S      (*(volatile unsigned char *)0xfffe4a0f)
#define TGCRS       (*(volatile unsigned char *)0xfffe4a0d)
#define TCDRS       (*(volatile unsigned short *)0xfffe4a14)
#define TDDRS       (*(volatile unsigned short *)0xfffe4a16)
#define TCNTSS      (*(volatile unsigned short *)0xfffe4a20)
#define TCBRS       (*(volatile unsigned short *)0xfffe4a22)
#define TITCRS      (*(volatile unsigned char *)0xfffe4a30)
#define TITCNTS     (*(volatile unsigned char *)0xfffe4a31)
#define TBTERS      (*(volatile unsigned char *)0xfffe4a32)
#define TDERS       (*(volatile unsigned char *)0xfffe4a34)
#define TSYCRS      (*(volatile unsigned char *)0xfffe4a50)
#define TWCRS       (*(volatile unsigned char *)0xfffe4a60)
#define TOLBRS      (*(volatile unsigned char *)0xfffe4a36)


/* POE2 */

#define ICSR1       (*(volatile unsigned short *)0xfffe5000)
#define OCSR1       (*(volatile unsigned short *)0xfffe5002)
#define ICSR2       (*(volatile unsigned short *)0xfffe5004)
#define OCSR2       (*(volatile unsigned short *)0xfffe5006)
#define ICSR3       (*(volatile unsigned short *)0xfffe5008)
#define SPOER       (*(volatile unsigned char *)0xfffe500a)
#define POECR1      (*(volatile unsigned char *)0xfffe500b)
#define POECR2      (*(volatile unsigned short *)0xfffe500c)


/* CMT */

#define CMSTR       (*(volatile unsigned short *)0xfffec000)
#define CMCSR_0     (*(volatile unsigned short *)0xfffec002)
#define CMCNT_0     (*(volatile unsigned short *)0xfffec004)
#define CMCOR_0     (*(volatile unsigned short *)0xfffec006)

#define CMCSR_1     (*(volatile unsigned short *)0xfffec008)
#define CMCNT_1     (*(volatile unsigned short *)0xfffec00a)
#define CMCOR_1     (*(volatile unsigned short *)0xfffec00c)


/* MTU2 */

#define TADCOBRB_4  (*(volatile unsigned short *)0xfffe424a)

#define TCRU_5      (*(volatile unsigned char *)0xfffe4084)
#define TCRV_5      (*(volatile unsigned char *)0xfffe4094)
#define TCRW_5      (*(volatile unsigned char *)0xfffe40a4)
#define TIORU_5     (*(volatile unsigned char *)0xfffe4086)
#define TIORV_5     (*(volatile unsigned char *)0xfffe4096)
#define TIORW_5     (*(volatile unsigned char *)0xfffe40a6)
#define TIER_5      (*(volatile unsigned char *)0xfffe40b2)
#define TSR_5       (*(volatile unsigned char *)0xfffe40b0)
#define TSTR_5      (*(volatile unsigned char *)0xfffe40b4)
#define TCNTU_5     (*(volatile unsigned short *)0xfffe4080)
#define TCNTV_5     (*(volatile unsigned short *)0xfffe4090)
#define TCNTW_5     (*(volatile unsigned short *)0xfffe40a0)
#define TGRU_5      (*(volatile unsigned short *)0xfffe4082)
#define TGRV_5      (*(volatile unsigned short *)0xfffe4092)
#define TGRW_5      (*(volatile unsigned short *)0xfffe40a2)

#define TCNTCMPCLR  (*(volatile unsigned char *)0xfffe40b6)
#define TSTR        (*(volatile unsigned char *)0xfffe4280)
#define TSYR        (*(volatile unsigned char *)0xfffe4281)
#define TCSYSTR     (*(volatile unsigned char *)0xfffe4282)
#define TRWER       (*(volatile unsigned char *)0xfffe4284)
#define TOER        (*(volatile unsigned char *)0xfffe420a)
#define TOCR1       (*(volatile unsigned char *)0xfffe420e)
#define TOCR2       (*(volatile unsigned char *)0xfffe420f)
#define TGCR        (*(volatile unsigned char *)0xfffe420d)
#define TCDR        (*(volatile unsigned short *)0xfffe4214)
#define TDDR        (*(volatile unsigned short *)0xfffe4216)
#define TCNTS       (*(volatile unsigned short *)0xfffe4220)
#define TCBR        (*(volatile unsigned short *)0xfffe4222)
#define TITCR       (*(volatile unsigned char *)0xfffe4230)
#define TITCNT      (*(volatile unsigned char *)0xfffe4231)
#define TBTER       (*(volatile unsigned char *)0xfffe4232)
#define TDER        (*(volatile unsigned char *)0xfffe4234)
#define TSYCR       (*(volatile unsigned char *)0xfffe4250)
#define TWCR        (*(volatile unsigned char *)0xfffe4260)
#define TOLBR       (*(volatile unsigned char *)0xfffe4236)


/* MTU2S */

#define TCR_3S      (*(volatile unsigned char *)0xfffe4a00)
#define TMDR_3S     (*(volatile unsigned char *)0xfffe4a02)
#define TIOR_3S     (*(volatile unsigned short *)0xfffe4a04)
#define TIORH_3S    (*(volatile unsigned char *)0xfffe4a04)
#define TIORL_3S    (*(volatile unsigned char *)0xfffe4a05)
#define TIER_3S     (*(volatile unsigned char *)0xfffe4a08)
#define TSR_3S      (*(volatile unsigned char *)0xfffe4a2c)
#define TCNT_3S     (*(volatile unsigned short *)0xfffe4a10)
#define TGRA_3S     (*(volatile unsigned short *)0xfffe4a18)
#define TGRB_3S     (*(volatile unsigned short *)0xfffe4a1a)
#define TGRC_3S     (*(volatile unsigned short *)0xfffe4a24)
#define TGRD_3S     (*(volatile unsigned short *)0xfffe4a26)
#define TBTM_3S     (*(volatile unsigned char *)0xfffe4a38)

#define TCR_4S      (*(volatile unsigned char *)0xfffe4a01)
#define TMDR_4S     (*(volatile unsigned char *)0xfffe4a03)
#define TIOR_4S     (*(volatile unsigned short *)0xfffe4a06)
#define TIORH_4S    (*(volatile unsigned char *)0xfffe4a06)
#define TIORL_4S    (*(volatile unsigned char *)0xfffe4a07)
#define TIER_4S     (*(volatile unsigned char *)0xfffe4a09)
#define TSR_4S      (*(volatile unsigned char *)0xfffe4a2d)
#define TCNT_4S     (*(volatile unsigned short *)0xfffe4a12)
#define TGRA_4S     (*(volatile unsigned short *)0xfffe4a1c)
#define TGRB_4S     (*(volatile unsigned short *)0xfffe4a1e)
#define TGRC_4S     (*(volatile unsigned short *)0xfffe4a28)
#define TGRD_4S     (*(volatile unsigned short *)0xfffe4a2a)
#define TBTM_4S     (*(volatile unsigned char *)0xfffe4a39)

#define TADCRS      (*(volatile unsigned short *)0xfffe4a40)

/*
	SH7206.h フルレジスタ
	2006.11.04　Copyright　Beyond　the　river　Inc.
*/

#define TCR_0       (*(volatile unsigned char *)0xfffe4300)
#define TMDR_0      (*(volatile unsigned char *)0xfffe4301)
#define TIOR_0      (*(volatile unsigned short *)0xfffe4302)
#define TIORH_0     (*(volatile unsigned char *)0xfffe4302)
#define TIORL_0     (*(volatile unsigned char *)0xfffe4303)
#define TIER_0      (*(volatile unsigned char *)0xfffe4304)
#define TSR_0       (*(volatile unsigned char *)0xfffe4305)
#define TCNT_0      (*(volatile unsigned short *)0xfffe4306)
#define TGRA_0      (*(volatile unsigned short *)0xfffe4308)
#define TGRB_0      (*(volatile unsigned short *)0xfffe430a)
#define TGRC_0      (*(volatile unsigned short *)0xfffe430c)
#define TGRD_0      (*(volatile unsigned short *)0xfffe430e)
#define TGRE_0      (*(volatile unsigned short *)0xfffe4320)
#define TGRF_0      (*(volatile unsigned short *)0xfffe4322)

#define TIER2_0     (*(volatile unsigned char *)0xfffe4324)
#define TSR2_0      (*(volatile unsigned char *)0xfffe4325)
#define TBTM_0      (*(volatile unsigned char *)0xfffe4326)

#define TCR_1       (*(volatile unsigned char *)0xfffe4380)
#define TMDR_1      (*(volatile unsigned char *)0xfffe4381)
#define TIOR_1      (*(volatile unsigned char *)0xfffe4382)
#define TIER_1      (*(volatile unsigned char *)0xfffe4384)
#define TSR_1       (*(volatile unsigned char *)0xfffe4385)
#define TCNT_1      (*(volatile unsigned short *)0xfffe4386)
#define TGRA_1      (*(volatile unsigned short *)0xfffe4388)
#define TGRB_1      (*(volatile unsigned short *)0xfffe438a)
#define TICCR       (*(volatile unsigned char *)0xfffe4390)

#define TCR_2       (*(volatile unsigned char *)0xfffe4000)
#define TMDR_2      (*(volatile unsigned char *)0xfffe4001)
#define TIOR_2      (*(volatile unsigned char *)0xfffe4002)
#define TIER_2      (*(volatile unsigned char *)0xfffe4004)
#define TSR_2       (*(volatile unsigned char *)0xfffe4005)
#define TCNT_2      (*(volatile unsigned short *)0xfffe4006)
#define TGRA_2      (*(volatile unsigned short *)0xfffe4008)
#define TGRB_2      (*(volatile unsigned short *)0xfffe400a)

#define TCR_3       (*(volatile unsigned char *)0xfffe4200)
#define TMDR_3      (*(volatile unsigned char *)0xfffe4202)
#define TIOR_3      (*(volatile unsigned short *)0xfffe4204)
#define TIORH_3     (*(volatile unsigned char *)0xfffe4204)
#define TIORL_3     (*(volatile unsigned char *)0xfffe4205)
#define TIER_3      (*(volatile unsigned char *)0xfffe4208)
#define TSR_3       (*(volatile unsigned char *)0xfffe422c)
#define TCNT_3      (*(volatile unsigned short *)0xfffe4210)
#define TGRA_3      (*(volatile unsigned short *)0xfffe4218)
#define TGRB_3      (*(volatile unsigned short *)0xfffe421a)
#define TGRC_3      (*(volatile unsigned short *)0xfffe4224)
#define TGRD_3      (*(volatile unsigned short *)0xfffe4226)
#define TBTM_3      (*(volatile unsigned char *)0xfffe4238)

#define TCR_4       (*(volatile unsigned char *)0xfffe4201)
#define TMDR_4      (*(volatile unsigned char *)0xfffe4203)
#define TIOR_4      (*(volatile unsigned short *)0xfffe4206)
#define TIORH_4     (*(volatile unsigned char *)0xfffe4206)
#define TIORL_4     (*(volatile unsigned char *)0xfffe4207)
#define TIER_4      (*(volatile unsigned char *)0xfffe4209)
#define TSR_4       (*(volatile unsigned char *)0xfffe422d)
#define TCNT_4      (*(volatile unsigned short *)0xfffe4212)
#define TGRA_4      (*(volatile unsigned short *)0xfffe421c)
#define TGRB_4      (*(volatile unsigned short *)0xfffe421e)
#define TGRC_4      (*(volatile unsigned short *)0xfffe4228)
#define TGRD_4      (*(volatile unsigned short *)0xfffe422a)
#define TBTM_4      (*(volatile unsigned char *)0xfffe4239)

#define TADCR       (*(volatile unsigned short *)0xfffe4240)
#define TADCORA_4   (*(volatile unsigned short *)0xfffe4244)
#define TADCORB_4   (*(volatile unsigned short *)0xfffe4246)
#define TADCOBRA_4  (*(volatile unsigned short *)0xfffe4248)


/* DMAC */

#define SAR_1       (*(volatile unsigned long *)0xfffe1010)
#define DAR_1       (*(volatile unsigned long *)0xfffe1014)
#define DMATCR_1    (*(volatile unsigned long *)0xfffe1018)
#define CHCR_1      (*(volatile unsigned long *)0xfffe101c)
#define RSAR_1      (*(volatile unsigned long *)0xfffe1110)
#define RDAR_1      (*(volatile unsigned long *)0xfffe1114)
#define RDMATCR_1   (*(volatile unsigned long *)0xfffe1118)

#define SAR_2       (*(volatile unsigned long *)0xfffe1020)
#define DAR_2       (*(volatile unsigned long *)0xfffe1024)
#define DMATCR_2    (*(volatile unsigned long *)0xfffe1028)
#define CHCR_2      (*(volatile unsigned long *)0xfffe102c)
#define RSAR_2      (*(volatile unsigned long *)0xfffe1120)
#define RDAR_2      (*(volatile unsigned long *)0xfffe1124)
#define RDMATCR_2   (*(volatile unsigned long *)0xfffe1128)

#define SAR_3       (*(volatile unsigned long *)0xfffe1030)
#define DAR_3       (*(volatile unsigned long *)0xfffe1034)
#define DMATCR_3    (*(volatile unsigned long *)0xfffe1038)
#define CHCR_3      (*(volatile unsigned long *)0xfffe103c)
#define RSAR_3      (*(volatile unsigned long *)0xfffe1130)
#define RDAR_3      (*(volatile unsigned long *)0xfffe1134)
#define RDMATCR_3   (*(volatile unsigned long *)0xfffe1138)

#define SAR_4       (*(volatile unsigned long *)0xfffe1040)
#define DAR_4       (*(volatile unsigned long *)0xfffe1044)
#define DMATCR_4    (*(volatile unsigned long *)0xfffe1048)
#define CHCR_4      (*(volatile unsigned long *)0xfffe104c)
#define RSAR_4      (*(volatile unsigned long *)0xfffe1140)
#define RDAR_4      (*(volatile unsigned long *)0xfffe1144)
#define RDMATCR_4   (*(volatile unsigned long *)0xfffe1148)

#define SAR_5       (*(volatile unsigned long *)0xfffe1050)
#define DAR_5       (*(volatile unsigned long *)0xfffe1054)
#define DMATCR_5    (*(volatile unsigned long *)0xfffe1058)
#define CHCR_5      (*(volatile unsigned long *)0xfffe105c)
#define RSAR_5      (*(volatile unsigned long *)0xfffe1150)
#define RDAR_5      (*(volatile unsigned long *)0xfffe1154)
#define RDMATCR_5   (*(volatile unsigned long *)0xfffe1158)

#define SAR_6       (*(volatile unsigned long *)0xfffe1060)
#define DAR_6       (*(volatile unsigned long *)0xfffe1064)
#define DMATCR_6    (*(volatile unsigned long *)0xfffe1068)
#define CHCR_6      (*(volatile unsigned long *)0xfffe106c)
#define RSAR_6      (*(volatile unsigned long *)0xfffe1160)
#define RDAR_6      (*(volatile unsigned long *)0xfffe1164)
#define RDMATCR_6   (*(volatile unsigned long *)0xfffe1168)

#define SAR_7       (*(volatile unsigned long *)0xfffe1070)
#define DAR_7       (*(volatile unsigned long *)0xfffe1074)
#define DMATCR_7    (*(volatile unsigned long *)0xfffe1078)
#define CHCR_7      (*(volatile unsigned long *)0xfffe107c)
#define RSAR_7      (*(volatile unsigned long *)0xfffe1170)
#define RDAR_7      (*(volatile unsigned long *)0xfffe1174)
#define RDMATCR_7   (*(volatile unsigned long *)0xfffe1178)

#define DMAOR       (*(volatile unsigned short *)0xfffe1200)
#define DMARS0      (*(volatile unsigned short *)0xfffe1300)
#define DMARS1      (*(volatile unsigned short *)0xfffe1304)
#define DMARS2      (*(volatile unsigned short *)0xfffe1308)
#define DMARS3      (*(volatile unsigned short *)0xfffe130c)


/* CPG */

#define FRQCR       (*(volatile unsigned short *)0xfffe0010)
#define MCLKCR      (*(volatile unsigned char *)0xfffe0410)


/* INTC */

#define ICR0        (*(volatile unsigned short *)0xfffe0800)
#define ICR1        (*(volatile unsigned short *)0xfffe0802)
#define ICR2        (*(volatile unsigned short *)0xfffe0804)
#define IRQRR       (*(volatile unsigned short *)0xfffe0806)
#define PINTER      (*(volatile unsigned short *)0xfffe0808)
#define PIRR        (*(volatile unsigned short *)0xfffe080a)
#define IBCR        (*(volatile unsigned short *)0xfffe080c)
#define IBNR        (*(volatile unsigned short *)0xfffe080e)
#define IPR01       (*(volatile unsigned short *)0xfffe0818)
#define IPR02       (*(volatile unsigned short *)0xfffe081a)
#define IPR05       (*(volatile unsigned short *)0xfffe0820)
#define IPR06       (*(volatile unsigned short *)0xfffe0c00)
#define IPR07       (*(volatile unsigned short *)0xfffe0c02)
#define IPR08       (*(volatile unsigned short *)0xfffe0c04)
#define IPR09       (*(volatile unsigned short *)0xfffe0c06)
#define IPR10       (*(volatile unsigned short *)0xfffe0c08)
#define IPR11       (*(volatile unsigned short *)0xfffe0c0a)
#define IPR12       (*(volatile unsigned short *)0xfffe0c0c)
#define IPR13       (*(volatile unsigned short *)0xfffe0c0e)
#define IPR14       (*(volatile unsigned short *)0xfffe0c10)


/* UBC */

#define BAR_0       (*(volatile unsigned long *)0xfffc0400)
#define BAMR_0      (*(volatile unsigned long *)0xfffc0404)
#define BBR_0       (*(volatile unsigned short *)0xfffc04a0)
#define BDR_0       (*(volatile unsigned long *)0xfffc0408)
#define BDMR_0      (*(volatile unsigned long *)0xfffc040c)

#define BAR_1       (*(volatile unsigned long *)0xfffc0410)
#define BAMR_1      (*(volatile unsigned long *)0xfffc0414)
#define BBR_1       (*(volatile unsigned short *)0xfffc04b0)
#define BDR_1       (*(volatile unsigned long *)0xfffc0418)
#define BDMR_1      (*(volatile unsigned long *)0xfffc041c)

#define BRCR        (*(volatile unsigned long *)0xfffc04c0)


/* ｷｬｯｼｭ */

#define CCR1        (*(volatile unsigned long *)0xfffc1000)
#define CCR2        (*(volatile unsigned long *)0xfffc1004)


/* BSC */

#define CMNCR       (*(volatile unsigned long *)0xfffc0000)
#define CS0BCR      (*(volatile unsigned long *)0xfffc0004)
#define CS1BCR      (*(volatile unsigned long *)0xfffc0008)
#define CS2BCR      (*(volatile unsigned long *)0xfffc000c)
#define CS3BCR      (*(volatile unsigned long *)0xfffc0010)
#define CS4BCR      (*(volatile unsigned long *)0xfffc0014)
#define CS5BCR      (*(volatile unsigned long *)0xfffc0018)
#define CS6BCR      (*(volatile unsigned long *)0xfffc001c)
#define CS7BCR      (*(volatile unsigned long *)0xfffc0020)
#define CS8BCR      (*(volatile unsigned long *)0xfffc0024)
#define CS0WCR      (*(volatile unsigned long *)0xfffc0028)
#define CS1WCR      (*(volatile unsigned long *)0xfffc002c)
#define CS2WCR      (*(volatile unsigned long *)0xfffc0030)
#define CS3WCR      (*(volatile unsigned long *)0xfffc0034)
#define CS4WCR      (*(volatile unsigned long *)0xfffc0038)
#define CS5WCR      (*(volatile unsigned long *)0xfffc003c)
#define CS6WCR      (*(volatile unsigned long *)0xfffc0040)
#define CS7WCR      (*(volatile unsigned long *)0xfffc0044)
#define CS8WCR      (*(volatile unsigned long *)0xfffc0048)
#define SDCR        (*(volatile unsigned long *)0xfffc004c)
#define RTCSR       (*(volatile unsigned short *)0xfffc0050)
#define RTCNT       (*(volatile unsigned short *)0xfffc0054)
#define RTCOR       (*(volatile unsigned short *)0xfffc0058)
#define ACSWR       (*(volatile unsigned long *)0xfffc180c)
#define ACKEYR      (*(volatile unsigned char *)0xfffc1bfc)


/* DMAC */

#define SAR_0       (*(volatile unsigned long *)0xfffe1000)
#define DAR_0       (*(volatile unsigned long *)0xfffe1004)
#define DMATCR_0    (*(volatile unsigned long *)0xfffe1008)
#define CHCR_0      (*(volatile unsigned long *)0xfffe100c)
#define RSAR_0      (*(volatile unsigned long *)0xfffe1100)
#define RDAR_0      (*(volatile unsigned long *)0xfffe1104)
#define RDMATCR_0   (*(volatile unsigned long *)0xfffe1108)









