37#ifndef _BSP_SPARC_COUNTER_H
38#define _BSP_SPARC_COUNTER_H
40#include <rtems/score/cpu.h>
48void _SPARC_Counter_at_tick_clock(
void );
50CPU_Counter_ticks _SPARC_Counter_read_default(
void );
52CPU_Counter_ticks _SPARC_Counter_read_clock_isr_disabled(
void );
54CPU_Counter_ticks _SPARC_Counter_read_clock(
void );
56uint32_t _SPARC_Get_timecount_clock(
struct timecounter * );
58typedef CPU_Counter_ticks ( *SPARC_Counter_read )( void );
68 SPARC_Counter_read read_isr_disabled;
69 SPARC_Counter_read
read;
70 volatile const CPU_Counter_ticks *counter_register;
71 volatile const uint32_t *pending_register;
72 uint32_t pending_mask;
73 CPU_Counter_ticks accumulated;
74 CPU_Counter_ticks interval;
79#define SPARC_COUNTER_DEFINITION \
80 SPARC_Counter _SPARC_Counter = { \
81 .read_isr_disabled = _SPARC_Counter_read_default, \
82 .read = _SPARC_Counter_read_default \
ssize_t read(int fd, void *buffer, size_t count)
Definition: read.c:46
Definition: sparc-counter.h:67