![]() |
|
|||
0001 /* SPDX-License-Identifier: LGPL-2.0+ WITH Linux-syscall-note */ 0002 /* 0003 * userio: virtual serio device support 0004 * Copyright (C) 2015 Red Hat 0005 * Copyright (C) 2015 Lyude (Stephen Chandler Paul) <cpaul@redhat.com> 0006 * 0007 * This program is free software; you can redistribute it and/or modify it 0008 * under the terms of the GNU Lesser General Public License as published by the 0009 * Free Software Foundation; either version 2 of the License, or (at your 0010 * option) any later version. 0011 * 0012 * This program is distributed in the hope that it will be useful, but WITHOUT 0013 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 0014 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 0015 * details. 0016 * 0017 * This is the public header used for user-space communication with the userio 0018 * driver. __attribute__((__packed__)) is used for all structs to keep ABI 0019 * compatibility between all architectures. 0020 */ 0021 0022 #ifndef _USERIO_H 0023 #define _USERIO_H 0024 0025 #include <linux/types.h> 0026 0027 enum userio_cmd_type { 0028 USERIO_CMD_REGISTER = 0, 0029 USERIO_CMD_SET_PORT_TYPE = 1, 0030 USERIO_CMD_SEND_INTERRUPT = 2 0031 }; 0032 0033 /* 0034 * userio Commands 0035 * All commands sent to /dev/userio are encoded using this structure. The type 0036 * field should contain a USERIO_CMD* value that indicates what kind of command 0037 * is being sent to userio. The data field should contain the accompanying 0038 * argument for the command, if there is one. 0039 */ 0040 struct userio_cmd { 0041 __u8 type; 0042 __u8 data; 0043 } __attribute__((__packed__)); 0044 0045 #endif /* !_USERIO_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |