diff --git a/src/tuxedo_io/tuxedo_io_ioctl.h b/src/tuxedo_io/tuxedo_io_ioctl.h index e907be1..ccef035 100644 --- a/src/tuxedo_io/tuxedo_io_ioctl.h +++ b/src/tuxedo_io/tuxedo_io_ioctl.h @@ -21,48 +21,48 @@ #define IOCTL_MAGIC 0xEC -#define MAGIC_READ_CL IOCTL_MAGIC + 1 -#define MAGIC_WRITE_CL IOCTL_MAGIC + 2 +#define MAGIC_READ_CL IOCTL_MAGIC + 1 +#define MAGIC_WRITE_CL IOCTL_MAGIC + 2 -#define MAGIC_READ_UW IOCTL_MAGIC + 3 -#define MAGIC_WRITE_UW IOCTL_MAGIC + 4 +#define MAGIC_READ_UW IOCTL_MAGIC + 3 +#define MAGIC_WRITE_UW IOCTL_MAGIC + 4 // General -#define R_MOD_VERSION _IOR(IOCTL_MAGIC, 0x00, char*) +#define R_MOD_VERSION _IOR(IOCTL_MAGIC, 0x00, char*) -#define R_HWCHECK_CL _IOR(IOCTL_MAGIC, 0x05, int32_t*) -#define R_HWCHECK_UW _IOR(IOCTL_MAGIC, 0x06, int32_t*) +#define R_HWCHECK_CL _IOR(IOCTL_MAGIC, 0x05, int32_t*) +#define R_HWCHECK_UW _IOR(IOCTL_MAGIC, 0x06, int32_t*) /** * Clevo interface */ // Read -#define R_CL_HW_IF_STR _IOR(MAGIC_READ_CL, 0x00, char*) -#define R_CL_FANINFO1 _IOR(MAGIC_READ_CL, 0x10, int32_t*) -#define R_CL_FANINFO2 _IOR(MAGIC_READ_CL, 0x11, int32_t*) -#define R_CL_FANINFO3 _IOR(MAGIC_READ_CL, 0x12, int32_t*) -// #define R_FANINFO4 _IOR(MAGIC_READ_CL, 0x04, int32_t*) +#define R_CL_HW_IF_STR _IOR(MAGIC_READ_CL, 0x00, char*) +#define R_CL_FANINFO1 _IOR(MAGIC_READ_CL, 0x10, int32_t*) +#define R_CL_FANINFO2 _IOR(MAGIC_READ_CL, 0x11, int32_t*) +#define R_CL_FANINFO3 _IOR(MAGIC_READ_CL, 0x12, int32_t*) +// #define R_FANINFO4 _IOR(MAGIC_READ_CL, 0x04, int32_t*) -#define R_CL_WEBCAM_SW _IOR(MAGIC_READ_CL, 0x13, int32_t*) -#define R_CL_FLIGHTMODE_SW _IOR(MAGIC_READ_CL, 0x14, int32_t*) -#define R_CL_TOUCHPAD_SW _IOR(MAGIC_READ_CL, 0x15, int32_t*) +#define R_CL_WEBCAM_SW _IOR(MAGIC_READ_CL, 0x13, int32_t*) +#define R_CL_FLIGHTMODE_SW _IOR(MAGIC_READ_CL, 0x14, int32_t*) +#define R_CL_TOUCHPAD_SW _IOR(MAGIC_READ_CL, 0x15, int32_t*) #ifdef DEBUG -#define R_TF_BC _IOW(MAGIC_READ_CL, 0x91, uint32_t*) +#define R_TF_BC _IOW(MAGIC_READ_CL, 0x91, uint32_t*) #endif // Write -#define W_CL_FANSPEED _IOW(MAGIC_WRITE_CL, 0x10, int32_t*) -#define W_CL_FANAUTO _IOW(MAGIC_WRITE_CL, 0x11, int32_t*) +#define W_CL_FANSPEED _IOW(MAGIC_WRITE_CL, 0x10, int32_t*) +#define W_CL_FANAUTO _IOW(MAGIC_WRITE_CL, 0x11, int32_t*) -#define W_CL_WEBCAM_SW _IOW(MAGIC_WRITE_CL, 0x12, int32_t*) -#define W_CL_FLIGHTMODE_SW _IOW(MAGIC_WRITE_CL, 0x13, int32_t*) -#define W_CL_TOUCHPAD_SW _IOW(MAGIC_WRITE_CL, 0x14, int32_t*) +#define W_CL_WEBCAM_SW _IOW(MAGIC_WRITE_CL, 0x12, int32_t*) +#define W_CL_FLIGHTMODE_SW _IOW(MAGIC_WRITE_CL, 0x13, int32_t*) +#define W_CL_TOUCHPAD_SW _IOW(MAGIC_WRITE_CL, 0x14, int32_t*) #ifdef DEBUG -#define W_TF_BC _IOW(MAGIC_WRITE_CL, 0x91, uint32_t*) +#define W_TF_BC _IOW(MAGIC_WRITE_CL, 0x91, uint32_t*) #endif /** @@ -70,18 +70,18 @@ */ // Read -#define R_UW_FANSPEED _IOR(MAGIC_READ_UW, 0x10, int32_t*) -#define R_UW_FANSPEED2 _IOR(MAGIC_READ_UW, 0x11, int32_t*) -#define R_UW_FAN_TEMP _IOR(MAGIC_READ_UW, 0x12, int32_t*) -#define R_UW_FAN_TEMP2 _IOR(MAGIC_READ_UW, 0x13, int32_t*) +#define R_UW_FANSPEED _IOR(MAGIC_READ_UW, 0x10, int32_t*) +#define R_UW_FANSPEED2 _IOR(MAGIC_READ_UW, 0x11, int32_t*) +#define R_UW_FAN_TEMP _IOR(MAGIC_READ_UW, 0x12, int32_t*) +#define R_UW_FAN_TEMP2 _IOR(MAGIC_READ_UW, 0x13, int32_t*) -#define R_UW_MODE _IOR(MAGIC_READ_UW, 0x14, int32_t*) -#define R_UW_MODE_ENABLE _IOR(MAGIC_READ_UW, 0x15, int32_t*) +#define R_UW_MODE _IOR(MAGIC_READ_UW, 0x14, int32_t*) +#define R_UW_MODE_ENABLE _IOR(MAGIC_READ_UW, 0x15, int32_t*) // Write -#define W_UW_FANSPEED _IOW(MAGIC_WRITE_UW, 0x10, int32_t*) -#define W_UW_FANSPEED2 _IOW(MAGIC_WRITE_UW, 0x11, int32_t*) -#define W_UW_MODE _IOW(MAGIC_WRITE_UW, 0x12, int32_t*) -#define W_UW_MODE_ENABLE _IOW(MAGIC_WRITE_UW, 0x13, int32_t*) +#define W_UW_FANSPEED _IOW(MAGIC_WRITE_UW, 0x10, int32_t*) +#define W_UW_FANSPEED2 _IOW(MAGIC_WRITE_UW, 0x11, int32_t*) +#define W_UW_MODE _IOW(MAGIC_WRITE_UW, 0x12, int32_t*) +#define W_UW_MODE_ENABLE _IOW(MAGIC_WRITE_UW, 0x13, int32_t*) #endif