From: Ben Skeggs Date: Sun, 24 Jun 2007 08:54:51 +0000 (+1000) Subject: nouveau: prototype PFIFO/PGRAPH engtab API X-Git-Tag: android-x86-1.6~529^2~262 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=24b71c318a00dfbb18b2bbf6652e3b781175c430;p=android-x86%2Fexternal-libdrm.git nouveau: prototype PFIFO/PGRAPH engtab API --- 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; };