drm/nouveau/timer: namespace + nvidia gpu names (no binary change)
authorBen Skeggs <bskeggs@redhat.com>
Wed, 14 Jan 2015 05:12:11 +0000 (15:12 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 22 Jan 2015 02:17:58 +0000 (12:17 +1000)
The namespace of NVKM is being changed to nvkm_ instead of nouveau_,
which will be used for the DRM part of the driver.  This is being
done in order to make it very clear as to what part of the driver a
given symbol belongs to, and as a minor step towards splitting the
DRM driver out to be able to stand on its own (for virt).

Because there's already a large amount of churn here anyway, this is
as good a time as any to also switch to NVIDIA's device and chipset
naming to ease collaboration with them.

A comparison of objdump disassemblies proves no code changes.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
26 files changed:
drivers/gpu/drm/nouveau/include/nvkm/subdev/timer.h
drivers/gpu/drm/nouveau/nvkm/engine/falcon.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/nvc0.h
drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk104.c
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c
drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c
drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf110.c
drivers/gpu/drm/nouveau/nvkm/subdev/therm/gm107.c
drivers/gpu/drm/nouveau/nvkm/subdev/therm/gt215.c
drivers/gpu/drm/nouveau/nvkm/subdev/therm/nv40.c
drivers/gpu/drm/nouveau/nvkm/subdev/therm/nv50.c
drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/timer/gk20a.c
drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv04.c
drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv04.h
drivers/gpu/drm/nouveau/nvkm/subdev/timer/priv.h

index 36b5184e35ec8f51e23399bb2c36ebf9c786294c..4ad55082ef7ade89e0945e13010fc1ff04f0b267 100644 (file)
@@ -1,64 +1,61 @@
-#ifndef __NOUVEAU_TIMER_H__
-#define __NOUVEAU_TIMER_H__
-
+#ifndef __NVKM_TIMER_H__
+#define __NVKM_TIMER_H__
 #include <core/subdev.h>
-#include <core/device.h>
 
-struct nouveau_alarm {
+struct nvkm_alarm {
        struct list_head head;
        u64 timestamp;
-       void (*func)(struct nouveau_alarm *);
+       void (*func)(struct nvkm_alarm *);
 };
 
 static inline void
-nouveau_alarm_init(struct nouveau_alarm *alarm,
-                  void (*func)(struct nouveau_alarm *))
+nvkm_alarm_init(struct nvkm_alarm *alarm,
+                  void (*func)(struct nvkm_alarm *))
 {
        INIT_LIST_HEAD(&alarm->head);
        alarm->func = func;
 }
 
-bool nouveau_timer_wait_eq(void *, u64 nsec, u32 addr, u32 mask, u32 data);
-bool nouveau_timer_wait_ne(void *, u64 nsec, u32 addr, u32 mask, u32 data);
-bool nouveau_timer_wait_cb(void *, u64 nsec, bool (*func)(void *), void *data);
-void nouveau_timer_alarm(void *, u32 nsec, struct nouveau_alarm *);
-void nouveau_timer_alarm_cancel(void *, struct nouveau_alarm *);
+bool nvkm_timer_wait_eq(void *, u64 nsec, u32 addr, u32 mask, u32 data);
+bool nvkm_timer_wait_ne(void *, u64 nsec, u32 addr, u32 mask, u32 data);
+bool nvkm_timer_wait_cb(void *, u64 nsec, bool (*func)(void *), void *data);
+void nvkm_timer_alarm(void *, u32 nsec, struct nvkm_alarm *);
+void nvkm_timer_alarm_cancel(void *, struct nvkm_alarm *);
 
 #define NV_WAIT_DEFAULT 2000000000ULL
 #define nv_wait(o,a,m,v)                                                       \
-       nouveau_timer_wait_eq((o), NV_WAIT_DEFAULT, (a), (m), (v))
+       nvkm_timer_wait_eq((o), NV_WAIT_DEFAULT, (a), (m), (v))
 #define nv_wait_ne(o,a,m,v)                                                    \
-       nouveau_timer_wait_ne((o), NV_WAIT_DEFAULT, (a), (m), (v))
+       nvkm_timer_wait_ne((o), NV_WAIT_DEFAULT, (a), (m), (v))
 #define nv_wait_cb(o,c,d)                                                      \
-       nouveau_timer_wait_cb((o), NV_WAIT_DEFAULT, (c), (d))
+       nvkm_timer_wait_cb((o), NV_WAIT_DEFAULT, (c), (d))
 
-struct nouveau_timer {
-       struct nouveau_subdev base;
-       u64  (*read)(struct nouveau_timer *);
-       void (*alarm)(struct nouveau_timer *, u64 time, struct nouveau_alarm *);
-       void (*alarm_cancel)(struct nouveau_timer *, struct nouveau_alarm *);
+struct nvkm_timer {
+       struct nvkm_subdev base;
+       u64  (*read)(struct nvkm_timer *);
+       void (*alarm)(struct nvkm_timer *, u64 time, struct nvkm_alarm *);
+       void (*alarm_cancel)(struct nvkm_timer *, struct nvkm_alarm *);
 };
 
-static inline struct nouveau_timer *
-nouveau_timer(void *obj)
+static inline struct nvkm_timer *
+nvkm_timer(void *obj)
 {
-       return (void *)nouveau_subdev(obj, NVDEV_SUBDEV_TIMER);
+       return (void *)nvkm_subdev(obj, NVDEV_SUBDEV_TIMER);
 }
 
-#define nouveau_timer_create(p,e,o,d)                                          \
-       nouveau_subdev_create_((p), (e), (o), 0, "PTIMER", "timer",            \
+#define nvkm_timer_create(p,e,o,d)                                          \
+       nvkm_subdev_create_((p), (e), (o), 0, "PTIMER", "timer",            \
                               sizeof(**d), (void **)d)
-#define nouveau_timer_destroy(p)                                               \
-       nouveau_subdev_destroy(&(p)->base)
-#define nouveau_timer_init(p)                                                  \
-       nouveau_subdev_init(&(p)->base)
-#define nouveau_timer_fini(p,s)                                                \
-       nouveau_subdev_fini(&(p)->base, (s))
-
-int nouveau_timer_create_(struct nouveau_object *, struct nouveau_engine *,
-                         struct nouveau_oclass *, int size, void **);
-
-extern struct nouveau_oclass nv04_timer_oclass;
-extern struct nouveau_oclass gk20a_timer_oclass;
-
+#define nvkm_timer_destroy(p)                                               \
+       nvkm_subdev_destroy(&(p)->base)
+#define nvkm_timer_init(p)                                                  \
+       nvkm_subdev_init(&(p)->base)
+#define nvkm_timer_fini(p,s)                                                \
+       nvkm_subdev_fini(&(p)->base, (s))
+
+int nvkm_timer_create_(struct nvkm_object *, struct nvkm_engine *,
+                         struct nvkm_oclass *, int size, void **);
+
+extern struct nvkm_oclass nv04_timer_oclass;
+extern struct nvkm_oclass gk20a_timer_oclass;
 #endif
index f6e9ae95c822498a8005e81543cff34e6271011f..30958c19e61d917b772fab0d1205636532fd6093 100644 (file)
@@ -21,6 +21,7 @@
  */
 #include <engine/falcon.h>
 
+#include <core/device.h>
 #include <subdev/timer.h>
 
 void
index 6f51ae0daecf7f64562bac70488cda41b630f2b8..1b384bd5994e4ed69e96273a6d0157cb14d643c9 100644 (file)
@@ -23,6 +23,7 @@
  */
 
 #include <core/client.h>
+#include <core/device.h>
 #include <nvif/unpack.h>
 #include <nvif/class.h>
 #include <core/engctx.h>
index 4d25c9532b2bd90ad45bdf36380f402eb6996ffd..5dda6ed846bacd8041214dc59de4144bf1ea117c 100644 (file)
@@ -23,6 +23,7 @@
  */
 
 #include <core/client.h>
+#include <core/device.h>
 #include <core/os.h>
 #include <core/handle.h>
 #include <core/namedb.h>
index 8caf0c338425ab57847972ae0eb3f51cf0969861..9841b4e5964de0a348594d886cd058553d2db197 100644 (file)
@@ -1,4 +1,5 @@
 #include <core/client.h>
+#include <core/device.h>
 #include <core/os.h>
 #include <core/engctx.h>
 #include <core/handle.h>
index d9d85508cbcfb773faeadc053760fd8687d15bf7..6a8e0022f8af7cd94558652d6e994be6784bb4cc 100644 (file)
@@ -1,4 +1,5 @@
 #include <core/os.h>
+#include <core/device.h>
 #include <core/engctx.h>
 #include <core/enum.h>
 
index bd7687c683c84904551bb8c2ec54e425d4839294..9d7fcbd965221e158cc5bc20f79cedfc8813d541 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <core/os.h>
 #include <core/client.h>
+#include <core/device.h>
 #include <core/handle.h>
 #include <core/engctx.h>
 #include <core/enum.h>
index 413def63be0e1ed40e218f734e95b0707109e32c..2f2ed95fe93604bb659b3a05c308d20d1966ea6e 100644 (file)
@@ -26,6 +26,7 @@
 #define __NVC0_GR_H__
 
 #include <core/client.h>
+#include <core/device.h>
 #include <core/handle.h>
 #include <core/gpuobj.h>
 #include <core/option.h>
index 36c5c083c1e9303737dcc0d59ce62dc3b3eef133..8548adb91dcc5694b483db3767a2413dc792ff23 100644 (file)
@@ -23,6 +23,7 @@
  */
 #include "priv.h"
 
+#include <core/device.h>
 #include <core/gpuobj.h>
 #include <subdev/fb.h>
 #include <subdev/mmu.h>
index e8125b5199a47d43b205e7671a292decaee5d434..3d7330d54b02d8eef081838d708a1677582882e8 100644 (file)
@@ -24,6 +24,7 @@
 #include <subdev/clk.h>
 #include "pll.h"
 
+#include <core/device.h>
 #include <subdev/bios.h>
 #include <subdev/bios/pll.h>
 #include <subdev/timer.h>
index e380d62df23202206db3a6c10a48748d82e35fd0..e9b2310bdfbbeb7f7b070c9af2c43026a12f6cbf 100644 (file)
@@ -24,6 +24,7 @@
 #include <subdev/clk.h>
 #include "pll.h"
 
+#include <core/device.h>
 #include <subdev/timer.h>
 #include <subdev/bios.h>
 #include <subdev/bios/pll.h>
index 94d3839fd444d252c38cbadaa85558e81a2f5204..65c532742b08d1c63fd62964c3bbc26d48d2da59 100644 (file)
@@ -25,6 +25,8 @@
 #include <subdev/clk.h>
 #include <subdev/timer.h>
 
+#include <core/device.h>
+
 #ifdef __KERNEL__
 #include <nouveau_platform.h>
 #endif
index 99e3ca3b0890611da387b6907a54c7b79842a286..822d32a28d6e15a38f8c9db722288c27c9349d41 100644 (file)
@@ -25,6 +25,7 @@
 #include "gt215.h"
 #include "pll.h"
 
+#include <core/device.h>
 #include <engine/fifo.h>
 #include <subdev/bios.h>
 #include <subdev/bios/pll.h>
index d735de2dbd74c2991487c1e9c8e2dd155a16f3c7..c54417b146c7af257f01e866ab24b26c4e5c6767 100644 (file)
@@ -24,6 +24,7 @@
 #include "gt215.h"
 #include "pll.h"
 
+#include <core/device.h>
 #include <subdev/bios.h>
 #include <subdev/bios/pll.h>
 #include <subdev/timer.h>
index a36a90c29ba9025e8c5891c3ed79a5a884f2d846..3d31fa45c1a6f371448f5003e1ba0c0ba4b57c69 100644 (file)
@@ -23,6 +23,7 @@
  */
 #include "nv40.h"
 
+#include <core/device.h>
 #include <subdev/bios.h>
 #include <subdev/bios/bit.h>
 #include <subdev/bios/init.h>
index 3cf4192a33af93157c1ff817a25cd5dd01d67727..bde5ceaeb70aeacf738cde0471de39d19f5e1be3 100644 (file)
@@ -24,6 +24,7 @@
  */
 #include "priv.h"
 
+#include <core/device.h>
 #include <core/option.h>
 #include <subdev/bios.h>
 #include <subdev/bios/fan.h>
index 0540e6886d7d32170f3c4122dbebe59e3386872f..46b7e656a752a0f6f27371356f536db8a1e30cc5 100644 (file)
@@ -23,6 +23,8 @@
  */
 #include "priv.h"
 
+#include <core/device.h>
+
 struct gf110_therm_priv {
        struct nvkm_therm_priv base;
 };
index c1f3cf3618378b3441ea3caab3d920522204305c..2fd110f09878463a3976493700b997eea06f404c 100644 (file)
@@ -23,6 +23,8 @@
  */
 #include "priv.h"
 
+#include <core/device.h>
+
 struct gm107_therm_priv {
        struct nvkm_therm_priv base;
 };
index b7fa4716ca9f7046e7f81623b88dc45bf10f24ca..e99be20332f2d4ba934c742d8536bb009a0c42aa 100644 (file)
@@ -23,6 +23,7 @@
  */
 #include "priv.h"
 
+#include <core/device.h>
 #include <subdev/gpio.h>
 
 struct gt215_therm_priv {
index 20f65fd7679aed24ee76db6a3c8104001389231d..8496fffd46888511cdcd9ea0c0f72939d8252589 100644 (file)
@@ -24,6 +24,8 @@
  */
 #include "priv.h"
 
+#include <core/device.h>
+
 struct nv40_therm_priv {
        struct nvkm_therm_priv base;
 };
index 489dcf355d3464c340f07546e42ae5972ca41994..1ef59e8922d491588c625d5fc2714343e6ab8cb2 100644 (file)
@@ -24,6 +24,8 @@
  */
 #include "priv.h"
 
+#include <core/device.h>
+
 struct nv50_therm_priv {
        struct nvkm_therm_priv base;
 };
index cf8a0e0f8ee31d27454b1aa2752dcf0ec99c0dca..d894061ced528941032daa0c3e03f94c329d20b3 100644 (file)
  *
  * Authors: Ben Skeggs
  */
-
-#include "subdev/timer.h"
+#include <subdev/timer.h>
 
 bool
-nouveau_timer_wait_eq(void *obj, u64 nsec, u32 addr, u32 mask, u32 data)
+nvkm_timer_wait_eq(void *obj, u64 nsec, u32 addr, u32 mask, u32 data)
 {
-       struct nouveau_timer *ptimer = nouveau_timer(obj);
+       struct nvkm_timer *ptimer = nvkm_timer(obj);
        u64 time0;
 
        time0 = ptimer->read(ptimer);
@@ -45,9 +44,9 @@ nouveau_timer_wait_eq(void *obj, u64 nsec, u32 addr, u32 mask, u32 data)
 }
 
 bool
-nouveau_timer_wait_ne(void *obj, u64 nsec, u32 addr, u32 mask, u32 data)
+nvkm_timer_wait_ne(void *obj, u64 nsec, u32 addr, u32 mask, u32 data)
 {
-       struct nouveau_timer *ptimer = nouveau_timer(obj);
+       struct nvkm_timer *ptimer = nvkm_timer(obj);
        u64 time0;
 
        time0 = ptimer->read(ptimer);
@@ -65,9 +64,9 @@ nouveau_timer_wait_ne(void *obj, u64 nsec, u32 addr, u32 mask, u32 data)
 }
 
 bool
-nouveau_timer_wait_cb(void *obj, u64 nsec, bool (*func)(void *), void *data)
+nvkm_timer_wait_cb(void *obj, u64 nsec, bool (*func)(void *), void *data)
 {
-       struct nouveau_timer *ptimer = nouveau_timer(obj);
+       struct nvkm_timer *ptimer = nvkm_timer(obj);
        u64 time0;
 
        time0 = ptimer->read(ptimer);
@@ -80,15 +79,15 @@ nouveau_timer_wait_cb(void *obj, u64 nsec, bool (*func)(void *), void *data)
 }
 
 void
-nouveau_timer_alarm(void *obj, u32 nsec, struct nouveau_alarm *alarm)
+nvkm_timer_alarm(void *obj, u32 nsec, struct nvkm_alarm *alarm)
 {
-       struct nouveau_timer *ptimer = nouveau_timer(obj);
+       struct nvkm_timer *ptimer = nvkm_timer(obj);
        ptimer->alarm(ptimer, nsec, alarm);
 }
 
 void
-nouveau_timer_alarm_cancel(void *obj, struct nouveau_alarm *alarm)
+nvkm_timer_alarm_cancel(void *obj, struct nvkm_alarm *alarm)
 {
-       struct nouveau_timer *ptimer = nouveau_timer(obj);
+       struct nvkm_timer *ptimer = nvkm_timer(obj);
        ptimer->alarm_cancel(ptimer, alarm);
 }
index 37484db1f7fc36c4071540538c65908bbb0c5267..80e38063dd9bac36ce1d270d133dc8bb670fb28c 100644 (file)
  *
  * Authors: Ben Skeggs
  */
-
 #include "nv04.h"
 
 static int
-gk20a_timer_init(struct nouveau_object *object)
+gk20a_timer_init(struct nvkm_object *object)
 {
        struct nv04_timer_priv *priv = (void *)object;
        u32 hi = upper_32_bits(priv->suspend_time);
        u32 lo = lower_32_bits(priv->suspend_time);
        int ret;
 
-       ret = nouveau_timer_init(&priv->base);
+       ret = nvkm_timer_init(&priv->base);
        if (ret)
                return ret;
 
@@ -45,10 +44,10 @@ gk20a_timer_init(struct nouveau_object *object)
        return 0;
 }
 
-struct nouveau_oclass
+struct nvkm_oclass
 gk20a_timer_oclass = {
        .handle = NV_SUBDEV(TIMER, 0xff),
-       .ofuncs = &(struct nouveau_ofuncs) {
+       .ofuncs = &(struct nvkm_ofuncs) {
                .ctor = nv04_timer_ctor,
                .dtor = nv04_timer_dtor,
                .init = gk20a_timer_init,
index 240ed0b983a9714ff12da2b43133b76cb9befd20..6b7facbe59a26df75e6fbe90f0445a20c0f978be 100644 (file)
  *
  * Authors: Ben Skeggs
  */
-
 #include "nv04.h"
 
+#include <core/device.h>
+
 static u64
-nv04_timer_read(struct nouveau_timer *ptimer)
+nv04_timer_read(struct nvkm_timer *ptimer)
 {
        struct nv04_timer_priv *priv = (void *)ptimer;
        u32 hi, lo;
@@ -39,10 +40,10 @@ nv04_timer_read(struct nouveau_timer *ptimer)
 }
 
 static void
-nv04_timer_alarm_trigger(struct nouveau_timer *ptimer)
+nv04_timer_alarm_trigger(struct nvkm_timer *ptimer)
 {
        struct nv04_timer_priv *priv = (void *)ptimer;
-       struct nouveau_alarm *alarm, *atemp;
+       struct nvkm_alarm *alarm, *atemp;
        unsigned long flags;
        LIST_HEAD(exec);
 
@@ -71,11 +72,10 @@ nv04_timer_alarm_trigger(struct nouveau_timer *ptimer)
 }
 
 static void
-nv04_timer_alarm(struct nouveau_timer *ptimer, u64 time,
-                struct nouveau_alarm *alarm)
+nv04_timer_alarm(struct nvkm_timer *ptimer, u64 time, struct nvkm_alarm *alarm)
 {
        struct nv04_timer_priv *priv = (void *)ptimer;
-       struct nouveau_alarm *list;
+       struct nvkm_alarm *list;
        unsigned long flags;
 
        alarm->timestamp = ptimer->read(ptimer) + time;
@@ -99,8 +99,7 @@ nv04_timer_alarm(struct nouveau_timer *ptimer, u64 time,
 }
 
 static void
-nv04_timer_alarm_cancel(struct nouveau_timer *ptimer,
-                       struct nouveau_alarm *alarm)
+nv04_timer_alarm_cancel(struct nvkm_timer *ptimer, struct nvkm_alarm *alarm)
 {
        struct nv04_timer_priv *priv = (void *)ptimer;
        unsigned long flags;
@@ -110,7 +109,7 @@ nv04_timer_alarm_cancel(struct nouveau_timer *ptimer,
 }
 
 static void
-nv04_timer_intr(struct nouveau_subdev *subdev)
+nv04_timer_intr(struct nvkm_subdev *subdev)
 {
        struct nv04_timer_priv *priv = (void *)subdev;
        u32 stat = nv_rd32(priv, NV04_PTIMER_INTR_0);
@@ -128,24 +127,24 @@ nv04_timer_intr(struct nouveau_subdev *subdev)
 }
 
 int
-nv04_timer_fini(struct nouveau_object *object, bool suspend)
+nv04_timer_fini(struct nvkm_object *object, bool suspend)
 {
        struct nv04_timer_priv *priv = (void *)object;
        if (suspend)
                priv->suspend_time = nv04_timer_read(&priv->base);
        nv_wr32(priv, NV04_PTIMER_INTR_EN_0, 0x00000000);
-       return nouveau_timer_fini(&priv->base, suspend);
+       return nvkm_timer_fini(&priv->base, suspend);
 }
 
 static int
-nv04_timer_init(struct nouveau_object *object)
+nv04_timer_init(struct nvkm_object *object)
 {
-       struct nouveau_device *device = nv_device(object);
+       struct nvkm_device *device = nv_device(object);
        struct nv04_timer_priv *priv = (void *)object;
        u32 m = 1, f, n, d, lo, hi;
        int ret;
 
-       ret = nouveau_timer_init(&priv->base);
+       ret = nvkm_timer_init(&priv->base);
        if (ret)
                return ret;
 
@@ -155,7 +154,7 @@ nv04_timer_init(struct nouveau_object *object)
        /* determine base clock for timer source */
 #if 0 /*XXX*/
        if (device->chipset < 0x40) {
-               n = nouveau_hw_get_clock(device, PLL_CORE);
+               n = nvkm_hw_get_clock(device, PLL_CORE);
        } else
 #endif
        if (device->chipset <= 0x40) {
@@ -217,26 +216,25 @@ nv04_timer_init(struct nouveau_object *object)
        nv_wr32(priv, NV04_PTIMER_INTR_EN_0, 0x00000000);
        nv_wr32(priv, NV04_PTIMER_TIME_1, hi);
        nv_wr32(priv, NV04_PTIMER_TIME_0, lo);
-
        return 0;
 }
 
 void
-nv04_timer_dtor(struct nouveau_object *object)
+nv04_timer_dtor(struct nvkm_object *object)
 {
        struct nv04_timer_priv *priv = (void *)object;
-       return nouveau_timer_destroy(&priv->base);
+       return nvkm_timer_destroy(&priv->base);
 }
 
 int
-nv04_timer_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
-               struct nouveau_oclass *oclass, void *data, u32 size,
-               struct nouveau_object **pobject)
+nv04_timer_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
+               struct nvkm_oclass *oclass, void *data, u32 size,
+               struct nvkm_object **pobject)
 {
        struct nv04_timer_priv *priv;
        int ret;
 
-       ret = nouveau_timer_create(parent, engine, oclass, &priv);
+       ret = nvkm_timer_create(parent, engine, oclass, &priv);
        *pobject = nv_object(priv);
        if (ret)
                return ret;
@@ -252,10 +250,10 @@ nv04_timer_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
        return 0;
 }
 
-struct nouveau_oclass
+struct nvkm_oclass
 nv04_timer_oclass = {
        .handle = NV_SUBDEV(TIMER, 0x04),
-       .ofuncs = &(struct nouveau_ofuncs) {
+       .ofuncs = &(struct nvkm_ofuncs) {
                .ctor = nv04_timer_ctor,
                .dtor = nv04_timer_dtor,
                .init = nv04_timer_init,
index 4bc152697c37b2c81fd0f4c607a3575e8a416cdf..89996a9826b19e452c4693926448181b6f408eeb 100644 (file)
@@ -1,6 +1,5 @@
 #ifndef __NVKM_TIMER_NV04_H__
 #define __NVKM_TIMER_NV04_H__
-
 #include "priv.h"
 
 #define NV04_PTIMER_INTR_0      0x009100
 #define NV04_PTIMER_ALARM_0     0x009420
 
 struct nv04_timer_priv {
-       struct nouveau_timer base;
+       struct nvkm_timer base;
        struct list_head alarms;
        spinlock_t lock;
        u64 suspend_time;
 };
 
-int  nv04_timer_ctor(struct nouveau_object *, struct nouveau_object *,
-                    struct nouveau_oclass *, void *, u32,
-                    struct nouveau_object **);
-void nv04_timer_dtor(struct nouveau_object *);
-int  nv04_timer_fini(struct nouveau_object *, bool);
-
+int  nv04_timer_ctor(struct nvkm_object *, struct nvkm_object *,
+                    struct nvkm_oclass *, void *, u32,
+                    struct nvkm_object **);
+void nv04_timer_dtor(struct nvkm_object *);
+int  nv04_timer_fini(struct nvkm_object *, bool);
 #endif
index 799dae3f230022297a2d97d363caf0ee63ce485c..08e29a3da188123b53e32f7d635ba70b13bdac16 100644 (file)
@@ -1,6 +1,4 @@
 #ifndef __NVKM_TIMER_PRIV_H__
 #define __NVKM_TIMER_PRIV_H__
-
 #include <subdev/timer.h>
-
 #endif