Marcin Slusarz
2012-Oct-07 22:49 UTC
[Nouveau] [PATCH] drm/nouveau: add some comments about class fields
Signed-off-by: Marcin Slusarz <marcin.slusarz at gmail.com> --- drivers/gpu/drm/nouveau/core/include/core/engine.h | 4 ++++ drivers/gpu/drm/nouveau/core/include/core/parent.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/gpu/drm/nouveau/core/include/core/engine.h b/drivers/gpu/drm/nouveau/core/include/core/engine.h index 666d06d..09b2828 100644 --- a/drivers/gpu/drm/nouveau/core/include/core/engine.h +++ b/drivers/gpu/drm/nouveau/core/include/core/engine.h @@ -9,7 +9,11 @@ struct nouveau_engine { struct nouveau_subdev base; + + /* context class */ struct nouveau_oclass *cclass; + + /* array of possible subclasses */ struct nouveau_oclass *sclass; struct list_head contexts; diff --git a/drivers/gpu/drm/nouveau/core/include/core/parent.h b/drivers/gpu/drm/nouveau/core/include/core/parent.h index 58bf6b5..31a32b0 100644 --- a/drivers/gpu/drm/nouveau/core/include/core/parent.h +++ b/drivers/gpu/drm/nouveau/core/include/core/parent.h @@ -13,6 +13,7 @@ struct nouveau_sclass { struct nouveau_parent { struct nouveau_object base; + /* subclass */ struct nouveau_sclass *sclass; u32 engine; -- 1.7.12