1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2607ca46eSDavid Howells /* 3607ca46eSDavid Howells * Copyright (C) 1999-2002 Vojtech Pavlik 4607ca46eSDavid Howells * 5607ca46eSDavid Howells * This program is free software; you can redistribute it and/or modify it 6607ca46eSDavid Howells * under the terms of the GNU General Public License version 2 as published by 7607ca46eSDavid Howells * the Free Software Foundation. 8607ca46eSDavid Howells */ 9607ca46eSDavid Howells #ifndef _UAPI_SERIO_H 10607ca46eSDavid Howells #define _UAPI_SERIO_H 11607ca46eSDavid Howells 12*52afa505SEugene Syromiatnikov #include <linux/const.h> 13607ca46eSDavid Howells #include <linux/ioctl.h> 14607ca46eSDavid Howells 15607ca46eSDavid Howells #define SPIOCSTYPE _IOW('q', 0x01, unsigned long) 16607ca46eSDavid Howells 17607ca46eSDavid Howells 18607ca46eSDavid Howells /* 19607ca46eSDavid Howells * bit masks for use in "interrupt" flags (3rd argument) 20607ca46eSDavid Howells */ 21*52afa505SEugene Syromiatnikov #define SERIO_TIMEOUT _BITUL(0) 22*52afa505SEugene Syromiatnikov #define SERIO_PARITY _BITUL(1) 23*52afa505SEugene Syromiatnikov #define SERIO_FRAME _BITUL(2) 24*52afa505SEugene Syromiatnikov #define SERIO_OOB_DATA _BITUL(3) 25607ca46eSDavid Howells 26607ca46eSDavid Howells /* 27607ca46eSDavid Howells * Serio types 28607ca46eSDavid Howells */ 29607ca46eSDavid Howells #define SERIO_XT 0x00 30607ca46eSDavid Howells #define SERIO_8042 0x01 31607ca46eSDavid Howells #define SERIO_RS232 0x02 32607ca46eSDavid Howells #define SERIO_HIL_MLC 0x03 33607ca46eSDavid Howells #define SERIO_PS_PSTHRU 0x05 34607ca46eSDavid Howells #define SERIO_8042_XL 0x06 35607ca46eSDavid Howells 36607ca46eSDavid Howells /* 37607ca46eSDavid Howells * Serio protocols 38607ca46eSDavid Howells */ 39607ca46eSDavid Howells #define SERIO_UNKNOWN 0x00 40607ca46eSDavid Howells #define SERIO_MSC 0x01 41607ca46eSDavid Howells #define SERIO_SUN 0x02 42607ca46eSDavid Howells #define SERIO_MS 0x03 43607ca46eSDavid Howells #define SERIO_MP 0x04 44607ca46eSDavid Howells #define SERIO_MZ 0x05 45607ca46eSDavid Howells #define SERIO_MZP 0x06 46607ca46eSDavid Howells #define SERIO_MZPP 0x07 47607ca46eSDavid Howells #define SERIO_VSXXXAA 0x08 48607ca46eSDavid Howells #define SERIO_SUNKBD 0x10 49607ca46eSDavid Howells #define SERIO_WARRIOR 0x18 50607ca46eSDavid Howells #define SERIO_SPACEORB 0x19 51607ca46eSDavid Howells #define SERIO_MAGELLAN 0x1a 52607ca46eSDavid Howells #define SERIO_SPACEBALL 0x1b 53607ca46eSDavid Howells #define SERIO_GUNZE 0x1c 54607ca46eSDavid Howells #define SERIO_IFORCE 0x1d 55607ca46eSDavid Howells #define SERIO_STINGER 0x1e 56607ca46eSDavid Howells #define SERIO_NEWTON 0x1f 57607ca46eSDavid Howells #define SERIO_STOWAWAY 0x20 58607ca46eSDavid Howells #define SERIO_H3600 0x21 59607ca46eSDavid Howells #define SERIO_PS2SER 0x22 60607ca46eSDavid Howells #define SERIO_TWIDKBD 0x23 61607ca46eSDavid Howells #define SERIO_TWIDJOY 0x24 62607ca46eSDavid Howells #define SERIO_HIL 0x25 63607ca46eSDavid Howells #define SERIO_SNES232 0x26 64607ca46eSDavid Howells #define SERIO_SEMTECH 0x27 65607ca46eSDavid Howells #define SERIO_LKKBD 0x28 66607ca46eSDavid Howells #define SERIO_ELO 0x29 67607ca46eSDavid Howells #define SERIO_MICROTOUCH 0x30 68607ca46eSDavid Howells #define SERIO_PENMOUNT 0x31 69607ca46eSDavid Howells #define SERIO_TOUCHRIGHT 0x32 70607ca46eSDavid Howells #define SERIO_TOUCHWIN 0x33 71607ca46eSDavid Howells #define SERIO_TAOSEVM 0x34 72607ca46eSDavid Howells #define SERIO_FUJITSU 0x35 73607ca46eSDavid Howells #define SERIO_ZHENHUA 0x36 74607ca46eSDavid Howells #define SERIO_INEXIO 0x37 75607ca46eSDavid Howells #define SERIO_TOUCHIT213 0x38 76607ca46eSDavid Howells #define SERIO_W8001 0x39 77607ca46eSDavid Howells #define SERIO_DYNAPRO 0x3a 78607ca46eSDavid Howells #define SERIO_HAMPSHIRE 0x3b 79607ca46eSDavid Howells #define SERIO_PS2MULT 0x3c 80607ca46eSDavid Howells #define SERIO_TSC40 0x3d 81b4e05923SHans de Goede #define SERIO_WACOM_IV 0x3e 826b0f8f9cSBöszörményi Zoltán #define SERIO_EGALAX 0x3f 83c624b5deSHans Verkuil #define SERIO_PULSE8_CEC 0x40 8404dffe11SHans Verkuil #define SERIO_RAINSHADOW_CEC 0x41 855d4b45a1SMarkus Koch #define SERIO_FSIA6B 0x42 86607ca46eSDavid Howells 87607ca46eSDavid Howells #endif /* _UAPI_SERIO_H */ 88