OSDN Git Service

nouveau: prototype PFIFO/PGRAPH engtab API
authorBen Skeggs <skeggsb@gmail.com>
Sun, 24 Jun 2007 08:54:51 +0000 (18:54 +1000)
committerBen Skeggs <skeggsb@gmail.com>
Sun, 24 Jun 2007 08:54:51 +0000 (18:54 +1000)
shared-core/nouveau_drv.h

index 89b284c..093a93c 100644 (file)
@@ -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;
 };