Kernel/vfs - Return matched flags from VFS_SelectNode
[tpg/acess2.git] / KernelLand / Kernel / arch / armv7 / platform_tegra2.h
1 /*
2  * Acess2 Kernel ARMv7 Port
3  * - By John Hodge (thePowersGang)
4  *
5  * platform_tegra2.c
6  * - Tegra2 Core code
7  */
8 #ifndef _PLATFORM__TEGRA2_H_
9 #define _PLATFORM__TEGRA2_H_
10
11 struct sTimerRegs
12 {
13         Uint32  PTV_0;  // Control / Target value
14         Uint32  PCR_0;  // Current value / IRQ clear
15 };
16 struct sTimerUSRegs
17 {
18         Uint32  CNTR_1US;       // 16:16 microsecond counter
19         Uint32  USEC_CFG;       // 8:8 num/den (n+1)/(den+1) us per clock
20         Uint32  _padding[0x3c-0x8];
21         Uint32  CNTR_Freeze;    // Freeze timers when in debug?
22 };
23 struct sTimersMap
24 {
25         struct sTimerRegs       TMR1;
26         struct sTimerRegs       TMR2;
27
28         struct sTimerUSRegs     TIMERUS;
29
30         struct sTimerRegs       TMR3;
31         struct sTimerRegs       TMR4;
32 };
33
34 struct sClockResetMap
35 {
36         Uint32  RST_Source;
37         Uint32  RST_Devices;
38         // ...
39 };
40
41 #if 0
42 struct sIRQRegs
43 {
44         Uint32  VIRQ_CPU;
45         Uint32  VIRQ_COP;
46         Uint32  VFIQ_CPU;
47         Uint32  VFIQ_COP;
48         Uint32  ISR;
49         Uint32  FIR;    // Force interrupt status
50         Uint32  FIR_SET;        // Set bit in FIR
51         Uint32  FIR_CLR;        // Clear bit in FIR
52         Uint32  CPU_IER;        // RO - Interrupt Enable register
53         Uint32  CPU_IER_SET;
54         Uint32  CPU_IER_CLR;
55         Uint32  CPU_IEP;        // 1 = FIQ
56         Uint32  COP_IER;        // RO - Interrupt Enable register
57         Uint32  COP_IER_SET;
58         Uint32  COP_IER_CLR;
59         Uint32  COP_IEP;        // 1 = FIQ
60 };
61 struct sArbGntRegs
62 {
63         Uint32  CPU_Status;
64         Uint32  CPU_Enable;
65         Uint32  COP_Status;
66         Uint32  COP_Enable;
67 };
68 struct sIRQMap
69 {
70         struct sIRQRegs Pri;
71         struct sArbGntRegs      Arb;
72         char    _pad1[0x100-sizeof(struct sIRQRegs)-sizeof(struct sIRQRegs)];
73         struct sIRQRegs Sec;
74         char    _pad2[0x100-sizeof(struct sIRQRegs)];
75         struct sIRQRegs Tri;
76         char    _pad3[0x100-sizeof(struct sIRQRegs)];
77         struct sIRQRegs Quad;
78 };
79 #endif
80
81 #endif
82

UCC git Repository :: git.ucc.asn.au