hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
kernel/include/uapi/linux/serial.h
....@@ -132,4 +132,21 @@
132132 are a royal PITA .. */
133133 };
134134
135
+/*
136
+ * Serial interface for controlling ISO7816 settings on chips with suitable
137
+ * support. Set with TIOCSISO7816 and get with TIOCGISO7816 if supported by
138
+ * your platform.
139
+ */
140
+struct serial_iso7816 {
141
+ __u32 flags; /* ISO7816 feature flags */
142
+#define SER_ISO7816_ENABLED (1 << 0)
143
+#define SER_ISO7816_T_PARAM (0x0f << 4)
144
+#define SER_ISO7816_T(t) (((t) & 0x0f) << 4)
145
+ __u32 tg;
146
+ __u32 sc_fi;
147
+ __u32 sc_di;
148
+ __u32 clk;
149
+ __u32 reserved[5];
150
+};
151
+
135152 #endif /* _UAPI_LINUX_SERIAL_H */