/* * Copyright (C) 2012 ARM Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef __CLKSOURCE_ARM_ARCH_TIMER_H #define __CLKSOURCE_ARM_ARCH_TIMER_H #include #include #define ARCH_TIMER_CTRL_ENABLE (1 << 0) #define ARCH_TIMER_CTRL_IT_MASK (1 << 1) #define ARCH_TIMER_CTRL_IT_STAT (1 << 2) #define CNTHCTL_EL1PCTEN (1 << 0) #define CNTHCTL_EL1PCEN (1 << 1) #define CNTHCTL_EVNTEN (1 << 2) #define CNTHCTL_EVNTDIR (1 << 3) #define CNTHCTL_EVNTI (0xF << 4) enum arch_timer_reg { ARCH_TIMER_REG_CTRL, ARCH_TIMER_REG_TVAL, }; #define ARCH_TIMER_PHYS_ACCESS 0 #define ARCH_TIMER_VIRT_ACCESS 1 #define ARCH_TIMER_MEM_PHYS_ACCESS 2 #define ARCH_TIMER_MEM_VIRT_ACCESS 3 #define ARCH_TIMER_USR_PCT_ACCESS_EN (1 << 0) /* physical counter */ #define ARCH_TIMER_USR_VCT_ACCESS_EN (1 << 1) /* virtual counter */ #define ARCH_TIMER_VIRT_EVT_EN (1 << 2) #define ARCH_TIMER_EVT_TRIGGER_SHIFT (4) #define ARCH_TIMER_EVT_TRIGGER_MASK (0xF << ARCH_TIMER_EVT_TRIGGER_SHIFT) #define ARCH_TIMER_USR_VT_ACCESS_EN (1 << 8) /* virtual timer registers */ #define ARCH_TIMER_USR_PT_ACCESS_EN (1 << 9) /* physical timer registers */ #define ARCH_TIMER_EVT_STREAM_FREQ 10000 /* 100us */ #ifdef CONFIG_ARM_ARCH_TIMER extern u32 arch_timer_get_rate(void); extern u64 (*arch_timer_read_counter)(void); extern struct timecounter *arch_timer_get_timecounter(void); #else static inline u32 arch_timer_get_rate(void) { return 0; } static inline u64 arch_timer_read_counter(void) { return 0; } static inline struct timecounter *arch_timer_get_timecounter(void) { return NULL; } #endif #endif ux-2.6.32.y'>linux-2.6.32.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2016-05-10target: make ->shutdown_session optionalChristoph Hellwig
2016-01-12tcm_fc: Convert acl lookup to modern get_initiator_node_acl usageNicholas Bellinger
2016-01-07target/fcoe: Add tag support to tcm_fcAndy Grover
2015-10-13target: use per-attribute show and store methodsChristoph Hellwig
2015-07-04Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/...Linus Torvalds
2015-06-15target: Drop unnecessary core_tpg_register TFO parameterNicholas Bellinger
2015-06-02target: Minimize SCSI header #include directivesBart Van Assche
2015-06-01target: Convert se_tpg->acl_node_lock to ->acl_node_mutexNicholas Bellinger
2015-05-30target: target_core_configfs.h is not needed in fabric driversChristoph Hellwig
2015-05-30target: Move task tag into struct se_cmd + support 64-bit tagsBart Van Assche
2015-05-30target: move transport ID handling to the coreChristoph Hellwig
2015-05-30target: remove the get_fabric_proto_ident methodChristoph Hellwig
2015-05-30target: change core_tpg_register prototypeChristoph Hellwig
2015-05-30tcm_fc: stop using se_tpg_fabric_ptrChristoph Hellwig
2015-05-30target: move node ACL allocation to core codeChristoph Hellwig
2015-05-30target: refactor init/drop_nodeacl methodsChristoph Hellwig
2015-05-30target: make the tpg_get_default_depth method optionalChristoph Hellwig
2015-04-14target: simplify the target template registration APIChristoph Hellwig
2014-04-11target/tcm_fc: Rename ft_{add,del}_lport to {add,del}_wwnAndy Grover
2014-04-11target/tcm_fc: Rename structs and list members for clarityAndy Grover
2014-04-11target/tcm_fc: Limit to 1 TPG per wwnAndy Grover
2014-04-11target/tcm_fc: Don't export ft_lport_listAndy Grover
2014-04-07target: Add TFO->abort_task for aborted task resources releaseNicholas Bellinger
2014-01-09drivers: target: Mark functions and structures as static in tfc_conf.cRashika Kheria
2013-10-16target: Remove TF_CIT_TMPL macroAndy Grover
2013-08-12target: replace strict_strto*() with kstrto*()Jingoo Han