ReactOS
0.4.16-dev-122-g325d74c
sp804.h
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS Kernel
3
* LICENSE: BSD - See COPYING.ARM in the top level directory
4
* FILE: include/reactos/arm/peripherals/sp804.h
5
* PURPOSE: SB804 Registers and Constants
6
* PROGRAMMERS: ReactOS Portable Systems Group
7
*/
8
9
/* GLOBALS ********************************************************************/
10
11
//
12
// Timer Registers
13
//
14
#define TIMER_BASE(x) (ULONG_PTR)(0x101E2000 + (x * 0x1000))
15
#define TIMER0_LOAD TIMER_BASE(0) + 0x00
16
#define TIMER0_VALUE TIMER_BASE(0) + 0x04
17
#define TIMER0_CONTROL TIMER_BASE(0) + 0x08
18
#define TIMER0_INT_CLEAR TIMER_BASE(0) + 0x0C
19
#define TIMER0_INT_STATUS TIMER_BASE(0) + 0x10
20
#define TIMER0_INT_MASK TIMER_BASE(0) + 0x14
21
#define TIMER0_BACKGROUND_LOAD TIMER_BASE(1) + 0x18
22
#define TIMER1_LOAD TIMER_BASE(1) + 0x00
23
#define TIMER1_VALUE TIMER_BASE(1) + 0x04
24
#define TIMER1_CONTROL TIMER_BASE(1) + 0x08
25
#define TIMER1_INT_CLEAR TIMER_BASE(1) + 0x0C
26
#define TIMER1_INT_STATUS TIMER_BASE(1) + 0x10
27
#define TIMER1_INT_MASK TIMER_BASE(1) + 0x14
28
#define TIMER1_BACKGROUND_LOAD TIMER_BASE(1) + 0x18
29
30
//
31
// Control Register
32
//
33
typedef
union
_SP804_CONTROL_REGISTER
34
{
35
struct
36
{
37
ULONG
OneShot
:1;
38
ULONG
Wide
:1;
39
ULONG
Prescale
:2;
40
ULONG
Reserved
:1;
41
ULONG
Interrupt
:1;
42
ULONG
Periodic
:1;
43
ULONG
Enabled
:1;
44
ULONG
Unused
:24;
45
};
46
ULONG
AsUlong
;
47
}
SP804_CONTROL_REGISTER
, *
PSP804_CONTROL_REGISTER
;
SP804_CONTROL_REGISTER
union _SP804_CONTROL_REGISTER SP804_CONTROL_REGISTER
PSP804_CONTROL_REGISTER
union _SP804_CONTROL_REGISTER * PSP804_CONTROL_REGISTER
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
_SP804_CONTROL_REGISTER
Definition:
sp804.h:34
_SP804_CONTROL_REGISTER::Prescale
ULONG Prescale
Definition:
sp804.h:39
_SP804_CONTROL_REGISTER::Wide
ULONG Wide
Definition:
sp804.h:38
_SP804_CONTROL_REGISTER::Unused
ULONG Unused
Definition:
sp804.h:44
_SP804_CONTROL_REGISTER::Periodic
ULONG Periodic
Definition:
sp804.h:42
_SP804_CONTROL_REGISTER::Enabled
ULONG Enabled
Definition:
sp804.h:43
_SP804_CONTROL_REGISTER::OneShot
ULONG OneShot
Definition:
sp804.h:37
_SP804_CONTROL_REGISTER::Reserved
ULONG Reserved
Definition:
sp804.h:40
_SP804_CONTROL_REGISTER::Interrupt
ULONG Interrupt
Definition:
sp804.h:41
_SP804_CONTROL_REGISTER::AsUlong
ULONG AsUlong
Definition:
sp804.h:46
sdk
include
reactos
arm
peripherals
sp804.h
Generated on Sun Oct 13 2024 06:12:20 for ReactOS by
1.9.6