Linux Kernel
3.7.1
|
#include <asm/sections.h>
Go to the source code of this file.
Macros | |
#define | __get_CLKC() ({ *(volatile unsigned long *)(0xfeff9a00); }) |
#define | __get_TCTR() ({ *(volatile unsigned long *)(0xfeff9418); }) |
#define | __get_TPRV() ({ *(volatile unsigned long *)(0xfeff9420); }) |
#define | __get_TPRCKSL() ({ *(volatile unsigned long *)(0xfeff9428); }) |
#define | __get_TCSR(T) ({ *(volatile unsigned long *)(0xfeff9400 + 8 * (T)); }) |
#define | __get_TxCKSL(T) ({ *(volatile unsigned long *)(0xfeff9430 + 8 * (T)); }) |
#define | __get_TCSR_DATA(T) ({ __get_TCSR(T) >> 24; }) |
#define | __set_TCTR(V) do { *(volatile unsigned long *)(0xfeff9418) = (V); mb(); } while(0) |
#define | __set_TPRV(V) do { *(volatile unsigned long *)(0xfeff9420) = (V) << 24; mb(); } while(0) |
#define | __set_TPRCKSL(V) do { *(volatile unsigned long *)(0xfeff9428) = (V); mb(); } while(0) |
#define | __set_TCSR(T, V) do { *(volatile unsigned long *)(0xfeff9400 + 8 * (T)) = (V); mb(); } while(0) |
#define | __set_TxCKSL(T, V) do { *(volatile unsigned long *)(0xfeff9430 + 8 * (T)) = (V); mb(); } while(0) |
#define | __set_TCSR_DATA(T, V) __set_TCSR(T, (V) << 24) |
#define | __set_TxCKSL_DATA(T, V) __set_TxCKSL(T, TxCKSL_EIGHT | __TxCKSL_SELECT((V))) |
#define | CLKC_CMODE 0x0f000000 |
#define | CLKC_SLPL 0x000f0000 |
#define | CLKC_P0 0x00000100 |
#define | CLKC_CM 0x00000003 |
#define | CLKC_CMODE_s 24 |
#define | TCTR_MODE_0 0x00000000 |
#define | TCTR_MODE_2 0x04000000 |
#define | TCTR_MODE_4 0x08000000 |
#define | TCTR_MODE_5 0x0a000000 |
#define | TCTR_RL_LATCH 0x00000000 |
#define | TCTR_RL_RW_LOW8 0x10000000 |
#define | TCTR_RL_RW_HIGH8 0x20000000 |
#define | TCTR_RL_RW_LH8 0x30000000 |
#define | TCTR_SC_CTR0 0x00000000 |
#define | TCTR_SC_CTR1 0x40000000 |
#define | TCTR_SC_CTR2 0x80000000 |
#define | TCTR_CNT0 0x02000000 |
#define | TCTR_CNT1 0x04000000 |
#define | TCTR_CNT2 0x08000000 |
#define | TCTR_NSTATUS 0x10000000 |
#define | TCTR_NCOUNT 0x20000000 |
#define | TCTR_SC_READBACK 0xc0000000 |
#define | TCSRx_DATA 0xff000000 |
#define | TCSRx_OUTPUT 0x80000000 |
#define | TCSRx_NULLCOUNT 0x40000000 |
#define | TCSRx_RL 0x30000000 |
#define | TCSRx_MODE 0x07000000 |
#define | TxCKSL_SELECT 0x0f000000 |
#define | __TxCKSL_SELECT(X) ((X) << 24) |
#define | TxCKSL_EIGHT 0xf0000000 |
Variables | |
unsigned long __nongprelbss | __clkin_clock_speed_HZ |
unsigned long __nongprelbss | __ext_bus_clock_speed_HZ |
unsigned long __nongprelbss | __res_bus_clock_speed_HZ |
unsigned long __nongprelbss | __sdram_clock_speed_HZ |
unsigned long __nongprelbss | __core_bus_clock_speed_HZ |
unsigned long __nongprelbss | __core_clock_speed_HZ |
unsigned long __nongprelbss | __dsu_clock_speed_HZ |
unsigned long __nongprelbss | __serial_clock_speed_HZ |
#define __get_CLKC | ( | ) | ({ *(volatile unsigned long *)(0xfeff9a00); }) |
Definition at line 26 of file timer-regs.h.
Definition at line 46 of file timer-regs.h.
#define __get_TCSR_DATA | ( | T | ) | ({ __get_TCSR(T) >> 24; }) |
Definition at line 49 of file timer-regs.h.
#define __get_TCTR | ( | ) | ({ *(volatile unsigned long *)(0xfeff9418); }) |
Definition at line 43 of file timer-regs.h.
#define __get_TPRCKSL | ( | ) | ({ *(volatile unsigned long *)(0xfeff9428); }) |
Definition at line 45 of file timer-regs.h.
#define __get_TPRV | ( | ) | ({ *(volatile unsigned long *)(0xfeff9420); }) |
Definition at line 44 of file timer-regs.h.
Definition at line 47 of file timer-regs.h.
#define __set_TCSR | ( | T, | |
V | |||
) | do { *(volatile unsigned long *)(0xfeff9400 + 8 * (T)) = (V); mb(); } while(0) |
Definition at line 54 of file timer-regs.h.
#define __set_TCSR_DATA | ( | T, | |
V | |||
) | __set_TCSR(T, (V) << 24) |
Definition at line 60 of file timer-regs.h.
Definition at line 51 of file timer-regs.h.
Definition at line 53 of file timer-regs.h.
Definition at line 52 of file timer-regs.h.
#define __set_TxCKSL | ( | T, | |
V | |||
) | do { *(volatile unsigned long *)(0xfeff9430 + 8 * (T)) = (V); mb(); } while(0) |
Definition at line 57 of file timer-regs.h.
#define __set_TxCKSL_DATA | ( | T, | |
V | |||
) | __set_TxCKSL(T, TxCKSL_EIGHT | __TxCKSL_SELECT((V))) |
Definition at line 61 of file timer-regs.h.
Definition at line 103 of file timer-regs.h.
#define CLKC_CM 0x00000003 |
Definition at line 67 of file timer-regs.h.
#define CLKC_CMODE 0x0f000000 |
Definition at line 64 of file timer-regs.h.
#define CLKC_CMODE_s 24 |
Definition at line 69 of file timer-regs.h.
#define CLKC_P0 0x00000100 |
Definition at line 66 of file timer-regs.h.
#define CLKC_SLPL 0x000f0000 |
Definition at line 65 of file timer-regs.h.
#define TCSRx_DATA 0xff000000 |
Definition at line 93 of file timer-regs.h.
#define TCSRx_MODE 0x07000000 |
Definition at line 99 of file timer-regs.h.
#define TCSRx_NULLCOUNT 0x40000000 |
Definition at line 97 of file timer-regs.h.
#define TCSRx_OUTPUT 0x80000000 |
Definition at line 96 of file timer-regs.h.
#define TCSRx_RL 0x30000000 |
Definition at line 98 of file timer-regs.h.
#define TCTR_CNT0 0x02000000 |
Definition at line 85 of file timer-regs.h.
#define TCTR_CNT1 0x04000000 |
Definition at line 86 of file timer-regs.h.
#define TCTR_CNT2 0x08000000 |
Definition at line 87 of file timer-regs.h.
#define TCTR_MODE_0 0x00000000 |
Definition at line 72 of file timer-regs.h.
#define TCTR_MODE_2 0x04000000 |
Definition at line 73 of file timer-regs.h.
#define TCTR_MODE_4 0x08000000 |
Definition at line 74 of file timer-regs.h.
#define TCTR_MODE_5 0x0a000000 |
Definition at line 75 of file timer-regs.h.
#define TCTR_NCOUNT 0x20000000 |
Definition at line 89 of file timer-regs.h.
#define TCTR_NSTATUS 0x10000000 |
Definition at line 88 of file timer-regs.h.
#define TCTR_RL_LATCH 0x00000000 |
Definition at line 76 of file timer-regs.h.
#define TCTR_RL_RW_HIGH8 0x20000000 |
Definition at line 78 of file timer-regs.h.
#define TCTR_RL_RW_LH8 0x30000000 |
Definition at line 79 of file timer-regs.h.
#define TCTR_RL_RW_LOW8 0x10000000 |
Definition at line 77 of file timer-regs.h.
#define TCTR_SC_CTR0 0x00000000 |
Definition at line 80 of file timer-regs.h.
#define TCTR_SC_CTR1 0x40000000 |
Definition at line 81 of file timer-regs.h.
#define TCTR_SC_CTR2 0x80000000 |
Definition at line 82 of file timer-regs.h.
#define TCTR_SC_READBACK 0xc0000000 |
Definition at line 90 of file timer-regs.h.
#define TxCKSL_EIGHT 0xf0000000 |
Definition at line 104 of file timer-regs.h.
#define TxCKSL_SELECT 0x0f000000 |
Definition at line 102 of file timer-regs.h.