Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/apex/apex_ioctl.h
- This file was added.
| /* | |||||
| * Copyright (c) 2026 Abdelkader Boudih <freebsd@seuros.com> | |||||
| * | |||||
| * SPDX-License-Identifier: BSD-2-Clause | |||||
| */ | |||||
| #ifndef _DEV_APEX_APEX_IOCTL_H_ | |||||
| #define _DEV_APEX_APEX_IOCTL_H_ | |||||
| #include <sys/ioccom.h> | |||||
| #include <sys/types.h> | |||||
| #include <dev/gasket/gasket_ioctl.h> | |||||
| struct apex_gate_clock_ioctl { | |||||
| uint64_t enable; | |||||
| uint64_t force_idle; | |||||
| }; | |||||
| enum apex_performance_expectation { | |||||
| APEX_PERFORMANCE_LOW = 0, | |||||
| APEX_PERFORMANCE_MED = 1, | |||||
| APEX_PERFORMANCE_HIGH = 2, | |||||
| APEX_PERFORMANCE_MAX = 3, | |||||
| }; | |||||
| struct apex_performance_expectation_ioctl { | |||||
| uint32_t performance; | |||||
| }; | |||||
| /* Matches APEX_IOCTL_BASE in Google's apex ioctl header. */ | |||||
| #define APEX_IOC_GROUP 0x7F | |||||
| #define APEX_IOCTL_GATE_CLOCK \ | |||||
| _IOW(APEX_IOC_GROUP, 0, struct apex_gate_clock_ioctl) | |||||
| #define APEX_IOCTL_PERFORMANCE_EXPECTATION \ | |||||
| _IOW(APEX_IOC_GROUP, 1, struct apex_performance_expectation_ioctl) | |||||
| #endif /* _DEV_APEX_APEX_IOCTL_H_ */ | |||||