summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-06-24 18:54:51 +1000
committerBen Skeggs <skeggsb@gmail.com>2007-06-24 18:54:51 +1000
commit24b71c318a00dfbb18b2bbf6652e3b781175c430 (patch)
treea874cc1e6d0800680491d08cd1810b081f1ce6e2
parent5c7c07fd49b154623f9dfdab1fe1f2cda8508036 (diff)
nouveau: prototype PFIFO/PGRAPH engtab API
-rw-r--r--shared-core/nouveau_drv.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/shared-core/nouveau_drv.h b/shared-core/nouveau_drv.h
index 89b284c3..093a93c5 100644
--- a/shared-core/nouveau_drv.h
+++ b/shared-core/nouveau_drv.h
@@ -116,13 +116,23 @@ struct nouveau_engine_func {
} fb;
struct {
- int (*init)(drm_device_t *dev);
- void (*takedown)(drm_device_t *dev);
+ int (*init)(drm_device_t *);
+ void (*takedown)(drm_device_t *);
+
+ int (*create_context)(drm_device_t *, int channel);
+ void (*destroy_context)(drm_device_t *, int channel);
+ int (*load_context)(drm_device_t *, int channel);
+ int (*save_context)(drm_device_t *, int channel);
} graph;
struct {
- int (*init)(drm_device_t *dev);
- void (*takedown)(drm_device_t *dev);
+ int (*init)(drm_device_t *);
+ void (*takedown)(drm_device_t *);
+
+ int (*create_context)(drm_device_t *, int channel);
+ void (*destroy_context)(drm_device_t *, int channel);
+ int (*load_context)(drm_device_t *, int channel);
+ int (*save_context)(drm_device_t *, int channel);
} fifo;
};