reformatting, clean-ups

main
Brian 2007-05-29 14:56:17 -06:00
parent ccd7b6e8dd
commit fdc293d40c
1 changed files with 30 additions and 26 deletions

View File

@ -93,7 +93,8 @@ typedef struct _drmMMListHead
#define DRMLISTENTRY(__type, __item, __field) \ #define DRMLISTENTRY(__type, __item, __field) \
((__type *)(((char *) (__item)) - offsetof(__type, __field))) ((__type *)(((char *) (__item)) - offsetof(__type, __field)))
typedef struct _drmFence{ typedef struct _drmFence
{
unsigned handle; unsigned handle;
int class; int class;
unsigned type; unsigned type;
@ -102,7 +103,8 @@ typedef struct _drmFence{
unsigned pad[4]; /* for future expansion */ unsigned pad[4]; /* for future expansion */
} drmFence; } drmFence;
typedef struct _drmBO{ typedef struct _drmBO
{
drm_bo_type_t type; drm_bo_type_t type;
unsigned handle; unsigned handle;
drm_u64_t mapHandle; drm_u64_t mapHandle;
@ -121,8 +123,8 @@ typedef struct _drmBO{
unsigned pad[8]; /* for future expansion */ unsigned pad[8]; /* for future expansion */
} drmBO; } drmBO;
typedef struct _drmBONode
typedef struct _drmBONode { {
drmMMListHead head; drmMMListHead head;
drmBO *buf; drmBO *buf;
drm_bo_arg_t bo_arg; drm_bo_arg_t bo_arg;
@ -138,11 +140,13 @@ typedef struct _drmBOList {
drmMMListHead free; drmMMListHead free;
} drmBOList; } drmBOList;
/* Fencing */
/*
* Fence functions.
*/
extern int drmFenceCreate(int fd, unsigned flags, int class, extern int drmFenceCreate(int fd, unsigned flags, int class,
unsigned type, unsigned type, drmFence *fence);
drmFence *fence);
extern int drmFenceDestroy(int fd, const drmFence *fence); extern int drmFenceDestroy(int fd, const drmFence *fence);
extern int drmFenceReference(int fd, unsigned handle, drmFence *fence); extern int drmFenceReference(int fd, unsigned handle, drmFence *fence);
extern int drmFenceUnreference(int fd, const drmFence *fence); extern int drmFenceUnreference(int fd, const drmFence *fence);