/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _DRHYME_SENSOR_UAPI_H
#define _DRHYME_SENSOR_UAPI_H

#include <linux/ioctl.h>
#include <linux/types.h>

#define DRHYME_IOCTL_MAGIC 'D'

struct drhyme_sensor_status {
	__u32 abi_version;
	__u32 enabled;
	__u32 config;
	__u32 reserved;
	__u64 read_count;
};

struct drhyme_sensor_config {
	__u32 config;
	__u32 reserved;
};

#define DRHYME_IOCTL_RESET \
	_IO(DRHYME_IOCTL_MAGIC, 0x00)
#define DRHYME_IOCTL_GET_STATUS \
	_IOR(DRHYME_IOCTL_MAGIC, 0x01, struct drhyme_sensor_status)
#define DRHYME_IOCTL_SET_CONFIG \
	_IOW(DRHYME_IOCTL_MAGIC, 0x02, struct drhyme_sensor_config)

#endif
