[PATCH 00/10] Start documenting the radeon drm better
Alex Deucher
alexdeucher at gmail.com
Fri Jun 29 07:51:52 PDT 2012
On Fri, Jun 29, 2012 at 10:42 AM, Tom Stellard <thomas.stellard at amd.com> wrote:
> On Fri, Jun 29, 2012 at 10:28:20AM -0400, alexdeucher at gmail.com wrote:
>> From: Alex Deucher <alexander.deucher at amd.com>
>>
>> This is something I've been wanting to do for a while and
>> I finally spent a little time getting a start on it. There
>> is still a lot to do and not all of my descriptions are great,
>> but I think we can document the rest in bits and pieces. I
>> also added a note about what asics the function is applicable
>> to. I tried to start with the more common and complex code.
>> I was thinking it would make sense to have an informal
>> documentation policy something like the following:
>> 1. If you edit an undocumented function, add documentation
>> 2. If you edit a documented function and change how it works,
>> update the documentation
>> 3. All new functions added should be documented
>>
>> Fulfulling all of these for stable fixes could pose problems
>> so obviously there is some leeway.
>>
>> Thoughts?
>>
> I think this is a good policy. You might also want to specify the
> documentation style to use. It looks like you are using some form of
> Doxygen comments. I would also be in favor of a similar policy for
> userspace code.
I just copied the existing documentation bits in radeon and the drm in
general. I'm open to other suggestions.
Alex
>
> -Tom
>
>> Alex Deucher (10):
>> drm/radeon: document radeon_device.c
>> drm/radeon: document radeon_kms.c
>> drm/radeon: document radeon_irq_kms.c
>> drm/radeon: document radeon_asic.c
>> drm/radeon: document radeon_fence.c
>> drm/radeon: document radeon_ring.c
>> drm/radeon: document non-VM functions in radeon_gart.c
>> drm/radeon: document VM functions in radeon_gart.c
>> drm/radeon: start to document the functions r100.c
>> drm/radeon: start to document evergreen.c
>>
>> drivers/gpu/drm/radeon/evergreen.c | 120 ++++++++++
>> drivers/gpu/drm/radeon/r100.c | 127 ++++++++++-
>> drivers/gpu/drm/radeon/radeon_asic.c | 46 ++++
>> drivers/gpu/drm/radeon/radeon_device.c | 344 +++++++++++++++++++++++++++-
>> drivers/gpu/drm/radeon/radeon_fence.c | 373 +++++++++++++++++++++++++++++
>> drivers/gpu/drm/radeon/radeon_gart.c | 391 ++++++++++++++++++++++++++++++-
>> drivers/gpu/drm/radeon/radeon_irq_kms.c | 150 ++++++++++++
>> drivers/gpu/drm/radeon/radeon_kms.c | 126 ++++++++++
>> drivers/gpu/drm/radeon/radeon_ring.c | 374 +++++++++++++++++++++++++++++-
>> 9 files changed, 2041 insertions(+), 10 deletions(-)
>>
>> --
>> 1.7.7.5
>>
>> _______________________________________________
>> dri-devel mailing list
>> dri-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>>
>
More information about the dri-devel
mailing list