ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

sp804.h
Go to the documentation of this file.
00001 /*
00002  * PROJECT:         ReactOS Kernel
00003  * LICENSE:         BSD - See COPYING.ARM in the top level directory
00004  * FILE:            include/reactos/arm/targets/pl011.h
00005  * PURPOSE:         SB804 Registers and Constants
00006  * PROGRAMMERS:     ReactOS Portable Systems Group
00007  */
00008 
00009 /* GLOBALS ********************************************************************/
00010 
00011 //
00012 // Timer Registers
00013 //
00014 #define TIMER_BASE(x)            (ULONG_PTR)(0x101E2000 + (x * 0x1000))
00015 #define TIMER0_LOAD              TIMER_BASE(0) + 0x00
00016 #define TIMER0_VALUE             TIMER_BASE(0) + 0x04
00017 #define TIMER0_CONTROL           TIMER_BASE(0) + 0x08
00018 #define TIMER0_INT_CLEAR         TIMER_BASE(0) + 0x0C
00019 #define TIMER0_INT_STATUS        TIMER_BASE(0) + 0x10
00020 #define TIMER0_INT_MASK          TIMER_BASE(0) + 0x14
00021 #define TIMER0_BACKGROUND_LOAD   TIMER_BASE(1) + 0x18
00022 #define TIMER1_LOAD              TIMER_BASE(1) + 0x00
00023 #define TIMER1_VALUE             TIMER_BASE(1) + 0x04
00024 #define TIMER1_CONTROL           TIMER_BASE(1) + 0x08
00025 #define TIMER1_INT_CLEAR         TIMER_BASE(1) + 0x0C
00026 #define TIMER1_INT_STATUS        TIMER_BASE(1) + 0x10
00027 #define TIMER1_INT_MASK          TIMER_BASE(1) + 0x14
00028 #define TIMER1_BACKGROUND_LOAD   TIMER_BASE(1) + 0x18
00029 
00030 //
00031 // Control Register
00032 //
00033 typedef union _SP804_CONTROL_REGISTER
00034 {
00035     struct
00036     {
00037         ULONG OneShot:1;
00038         ULONG Wide:1;
00039         ULONG Prescale:2;
00040         ULONG Reserved:1;
00041         ULONG Interrupt:1;
00042         ULONG Periodic:1;
00043         ULONG Enabled:1;
00044         ULONG Unused:24;
00045     };
00046     ULONG AsUlong;
00047 } SP804_CONTROL_REGISTER, *PSP804_CONTROL_REGISTER;

Generated on Sat May 26 2012 04:31:53 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.