broadcom: Move v3d_get_device_info to common
[mesa.git] / src / broadcom / common / v3d_device_info.h
index 608b584544405f8312174242f3ec51028688cb58..97abd9b8d9fc0e705c147bc474f36bc5397b4894 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef V3D_CHIP_H
 #define V3D_CHIP_H
 
+#include <stdbool.h>
 #include <stdint.h>
 
 /**
@@ -40,4 +41,9 @@ struct v3d_device_info {
         int qpu_count;
 };
 
+typedef int (*v3d_ioctl_fun)(int fd, unsigned long request, void *arg);
+
+bool
+v3d_get_device_info(int fd, struct v3d_device_info* devinfo, v3d_ioctl_fun fun);
+
 #endif