diff options
Diffstat (limited to 'gcbv/mirror/include/gcioctl.h')
-rw-r--r-- | gcbv/mirror/include/gcioctl.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/gcbv/mirror/include/gcioctl.h b/gcbv/mirror/include/gcioctl.h index af6f9fe..03eb893 100644 --- a/gcbv/mirror/include/gcioctl.h +++ b/gcbv/mirror/include/gcioctl.h @@ -69,8 +69,8 @@ struct gccommit { enum gcpipe entrypipe; enum gcpipe exitpipe; - /* Pointer to the list of command buffers to be executed. */ - struct gcbuffer *buffer; + /* List of command buffers to be executed (gcbuffer). */ + struct list_head buffer; /* Pointer to the callback function to be called when the GPU completes * execution of all buffers specified in this call. This member can be @@ -92,9 +92,8 @@ struct gccommit { /* Command buffer header. */ #define GC_BUFFER_SIZE (32 * 1024) struct gcbuffer { - /* Pointers to the head and tail of the command buffer fixup list. */ - struct gcfixup *fixuphead; - struct gcfixup *fixuptail; + /* Fixup list (gcfixup). */ + struct list_head fixup; /* Number of pixels to be rendered. */ unsigned int pixelcount; @@ -106,9 +105,8 @@ struct gcbuffer { /* Number of bytes available in the buffer for allocation. */ unsigned int available; - /* Pointer to the next commmand buffer. - * TODO: change to kernel style linked list. */ - struct gcbuffer *next; + /* Commmand buffer list (gcbuffer). */ + struct list_head link; }; /* Fixup entry. */ @@ -123,9 +121,8 @@ struct gcfixupentry { /* Address fixup array. */ #define GC_FIXUP_MAX 1024 struct gcfixup { - /* Pointer to the next fixup array. - * TODO: change to kernel style linked list. */ - struct gcfixup *next; + /* Fixup list (gcfixup). */ + struct list_head link; /* Fixup array. */ unsigned int count; @@ -137,7 +134,7 @@ struct gcschedunmap { /* Map handle. */ unsigned long handle; - /* Previous/next unmapping info. */ + /* Previous/next unmapping info (gcschedunmap). */ struct list_head link; }; |