aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov2015-03-23 16:52:00 -0500
committerEmil Velikov2015-04-28 05:19:15 -0500
commit76e9799b8a465bc3545823ed283a6c3a049c7524 (patch)
tree79fa5086d4e420fb7f32f6c0b1d2cc4551a6b5cd /nouveau
parenta418f2f89510f367eaef97b97c14c0cc573ae43a (diff)
downloadexternal-libgbm-76e9799b8a465bc3545823ed283a6c3a049c7524.tar.gz
external-libgbm-76e9799b8a465bc3545823ed283a6c3a049c7524.tar.xz
external-libgbm-76e9799b8a465bc3545823ed283a6c3a049c7524.zip
nouveau: annotate the private symbols
They are less and easier to track than the public ones. The macro drm_public will be going away by the end of the series. Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com> Cc: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'nouveau')
-rw-r--r--nouveau/abi16.c14
-rw-r--r--nouveau/nouveau.c2
-rw-r--r--nouveau/private.h18
3 files changed, 17 insertions, 17 deletions
diff --git a/nouveau/abi16.c b/nouveau/abi16.c
index ae13821b..538f3a73 100644
--- a/nouveau/abi16.c
+++ b/nouveau/abi16.c
@@ -33,7 +33,7 @@
33#include "private.h" 33#include "private.h"
34 34
35 35
36int 36drm_private int
37abi16_chan_nv04(struct nouveau_object *obj) 37abi16_chan_nv04(struct nouveau_object *obj)
38{ 38{
39 struct nouveau_device *dev = (struct nouveau_device *)obj->parent; 39 struct nouveau_device *dev = (struct nouveau_device *)obj->parent;
@@ -54,7 +54,7 @@ abi16_chan_nv04(struct nouveau_object *obj)
54 return 0; 54 return 0;
55} 55}
56 56
57int 57drm_private int
58abi16_chan_nvc0(struct nouveau_object *obj) 58abi16_chan_nvc0(struct nouveau_object *obj)
59{ 59{
60 struct nouveau_device *dev = (struct nouveau_device *)obj->parent; 60 struct nouveau_device *dev = (struct nouveau_device *)obj->parent;
@@ -75,7 +75,7 @@ abi16_chan_nvc0(struct nouveau_object *obj)
75 return 0; 75 return 0;
76} 76}
77 77
78int 78drm_private int
79abi16_chan_nve0(struct nouveau_object *obj) 79abi16_chan_nve0(struct nouveau_object *obj)
80{ 80{
81 struct nouveau_device *dev = (struct nouveau_device *)obj->parent; 81 struct nouveau_device *dev = (struct nouveau_device *)obj->parent;
@@ -101,7 +101,7 @@ abi16_chan_nve0(struct nouveau_object *obj)
101 return 0; 101 return 0;
102} 102}
103 103
104int 104drm_private int
105abi16_engobj(struct nouveau_object *obj) 105abi16_engobj(struct nouveau_object *obj)
106{ 106{
107 struct drm_nouveau_grobj_alloc req = { 107 struct drm_nouveau_grobj_alloc req = {
@@ -120,7 +120,7 @@ abi16_engobj(struct nouveau_object *obj)
120 return 0; 120 return 0;
121} 121}
122 122
123int 123drm_private int
124abi16_ntfy(struct nouveau_object *obj) 124abi16_ntfy(struct nouveau_object *obj)
125{ 125{
126 struct nv04_notify *ntfy = obj->data; 126 struct nv04_notify *ntfy = obj->data;
@@ -141,7 +141,7 @@ abi16_ntfy(struct nouveau_object *obj)
141 return 0; 141 return 0;
142} 142}
143 143
144void 144drm_private void
145abi16_bo_info(struct nouveau_bo *bo, struct drm_nouveau_gem_info *info) 145abi16_bo_info(struct nouveau_bo *bo, struct drm_nouveau_gem_info *info)
146{ 146{
147 struct nouveau_bo_priv *nvbo = nouveau_bo(bo); 147 struct nouveau_bo_priv *nvbo = nouveau_bo(bo);
@@ -175,7 +175,7 @@ abi16_bo_info(struct nouveau_bo *bo, struct drm_nouveau_gem_info *info)
175 } 175 }
176} 176}
177 177
178int 178drm_private int
179abi16_bo_init(struct nouveau_bo *bo, uint32_t alignment, 179abi16_bo_init(struct nouveau_bo *bo, uint32_t alignment,
180 union nouveau_bo_config *config) 180 union nouveau_bo_config *config)
181{ 181{
diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c
index 2d95b74b..5c8a0ec5 100644
--- a/nouveau/nouveau.c
+++ b/nouveau/nouveau.c
@@ -45,7 +45,7 @@
45#include "private.h" 45#include "private.h"
46 46
47#ifdef DEBUG 47#ifdef DEBUG
48uint32_t nouveau_debug = 0; 48drm_private uint32_t nouveau_debug = 0;
49 49
50static void 50static void
51debug_init(char *args) 51debug_init(char *args)
diff --git a/nouveau/private.h b/nouveau/private.h
index bf9db042..74d604e8 100644
--- a/nouveau/private.h
+++ b/nouveau/private.h
@@ -10,7 +10,7 @@
10#include "nouveau.h" 10#include "nouveau.h"
11 11
12#ifdef DEBUG 12#ifdef DEBUG
13uint32_t nouveau_debug; 13drm_private uint32_t nouveau_debug;
14#define dbg_on(lvl) (nouveau_debug & (1 << lvl)) 14#define dbg_on(lvl) (nouveau_debug & (1 << lvl))
15#define dbg(lvl, fmt, args...) do { \ 15#define dbg(lvl, fmt, args...) do { \
16 if (dbg_on((lvl))) \ 16 if (dbg_on((lvl))) \
@@ -114,13 +114,13 @@ int
114nouveau_device_open_existing(struct nouveau_device **, int, int, drm_context_t); 114nouveau_device_open_existing(struct nouveau_device **, int, int, drm_context_t);
115 115
116/* abi16.c */ 116/* abi16.c */
117int abi16_chan_nv04(struct nouveau_object *); 117drm_private int abi16_chan_nv04(struct nouveau_object *);
118int abi16_chan_nvc0(struct nouveau_object *); 118drm_private int abi16_chan_nvc0(struct nouveau_object *);
119int abi16_chan_nve0(struct nouveau_object *); 119drm_private int abi16_chan_nve0(struct nouveau_object *);
120int abi16_engobj(struct nouveau_object *); 120drm_private int abi16_engobj(struct nouveau_object *);
121int abi16_ntfy(struct nouveau_object *); 121drm_private int abi16_ntfy(struct nouveau_object *);
122void abi16_bo_info(struct nouveau_bo *, struct drm_nouveau_gem_info *); 122drm_private void abi16_bo_info(struct nouveau_bo *, struct drm_nouveau_gem_info *);
123int abi16_bo_init(struct nouveau_bo *, uint32_t alignment, 123drm_private int abi16_bo_init(struct nouveau_bo *, uint32_t alignment,
124 union nouveau_bo_config *); 124 union nouveau_bo_config *);
125 125
126#endif 126#endif