OSDN Git Service

Memory manager init and takedown.
[android-x86/external-libdrm.git] / libdrm / xf86mm.h
index 08149d0..8711a14 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef _XF86MM_H_
 #define _XF86MM_H_
 #include <stddef.h>
-#include "xf86drm.h"
+#include "drm.h"
 
 /*
  * List macros heavily inspired by the Linux kernel
@@ -114,5 +114,12 @@ typedef struct _drmBOList {
     drmMMListHead free;
 } drmBOList;
 
+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);
+
 
 #endif