This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hardware_oplus-CherishOS/kernel-headers/include/oplus/oplus_display_panel.h
LuK1337 af2f96685a kernel-headers: Add PANEL_IOCTL_{SET,GET}_SEED
Apparently, this is used for display modes on older devices.

Change-Id: Ic78a6862019ebf338e6f8f45f36a20322bf9fa43
2022-10-02 01:10:25 +02:00

31 lines
1.3 KiB
C

/*
* Copyright (C) 2022 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <sys/ioctl.h>
#define OPLUS_PANEL_IOCTL_BASE 'o'
#define PANEL_IOCTL_SET_SEED _IOW(OPLUS_PANEL_IOCTL_BASE, 0x03, unsigned int)
#define PANEL_IOCTL_GET_SEED _IOWR(OPLUS_PANEL_IOCTL_BASE, 0x04, unsigned int)
#define PANEL_IOCTL_SET_HBM _IOW(OPLUS_PANEL_IOCTL_BASE, 0x0F, unsigned int)
#define PANEL_IOCTL_GET_HBM _IOWR(OPLUS_PANEL_IOCTL_BASE, 0x10, unsigned int)
#define PANEL_IOCTL_SET_DIMLAYER_HBM _IOW(OPLUS_PANEL_IOCTL_BASE, 0x1F, unsigned int)
#define PANEL_IOCTL_SET_DIMLAYER_BL_EN _IOW(OPLUS_PANEL_IOCTL_BASE, 0x21, unsigned int)
#define PANEL_IOCTL_GET_DIMLAYER_BL_EN _IOWR(OPLUS_PANEL_IOCTL_BASE, 0x22, unsigned int)
#define PANEL_IOCTL_SET_FP_PRESS _IOW(OPLUS_PANEL_IOCTL_BASE, 0x29, unsigned int)