drm/nouveau/therm: convert to new-style nvkm_subdev
[deliverable/linux.git] / drivers / gpu / drm / nouveau / nvkm / subdev / timer / nv04.h
CommitLineData
57f74220
BS
1#ifndef __NVKM_TIMER_NV04_H__
2#define __NVKM_TIMER_NV04_H__
57f74220
BS
3#include "priv.h"
4
5#define NV04_PTIMER_INTR_0 0x009100
6#define NV04_PTIMER_INTR_EN_0 0x009140
7#define NV04_PTIMER_NUMERATOR 0x009200
8#define NV04_PTIMER_DENOMINATOR 0x009210
9#define NV04_PTIMER_TIME_0 0x009400
10#define NV04_PTIMER_TIME_1 0x009410
11#define NV04_PTIMER_ALARM_0 0x009420
12
cb8bb9ce 13struct nv04_timer {
9e79a853 14 struct nvkm_timer base;
57f74220
BS
15 struct list_head alarms;
16 spinlock_t lock;
17 u64 suspend_time;
18};
19
9e79a853
BS
20int nv04_timer_ctor(struct nvkm_object *, struct nvkm_object *,
21 struct nvkm_oclass *, void *, u32,
22 struct nvkm_object **);
23void nv04_timer_dtor(struct nvkm_object *);
24int nv04_timer_fini(struct nvkm_object *, bool);
57f74220 25#endif
This page took 0.123036 seconds and 5 git commands to generate.