mirror of https://github.com/thesofproject/sof.git
platform: refactor: unify */platform/timer.h functions and variables
For cnl&apl removed platform_timer_register from public api and made it static. For byt&hsw moved platform_timer to platform.h (just like it is for cnl&apl). Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
parent
b164895386
commit
abb2591abd
|
@ -53,8 +53,6 @@ void platform_timer_clear(struct timer *timer);
|
|||
uint64_t platform_timer_get(struct timer *timer);
|
||||
void platform_timer_start(struct timer *timer);
|
||||
void platform_timer_stop(struct timer *timer);
|
||||
int platform_timer_register(struct timer *timer,
|
||||
void (*handler)(void *arg), void *arg);
|
||||
|
||||
/* get timestamp for host stream DMA position */
|
||||
void platform_host_timestamp(struct comp_dev *host,
|
||||
|
|
|
@ -112,4 +112,7 @@ static inline void platform_panic(uint32_t p)
|
|||
/* Platform defined trace code */
|
||||
#define platform_trace_point(__x) \
|
||||
shim_write(SHIM_IPCXL, (__x & 0x3fffffff))
|
||||
|
||||
extern struct timer *platform_timer;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -47,8 +47,6 @@
|
|||
struct comp_dev;
|
||||
struct sof_ipc_stream_posn;
|
||||
|
||||
extern struct timer *platform_timer;
|
||||
|
||||
int platform_timer_set(struct timer *timer, uint64_t ticks);
|
||||
void platform_timer_clear(struct timer *timer);
|
||||
uint64_t platform_timer_get(struct timer *timer);
|
||||
|
|
|
@ -54,8 +54,6 @@ void platform_timer_clear(struct timer *timer);
|
|||
uint64_t platform_timer_get(struct timer *timer);
|
||||
void platform_timer_start(struct timer *timer);
|
||||
void platform_timer_stop(struct timer *timer);
|
||||
int platform_timer_register(struct timer *timer,
|
||||
void (*handler)(void *arg), void *arg);
|
||||
|
||||
/* get timestamp for host stream DMA position */
|
||||
void platform_host_timestamp(struct comp_dev *host,
|
||||
|
|
|
@ -111,4 +111,7 @@ static inline void platform_panic(uint32_t p)
|
|||
/* Platform defined trace code */
|
||||
#define platform_trace_point(__x) \
|
||||
shim_write(SHIM_IPCX, ((__x) & 0x3fffffff))
|
||||
|
||||
extern struct timer *platform_timer;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -46,8 +46,6 @@
|
|||
struct comp_dev;
|
||||
struct sof_ipc_stream_posn;
|
||||
|
||||
extern struct timer *platform_timer;
|
||||
|
||||
int platform_timer_set(struct timer *timer, uint64_t ticks);
|
||||
void platform_timer_clear(struct timer *timer);
|
||||
uint64_t platform_timer_get(struct timer *timer);
|
||||
|
|
|
@ -114,7 +114,7 @@ void platform_dai_wallclock(struct comp_dev *dai, uint64_t *wallclock)
|
|||
*wallclock = shim_read64(SHIM_DSPWC);
|
||||
}
|
||||
|
||||
int platform_timer_register(struct timer *timer,
|
||||
static int platform_timer_register(struct timer *timer,
|
||||
void (*handler)(void *arg), void *arg)
|
||||
{
|
||||
return interrupt_register(timer->irq, handler, arg);
|
||||
|
|
Loading…
Reference in New Issue