diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2015-03-23 21:35:38 +0000 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-04-28 11:18:43 +0100 |
commit | 44e9a0258a4cab4a22fc44d1440ea882e3ad0334 (patch) | |
tree | 0482913d65ea88502644ab2446270e143af4631f /freedreno/msm | |
parent | 552de225bf2740ba0cb52312c21353d71d934b8c (diff) |
freedreno: 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: Rob Clark <robdclark@gmail.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'freedreno/msm')
-rw-r--r-- | freedreno/msm/msm_bo.c | 4 | ||||
-rw-r--r-- | freedreno/msm/msm_device.c | 2 | ||||
-rw-r--r-- | freedreno/msm/msm_pipe.c | 3 | ||||
-rw-r--r-- | freedreno/msm/msm_priv.h | 11 | ||||
-rw-r--r-- | freedreno/msm/msm_ringbuffer.c | 2 |
5 files changed, 12 insertions, 10 deletions
diff --git a/freedreno/msm/msm_bo.c b/freedreno/msm/msm_bo.c index 0cac1c60..fbd82df7 100644 --- a/freedreno/msm/msm_bo.c +++ b/freedreno/msm/msm_bo.c @@ -104,7 +104,7 @@ static struct fd_bo_funcs funcs = { }; /* allocate a buffer handle: */ -int msm_bo_new_handle(struct fd_device *dev, +drm_private int msm_bo_new_handle(struct fd_device *dev, uint32_t size, uint32_t flags, uint32_t *handle) { struct drm_msm_gem_new req = { @@ -124,7 +124,7 @@ int msm_bo_new_handle(struct fd_device *dev, } /* allocate a new buffer object */ -struct fd_bo * msm_bo_from_handle(struct fd_device *dev, +drm_private struct fd_bo * msm_bo_from_handle(struct fd_device *dev, uint32_t size, uint32_t handle) { struct msm_bo *msm_bo; diff --git a/freedreno/msm/msm_device.c b/freedreno/msm/msm_device.c index b9c5a3e3..81077e1a 100644 --- a/freedreno/msm/msm_device.c +++ b/freedreno/msm/msm_device.c @@ -49,7 +49,7 @@ static struct fd_device_funcs funcs = { .destroy = msm_device_destroy, }; -struct fd_device * msm_device_new(int fd) +drm_private struct fd_device * msm_device_new(int fd) { struct msm_device *msm_dev; struct fd_device *dev; diff --git a/freedreno/msm/msm_pipe.c b/freedreno/msm/msm_pipe.c index 6955f2c9..ddc975ed 100644 --- a/freedreno/msm/msm_pipe.c +++ b/freedreno/msm/msm_pipe.c @@ -103,7 +103,8 @@ static uint64_t get_param(struct fd_device *dev, uint32_t pipe, uint32_t param) return req.value; } -struct fd_pipe * msm_pipe_new(struct fd_device *dev, enum fd_pipe_id id) +drm_private struct fd_pipe * msm_pipe_new(struct fd_device *dev, + enum fd_pipe_id id) { static const uint32_t pipe_id[] = { [FD_PIPE_3D] = MSM_PIPE_3D0, diff --git a/freedreno/msm/msm_priv.h b/freedreno/msm/msm_priv.h index 75ae883f..94d23579 100644 --- a/freedreno/msm/msm_priv.h +++ b/freedreno/msm/msm_priv.h @@ -46,7 +46,7 @@ static inline struct msm_device * to_msm_device(struct fd_device *x) return (struct msm_device *)x; } -struct fd_device * msm_device_new(int fd); +drm_private struct fd_device * msm_device_new(int fd); struct msm_pipe { struct fd_pipe base; @@ -61,9 +61,10 @@ static inline struct msm_pipe * to_msm_pipe(struct fd_pipe *x) return (struct msm_pipe *)x; } -struct fd_pipe * msm_pipe_new(struct fd_device *dev, enum fd_pipe_id id); +drm_private struct fd_pipe * msm_pipe_new(struct fd_device *dev, + enum fd_pipe_id id); -struct fd_ringbuffer * msm_ringbuffer_new(struct fd_pipe *pipe, +drm_private struct fd_ringbuffer * msm_ringbuffer_new(struct fd_pipe *pipe, uint32_t size); struct msm_bo { @@ -79,9 +80,9 @@ static inline struct msm_bo * to_msm_bo(struct fd_bo *x) return (struct msm_bo *)x; } -int msm_bo_new_handle(struct fd_device *dev, +drm_private int msm_bo_new_handle(struct fd_device *dev, uint32_t size, uint32_t flags, uint32_t *handle); -struct fd_bo * msm_bo_from_handle(struct fd_device *dev, +drm_private struct fd_bo * msm_bo_from_handle(struct fd_device *dev, uint32_t size, uint32_t handle); static inline void get_abs_timeout(struct drm_msm_timespec *tv, uint32_t ms) diff --git a/freedreno/msm/msm_ringbuffer.c b/freedreno/msm/msm_ringbuffer.c index 6a4043fb..6ee85bdd 100644 --- a/freedreno/msm/msm_ringbuffer.c +++ b/freedreno/msm/msm_ringbuffer.c @@ -318,7 +318,7 @@ static struct fd_ringbuffer_funcs funcs = { .destroy = msm_ringbuffer_destroy, }; -struct fd_ringbuffer * msm_ringbuffer_new(struct fd_pipe *pipe, +drm_private struct fd_ringbuffer * msm_ringbuffer_new(struct fd_pipe *pipe, uint32_t size) { struct msm_ringbuffer *msm_ring; |