X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=src%2Fbroadcom%2Fcommon%2Fv3d_device_info.h;h=97abd9b8d9fc0e705c147bc474f36bc5397b4894;hp=b0a2a02154cd8b04c4059e9f48fc016eb4e26380;hb=50c2c76ea31edf987594e8b811b7d62be71f5a33;hpb=1561e4984eb03d6946d19b820b83a96bbbd83b98 diff --git a/src/broadcom/common/v3d_device_info.h b/src/broadcom/common/v3d_device_info.h index b0a2a02154c..97abd9b8d9f 100644 --- a/src/broadcom/common/v3d_device_info.h +++ b/src/broadcom/common/v3d_device_info.h @@ -24,6 +24,7 @@ #ifndef V3D_CHIP_H #define V3D_CHIP_H +#include #include /** @@ -35,6 +36,14 @@ struct v3d_device_info { /** Size of the VPM, in bytes. */ int vpm_size; + + /* NSLC * QUPS from the core's IDENT registers. */ + 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