Ben Skeggs | 3bfcec3 | 2013-10-03 07:17:02 +1000 | [diff] [blame] | 1 | #ifndef __NVKM_SW_NV50_H__ |
| 2 | #define __NVKM_SW_NV50_H__ |
| 3 | |
| 4 | #include <engine/software.h> |
| 5 | |
Ben Skeggs | c46c3dd | 2013-10-03 07:30:11 +1000 | [diff] [blame] | 6 | struct nv50_software_oclass { |
| 7 | struct nouveau_oclass base; |
Ben Skeggs | 7589563 | 2013-10-03 07:42:41 +1000 | [diff] [blame^] | 8 | struct nouveau_oclass *cclass; |
| 9 | struct nouveau_oclass *sclass; |
Ben Skeggs | c46c3dd | 2013-10-03 07:30:11 +1000 | [diff] [blame] | 10 | }; |
| 11 | |
Ben Skeggs | 3bfcec3 | 2013-10-03 07:17:02 +1000 | [diff] [blame] | 12 | struct nv50_software_priv { |
| 13 | struct nouveau_software base; |
| 14 | }; |
| 15 | |
Ben Skeggs | 7589563 | 2013-10-03 07:42:41 +1000 | [diff] [blame^] | 16 | int nv50_software_ctor(struct nouveau_object *, struct nouveau_object *, |
| 17 | struct nouveau_oclass *, void *, u32, |
| 18 | struct nouveau_object **); |
| 19 | |
| 20 | struct nv50_software_cclass { |
| 21 | struct nouveau_oclass base; |
| 22 | int (*vblank)(struct nouveau_eventh *, int); |
| 23 | }; |
| 24 | |
Ben Skeggs | 3bfcec3 | 2013-10-03 07:17:02 +1000 | [diff] [blame] | 25 | struct nv50_software_chan { |
| 26 | struct nouveau_software_chan base; |
Ben Skeggs | ef8d478 | 2013-10-03 07:21:34 +1000 | [diff] [blame] | 27 | struct { |
| 28 | struct nouveau_eventh event; |
| 29 | u32 channel; |
| 30 | u32 ctxdma; |
| 31 | u64 offset; |
| 32 | u32 value; |
| 33 | } vblank; |
Ben Skeggs | 3bfcec3 | 2013-10-03 07:17:02 +1000 | [diff] [blame] | 34 | }; |
| 35 | |
Ben Skeggs | 7589563 | 2013-10-03 07:42:41 +1000 | [diff] [blame^] | 36 | int nv50_software_context_ctor(struct nouveau_object *, |
| 37 | struct nouveau_object *, |
| 38 | struct nouveau_oclass *, void *, u32, |
| 39 | struct nouveau_object **); |
| 40 | |
Ben Skeggs | 3bfcec3 | 2013-10-03 07:17:02 +1000 | [diff] [blame] | 41 | #endif |