From c41b494c47f8e514e69cb8c2f2ace41d5fa17c94 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Fri, 23 Nov 2012 12:40:30 +1000 Subject: nouveau: expose channel engine selection on kepler chipsets v2: Take Maarten Lankhorst's suggestion of nesting the struct to prevent sizeof() issues due to padding on older revisions. Signed-off-by: Ben Skeggs Signed-off-by: Maarten Lankhorst --- nouveau/nouveau.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'nouveau/nouveau.h') diff --git a/nouveau/nouveau.h b/nouveau/nouveau.h index c42eea7a..a55e2b02 100644 --- a/nouveau/nouveau.h +++ b/nouveau/nouveau.h @@ -41,6 +41,22 @@ struct nvc0_fifo { uint32_t notify; }; +#define NVE0_FIFO_ENGINE_GR 0x00000001 +#define NVE0_FIFO_ENGINE_VP 0x00000002 +#define NVE0_FIFO_ENGINE_PPP 0x00000004 +#define NVE0_FIFO_ENGINE_BSP 0x00000008 +#define NVE0_FIFO_ENGINE_CE0 0x00000010 +#define NVE0_FIFO_ENGINE_CE1 0x00000020 +#define NVE0_FIFO_ENGINE_ENC 0x00000040 + +struct nve0_fifo { + struct { + struct nouveau_fifo base; + uint32_t notify; + }; + uint32_t engine; +}; + struct nv04_notify { struct nouveau_object *object; uint32_t offset; -- cgit v1.2.3