Libdrm function headers. Some renaming.
parent
550f51b4bf
commit
f88c32fd4c
|
@ -2457,7 +2457,7 @@ static int drmAdjustListNodes(drmBOList *list)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void drmFreeList(drmBOList *list)
|
||||
void drmBOFreeList(drmBOList *list)
|
||||
{
|
||||
drmBONode *node;
|
||||
drmMMListHead *l;
|
||||
|
@ -2483,7 +2483,7 @@ static void drmFreeList(drmBOList *list)
|
|||
}
|
||||
}
|
||||
|
||||
int drmResetList(drmBOList *list) {
|
||||
int drmBOResetList(drmBOList *list) {
|
||||
|
||||
drmMMListHead *l;
|
||||
int ret;
|
||||
|
@ -2547,17 +2547,17 @@ void *drmBOListNext(drmBOList *list, void *iterator)
|
|||
return ret;
|
||||
}
|
||||
|
||||
void drmBOListBuf(void *iterator, drmBO **buf)
|
||||
drmBO *drmBOListBuf(void *iterator)
|
||||
{
|
||||
drmBONode *node;
|
||||
drmMMListHead *l = (drmMMListHead *) iterator;
|
||||
node = DRMLISTENTRY(drmBONode, l, head);
|
||||
|
||||
*buf = node->buf;
|
||||
return node->buf;
|
||||
}
|
||||
|
||||
|
||||
int drmCreateBufList(int numTarget, drmBOList *list)
|
||||
int drmBOCreateList(int numTarget, drmBOList *list)
|
||||
{
|
||||
DRMINITLISTHEAD(&list->list);
|
||||
DRMINITLISTHEAD(&list->free);
|
||||
|
|
|
@ -117,12 +117,63 @@ typedef struct _drmBOList {
|
|||
drmMMListHead free;
|
||||
} drmBOList;
|
||||
|
||||
|
||||
/*
|
||||
* TTM functions.
|
||||
*/
|
||||
|
||||
extern int drmTTMCreate(int fd, drmTTM *ttm, unsigned long size,
|
||||
unsigned flags);
|
||||
extern int drmTTMDestroy(int fd, const drmTTM *ttm);
|
||||
extern int drmTTMReference(int fd, unsigned handle, drmTTM *ttm);
|
||||
extern int drmTTMUnreference(int fd, const drmTTM *ttm);
|
||||
extern drm_handle_t drmTTMMapHandle(int fd, const drmTTM *ttm);
|
||||
|
||||
/*
|
||||
* Buffer object list functions.
|
||||
*/
|
||||
|
||||
extern void drmBOFreeList(drmBOList *list);
|
||||
extern int drmBOResetList(drmBOList *list);
|
||||
extern void *drmBOListIterator(drmBOList *list);
|
||||
extern void *drmBOListNext(drmBOList *list, void *iterator);
|
||||
extern drmBO *drmBOListBuf(void *iterator);
|
||||
extern int drmBOCreateList(int numTarget, drmBOList *list);
|
||||
|
||||
/*
|
||||
* Buffer object functions.
|
||||
*/
|
||||
|
||||
extern int drmBOCreate(int fd, drmTTM *ttm, unsigned long start, unsigned long size,
|
||||
void *user_buffer, drm_bo_type_t type, unsigned mask,
|
||||
unsigned hint, drmBO *buf);
|
||||
extern int drmBODestroy(int fd, drmBO *buf);
|
||||
extern int drmBOReference(int fd, unsigned handle, drmBO *buf);
|
||||
extern int drmBOUnReference(int fd, drmBO *buf);
|
||||
extern int drmBOMap(int fd, drmBO *buf, unsigned mapFlags, unsigned mapHint,
|
||||
void **address);
|
||||
extern int drmBOUnmap(int fd, drmBO *buf);
|
||||
extern int drmBOValidate(int fd, drmBO *buf, unsigned flags, unsigned mask,
|
||||
unsigned hint);
|
||||
extern int drmBOFence(int fd, drmBO *buf, unsigned flags, unsigned fenceHandle);
|
||||
extern int drmBOInfo(int fd, drmBO *buf);
|
||||
extern int drmBufBusy(int fd, drmBO *buf, int *busy);
|
||||
|
||||
|
||||
extern int drmAddValidateItem(drmBOList *list, drmBO *buf, unsigned flags,
|
||||
unsigned mask,
|
||||
int *newItem);
|
||||
extern int drmBOValidateList(int fd, drmBOList *list);
|
||||
extern int drmBOFenceList(int fd, drmBOList *list, unsigned fenceHandle);
|
||||
|
||||
|
||||
/*
|
||||
* Initialization functions.
|
||||
*/
|
||||
|
||||
extern int drmMMInit(int fd, unsigned long vramPOffset, unsigned long vramPSize,
|
||||
unsigned long ttPOffset, unsigned long ttPSize);
|
||||
extern int drmMMTakedown(int fd);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue