/* SPDX-License-Identifier: GPL-2.0-or-later WITH Linux-syscall-note */

#ifndef EDU_RNG_ASYNC_H
#define EDU_RNG_ASYNC_H

#define EDU_COMPRESSOR_DRV_NAME "edu_compressor"

#define EDU_COMP_IOC_MAGIC          'E'

struct edu_comp_stats {
    unsigned int status;
    unsigned int error;
    unsigned int total_input;
    unsigned int total_output;
};

#define EDU_COMP_IOC_RESET          _IO(EDU_COMP_IOC_MAGIC, 0)
#define EDU_COMP_IOC_START          _IOW(EDU_COMP_IOC_MAGIC, 1, unsigned int)
#define EDU_COMP_IOC_FINISH         _IO(EDU_COMP_IOC_MAGIC, 2)
#define EDU_COMP_IOC_GET_STATS      _IOR(EDU_COMP_IOC_MAGIC, 3, \
                                         struct edu_comp_stats)

#endif /* EDU_RNG_ASYNC_H */
