linux/include/uapi/linux/sonypi.h

/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
/*
 * Sony Programmable I/O Control Device driver for VAIO
 *
 * Copyright (C) 2001-2005 Stelian Pop <[email protected]>
 *
 * Copyright (C) 2005 Narayanan R S <[email protected]>

 * Copyright (C) 2001-2002 Alcôve <www.alcove.com>
 *
 * Copyright (C) 2001 Michael Ashley <[email protected]>
 *
 * Copyright (C) 2001 Junichi Morita <[email protected]>
 *
 * Copyright (C) 2000 Takaya Kinjo <[email protected]>
 *
 * Copyright (C) 2000 Andrew Tridgell <[email protected]>
 *
 * Earlier work by Werner Almesberger, Paul `Rusty' Russell and Paul Mackerras.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

#ifndef _UAPI_SONYPI_H_
#define _UAPI_SONYPI_H_

#include <linux/types.h>

/* events the user application reading /dev/sonypi can use */

#define SONYPI_EVENT_IGNORE
#define SONYPI_EVENT_JOGDIAL_DOWN
#define SONYPI_EVENT_JOGDIAL_UP
#define SONYPI_EVENT_JOGDIAL_DOWN_PRESSED
#define SONYPI_EVENT_JOGDIAL_UP_PRESSED
#define SONYPI_EVENT_JOGDIAL_PRESSED
#define SONYPI_EVENT_JOGDIAL_RELEASED
#define SONYPI_EVENT_CAPTURE_PRESSED
#define SONYPI_EVENT_CAPTURE_RELEASED
#define SONYPI_EVENT_CAPTURE_PARTIALPRESSED
#define SONYPI_EVENT_CAPTURE_PARTIALRELEASED
#define SONYPI_EVENT_FNKEY_ESC
#define SONYPI_EVENT_FNKEY_F1
#define SONYPI_EVENT_FNKEY_F2
#define SONYPI_EVENT_FNKEY_F3
#define SONYPI_EVENT_FNKEY_F4
#define SONYPI_EVENT_FNKEY_F5
#define SONYPI_EVENT_FNKEY_F6
#define SONYPI_EVENT_FNKEY_F7
#define SONYPI_EVENT_FNKEY_F8
#define SONYPI_EVENT_FNKEY_F9
#define SONYPI_EVENT_FNKEY_F10
#define SONYPI_EVENT_FNKEY_F11
#define SONYPI_EVENT_FNKEY_F12
#define SONYPI_EVENT_FNKEY_1
#define SONYPI_EVENT_FNKEY_2
#define SONYPI_EVENT_FNKEY_D
#define SONYPI_EVENT_FNKEY_E
#define SONYPI_EVENT_FNKEY_F
#define SONYPI_EVENT_FNKEY_S
#define SONYPI_EVENT_FNKEY_B
#define SONYPI_EVENT_BLUETOOTH_PRESSED
#define SONYPI_EVENT_PKEY_P1
#define SONYPI_EVENT_PKEY_P2
#define SONYPI_EVENT_PKEY_P3
#define SONYPI_EVENT_BACK_PRESSED
#define SONYPI_EVENT_LID_CLOSED
#define SONYPI_EVENT_LID_OPENED
#define SONYPI_EVENT_BLUETOOTH_ON
#define SONYPI_EVENT_BLUETOOTH_OFF
#define SONYPI_EVENT_HELP_PRESSED
#define SONYPI_EVENT_FNKEY_ONLY
#define SONYPI_EVENT_JOGDIAL_FAST_DOWN
#define SONYPI_EVENT_JOGDIAL_FAST_UP
#define SONYPI_EVENT_JOGDIAL_FAST_DOWN_PRESSED
#define SONYPI_EVENT_JOGDIAL_FAST_UP_PRESSED
#define SONYPI_EVENT_JOGDIAL_VFAST_DOWN
#define SONYPI_EVENT_JOGDIAL_VFAST_UP
#define SONYPI_EVENT_JOGDIAL_VFAST_DOWN_PRESSED
#define SONYPI_EVENT_JOGDIAL_VFAST_UP_PRESSED
#define SONYPI_EVENT_ZOOM_PRESSED
#define SONYPI_EVENT_THUMBPHRASE_PRESSED
#define SONYPI_EVENT_MEYE_FACE
#define SONYPI_EVENT_MEYE_OPPOSITE
#define SONYPI_EVENT_MEMORYSTICK_INSERT
#define SONYPI_EVENT_MEMORYSTICK_EJECT
#define SONYPI_EVENT_ANYBUTTON_RELEASED
#define SONYPI_EVENT_BATTERY_INSERT
#define SONYPI_EVENT_BATTERY_REMOVE
#define SONYPI_EVENT_FNKEY_RELEASED
#define SONYPI_EVENT_WIRELESS_ON
#define SONYPI_EVENT_WIRELESS_OFF
#define SONYPI_EVENT_ZOOM_IN_PRESSED
#define SONYPI_EVENT_ZOOM_OUT_PRESSED
#define SONYPI_EVENT_CD_EJECT_PRESSED
#define SONYPI_EVENT_MODEKEY_PRESSED
#define SONYPI_EVENT_PKEY_P4
#define SONYPI_EVENT_PKEY_P5
#define SONYPI_EVENT_SETTINGKEY_PRESSED
#define SONYPI_EVENT_VOLUME_INC_PRESSED
#define SONYPI_EVENT_VOLUME_DEC_PRESSED
#define SONYPI_EVENT_BRIGHTNESS_PRESSED
#define SONYPI_EVENT_MEDIA_PRESSED
#define SONYPI_EVENT_VENDOR_PRESSED

/* get/set brightness */
#define SONYPI_IOCGBRT
#define SONYPI_IOCSBRT

/* get battery full capacity/remaining capacity */
#define SONYPI_IOCGBAT1CAP
#define SONYPI_IOCGBAT1REM
#define SONYPI_IOCGBAT2CAP
#define SONYPI_IOCGBAT2REM

/* get battery flags: battery1/battery2/ac adapter present */
#define SONYPI_BFLAGS_B1
#define SONYPI_BFLAGS_B2
#define SONYPI_BFLAGS_AC
#define SONYPI_IOCGBATFLAGS

/* get/set bluetooth subsystem state on/off */
#define SONYPI_IOCGBLUE
#define SONYPI_IOCSBLUE

/* get/set fan state on/off */
#define SONYPI_IOCGFAN
#define SONYPI_IOCSFAN

/* get temperature (C) */
#define SONYPI_IOCGTEMP


#endif /* _UAPI_SONYPI_H_ */