Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * Copyright (C) 1999-2002 Vojtech Pavlik
0004 *
0005  * This program is free software; you can redistribute it and/or modify it
0006  * under the terms of the GNU General Public License version 2 as published by
0007  * the Free Software Foundation.
0008  */
0009 #ifndef _UAPI_SERIO_H
0010 #define _UAPI_SERIO_H
0011 
0012 #include <linux/const.h>
0013 #include <linux/ioctl.h>
0014 
0015 #define SPIOCSTYPE  _IOW('q', 0x01, unsigned long)
0016 
0017 
0018 /*
0019  * bit masks for use in "interrupt" flags (3rd argument)
0020  */
0021 #define SERIO_TIMEOUT   _BITUL(0)
0022 #define SERIO_PARITY    _BITUL(1)
0023 #define SERIO_FRAME _BITUL(2)
0024 #define SERIO_OOB_DATA  _BITUL(3)
0025 
0026 /*
0027  * Serio types
0028  */
0029 #define SERIO_XT    0x00
0030 #define SERIO_8042  0x01
0031 #define SERIO_RS232 0x02
0032 #define SERIO_HIL_MLC   0x03
0033 #define SERIO_PS_PSTHRU 0x05
0034 #define SERIO_8042_XL   0x06
0035 
0036 /*
0037  * Serio protocols
0038  */
0039 #define SERIO_UNKNOWN   0x00
0040 #define SERIO_MSC   0x01
0041 #define SERIO_SUN   0x02
0042 #define SERIO_MS    0x03
0043 #define SERIO_MP    0x04
0044 #define SERIO_MZ    0x05
0045 #define SERIO_MZP   0x06
0046 #define SERIO_MZPP  0x07
0047 #define SERIO_VSXXXAA   0x08
0048 #define SERIO_SUNKBD    0x10
0049 #define SERIO_WARRIOR   0x18
0050 #define SERIO_SPACEORB  0x19
0051 #define SERIO_MAGELLAN  0x1a
0052 #define SERIO_SPACEBALL 0x1b
0053 #define SERIO_GUNZE 0x1c
0054 #define SERIO_IFORCE    0x1d
0055 #define SERIO_STINGER   0x1e
0056 #define SERIO_NEWTON    0x1f
0057 #define SERIO_STOWAWAY  0x20
0058 #define SERIO_H3600 0x21
0059 #define SERIO_PS2SER    0x22
0060 #define SERIO_TWIDKBD   0x23
0061 #define SERIO_TWIDJOY   0x24
0062 #define SERIO_HIL   0x25
0063 #define SERIO_SNES232   0x26
0064 #define SERIO_SEMTECH   0x27
0065 #define SERIO_LKKBD 0x28
0066 #define SERIO_ELO   0x29
0067 #define SERIO_MICROTOUCH    0x30
0068 #define SERIO_PENMOUNT  0x31
0069 #define SERIO_TOUCHRIGHT    0x32
0070 #define SERIO_TOUCHWIN  0x33
0071 #define SERIO_TAOSEVM   0x34
0072 #define SERIO_FUJITSU   0x35
0073 #define SERIO_ZHENHUA   0x36
0074 #define SERIO_INEXIO    0x37
0075 #define SERIO_TOUCHIT213    0x38
0076 #define SERIO_W8001 0x39
0077 #define SERIO_DYNAPRO   0x3a
0078 #define SERIO_HAMPSHIRE 0x3b
0079 #define SERIO_PS2MULT   0x3c
0080 #define SERIO_TSC40 0x3d
0081 #define SERIO_WACOM_IV  0x3e
0082 #define SERIO_EGALAX    0x3f
0083 #define SERIO_PULSE8_CEC    0x40
0084 #define SERIO_RAINSHADOW_CEC    0x41
0085 #define SERIO_FSIA6B    0x42
0086 
0087 #endif /* _UAPI_SERIO_H */