From 273440482bf94ffc0e5fdde11eafa5acf4b38fc8 Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Wed, 3 Jul 2002 22:32:04 +0000 Subject: [PATCH] Added register offsets and ICCR bits. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@46 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- include/arm/sa11x0/ic.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/include/arm/sa11x0/ic.h b/include/arm/sa11x0/ic.h index 3363173b..e3c771a5 100644 --- a/include/arm/sa11x0/ic.h +++ b/include/arm/sa11x0/ic.h @@ -32,14 +32,13 @@ #ifndef SA11X0_IC_H #define SA11X0_IC_H -#ifndef uint32_t -typedef unsigned int uint32_t; -#endif +#include /* Interrupt Controller Registers */ #define IC_BASE 0x90050000 +#if LANGUAGE == C typedef volatile struct IC_registers { uint32_t icip; uint32_t icmr; @@ -60,5 +59,17 @@ typedef volatile struct IC_registers { #define ICCR IC_pointer->iccr #define ICFP IC_pointer->icfp #define ICPR IC_pointer->icpr +#endif /* LANGUAGE == C */ + +#define ICIP_OFFSET 0x00 +#define ICMR_OFFSET 0x04 +#define ICLR_OFFSET 0x08 +#define ICCR_OFFSET 0x0C +#define ICFP_OFFSET 0x10 +#define ICPR_OFFSET 0x20 + +/* ICCR bits */ + +#define ICCR_DIM bit(0) -#endif /* SA11X0_IC_H */ +#endif /* SA11X0_IC_H */