From 59904de7e091476e6d19f61bdfc7e157034428b0 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Wed, 23 Jan 2019 21:18:55 +0000 Subject: [PATCH] bits/ioctl.h: add TIOC{G,S}ISO7816 from linux v4.20 ISO7816 smart cards ioctls. linux commit ad8c0eaa0a418ae8ef3f9217638bb86439399eac the actual kernel definitions are #define TIOCGISO7816 _IOR('T', 0x42, struct serial_iso7816) #define TIOCSISO7816 _IOWR('T', 0x43, struct serial_iso7816) where struct serial_iso7816 is defined in linux/serial.h as struct serial_iso7816 { __u32 flags; __u32 tg; __u32 sc_fi; __u32 sc_di; __u32 clk; __u32 reserved[5]; }; --- arch/generic/bits/ioctl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/generic/bits/ioctl.h b/arch/generic/bits/ioctl.h index 2dae1fe2..d1a6c035 100644 --- a/arch/generic/bits/ioctl.h +++ b/arch/generic/bits/ioctl.h @@ -64,6 +64,8 @@ #define TIOCGPTLCK 0x80045439 #define TIOCGEXCL 0x80045440 #define TIOCGPTPEER 0x5441 +#define TIOCGISO7816 0x80285442 +#define TIOCSISO7816 0xc0285443 #define FIONCLEX 0x5450 #define FIOCLEX 0x5451 -- 2.25.1