diff options
Diffstat (limited to 'drivers/staging/gasket/apex.h')
-rw-r--r-- | drivers/staging/gasket/apex.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/staging/gasket/apex.h b/drivers/staging/gasket/apex.h new file mode 100644 index 000000000000..3bbceffff5e4 --- /dev/null +++ b/drivers/staging/gasket/apex.h @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Apex kernel-userspace interface definitions. + * + * Copyright (C) 2018 Google, Inc. + */ +#ifndef __APEX_H__ +#define __APEX_H__ + +#include <linux/ioctl.h> + +/* Clock Gating ioctl. */ +struct apex_gate_clock_ioctl { + /* Enter or leave clock gated state. */ + u64 enable; + + /* If set, enter clock gating state, regardless of custom block's + * internal idle state + */ + u64 force_idle; +}; + +/* Base number for all Apex-common IOCTLs */ +#define APEX_IOCTL_BASE 0x7F + +/* Enable/Disable clock gating. */ +#define APEX_IOCTL_GATE_CLOCK \ + _IOW(APEX_IOCTL_BASE, 0, struct apex_gate_clock_ioctl) + +#endif /* __APEX_H__ */ |