Commit 179dd246 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜 Committed by Lyude Paul

Shuffle around props

parent ca6350d3
......@@ -21,7 +21,6 @@
#define __MALI_IOCTL_H__
#include <panloader-util.h>
#include "mali-props.h"
typedef u8 mali_atom_id;
......@@ -701,21 +700,6 @@ struct mali_ioctl_sync {
} __attribute__((packed));
ASSERT_SIZEOF_TYPE(struct mali_ioctl_sync, 40, 40);
struct mali_ioctl_gpu_props_reg_dump {
union mali_ioctl_header header;
struct mali_gpu_core_props core;
struct mali_gpu_l2_cache_props l2;
u64 :64;
struct mali_gpu_tiler_props tiler;
struct mali_gpu_thread_props thread;
struct mali_gpu_raw_props raw;
/** This must be last member of the structure */
struct mali_gpu_coherent_group_info coherency_info;
} __attribute__((packed));
ASSERT_SIZEOF_TYPE(struct mali_ioctl_gpu_props_reg_dump, 536, 536);
struct mali_ioctl_set_flags {
union mali_ioctl_header header;
u32 create_flags; /* [in] */
......@@ -749,7 +733,10 @@ struct mali_ioctl_get_context_id {
} __attribute__((packed));
ASSERT_SIZEOF_TYPE(struct mali_ioctl_get_context_id, 16, 16);
#undef PAD_PTR
#undef PAD_CPU_PTR
/* Defined in mali-props.h */
struct mali_ioctl_gpu_props_reg_dump;
/* For ioctl's we haven't written decoding stuff for yet */
typedef struct {
......
......@@ -12,6 +12,11 @@
*
*/
#ifndef __MALI_PROPS_H__
#define __MALI_PROPS_H__
#include "mali-ioctl.h"
#define MALI_GPU_NUM_TEXTURE_FEATURES_REGISTERS 3
#define MALI_GPU_MAX_JOB_SLOTS 16
#define MALI_MAX_COHERENT_GROUPS 16
......@@ -239,3 +244,22 @@ struct mali_gpu_raw_props {
*/
u32 coherency_mode;
};
struct mali_ioctl_gpu_props_reg_dump {
union mali_ioctl_header header;
struct mali_gpu_core_props core;
struct mali_gpu_l2_cache_props l2;
u64 :64;
struct mali_gpu_tiler_props tiler;
struct mali_gpu_thread_props thread;
struct mali_gpu_raw_props raw;
/** This must be last member of the structure */
struct mali_gpu_coherent_group_info coherency_info;
} __attribute__((packed));
ASSERT_SIZEOF_TYPE(struct mali_ioctl_gpu_props_reg_dump, 536, 536);
#define MALI_IOCTL_GPU_PROPS_REG_DUMP (_IOWR(0x82, 14, struct mali_ioctl_gpu_props_reg_dump))
#endif
......@@ -30,6 +30,7 @@
#include <ctype.h>
#include <mali-ioctl.h>
#include <mali-props.h>
#include <list.h>
#include "panwrap.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment