OSDN Git Service

nouveau: add interface to call an object's methods
authorBen Skeggs <bskeggs@redhat.com>
Mon, 23 Nov 2015 23:58:39 +0000 (09:58 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 22 Dec 2015 03:22:12 +0000 (13:22 +1000)
This will expose functionality supported by newer kernel interfaces,
giving access to things such as ZBC controls, perfmon, etc.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
nouveau/nouveau-symbol-check
nouveau/nouveau.c
nouveau/nouveau.h

index 0fef563..7330170 100755 (executable)
@@ -33,6 +33,7 @@ nouveau_device_wrap
 nouveau_getparam
 nouveau_object_del
 nouveau_object_find
+nouveau_object_mthd
 nouveau_object_new
 nouveau_pushbuf_bufctx
 nouveau_pushbuf_data
index eb741c7..1871e8c 100644 (file)
@@ -59,6 +59,13 @@ debug_init(char *args)
 }
 #endif
 
+int
+nouveau_object_mthd(struct nouveau_object *obj,
+                   uint32_t mthd, void *data, uint32_t size)
+{
+       return -ENODEV;
+}
+
 static void
 nouveau_object_fini(struct nouveau_object *obj)
 {
index 4adda0e..4c95409 100644 (file)
@@ -67,6 +67,8 @@ int  nouveau_object_new(struct nouveau_object *parent, uint64_t handle,
                        uint32_t oclass, void *data, uint32_t length,
                        struct nouveau_object **);
 void nouveau_object_del(struct nouveau_object **);
+int  nouveau_object_mthd(struct nouveau_object *, uint32_t mthd,
+                        void *data, uint32_t size);
 void *nouveau_object_find(struct nouveau_object *, uint32_t parent_class);
 
 struct nouveau_device {