Files
m241Neelima/vxworks-6.9/target/h/hwif/timer/vxbCn3xxxTimer.h
T
2026-07-30 11:19:44 +05:30

57 lines
1.2 KiB
C

/* vxbCn3xxxTimer.h - Cavium timer driver */
/*
* Copyright (c) 2010 Wind River Systems, Inc.
*
* The right to copy, distribute or otherwise make use of this software
* may be licensed only pursuant to the terms of an applicable Wind River
* license agreement.
*/
/*
modification history
--------------------
01a,19jul10,rlg created.
*/
#ifndef __INCvxbCn3xxxTimerh
#define __INCvxbCn3xxxTimerh
/*
* address of core clock count register
* number of cycles since release of reset
* read only
*/
#define CAV_IPD_CLK_COUNT 0x80014f0000000338ull
/* For 78XX COP0 uses FPA_CLK
* Check cvmx-clock.h for more details
*/
#define CAV_FPA_CLK_COUNT 0x80012800000000F0ull
/*
* base address of timers
*/
#define CAV_CIU_TIMX 0x8001070000000480ull
#define CAV_CIU_TIMX_SP 0x8
#define CAV_CIU_TIMER(unit) \
(CAV_CIU_TIMX + ((unit) * CAV_CIU_TIMX_SP ))
#define CAV_CIU3_TIMX 0x8001010000010000ull
#define CAV_CIU3_TIMX_SP 0x8
#define CAV_CIU3_TIMER(unit) \
(CAV_CIU3_TIMX + ((unit & 15) * CAV_CIU3_TIMX_SP ))
/* BIT MASK AND SHIFT FOR TIMER REGISTERS */
#define CAV_CIU_TIMER_MODE_SHIFT 36
#define CAV_CIU_TIMER_MODE_MASK 0x0000000000000001ull
#endif /* __INCvxbCn3xxxTimerh */