mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-21 14:21:48 +00:00
tty/serial_core: add ISO7816 infrastructure
Add the ISO7816 ioctl and associated accessors and data structure. Drivers can then use this common implementation to handle ISO7816 (smart cards). Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> [ludovic.desroches@microchip.com: squash and rebase, removal of gpios, checkpatch fixes] Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c550f01c81
commit
ad8c0eaa0a
12 changed files with 179 additions and 0 deletions
|
@ -132,4 +132,21 @@ struct serial_rs485 {
|
|||
are a royal PITA .. */
|
||||
};
|
||||
|
||||
/*
|
||||
* Serial interface for controlling ISO7816 settings on chips with suitable
|
||||
* support. Set with TIOCSISO7816 and get with TIOCGISO7816 if supported by
|
||||
* your platform.
|
||||
*/
|
||||
struct serial_iso7816 {
|
||||
__u32 flags; /* ISO7816 feature flags */
|
||||
#define SER_ISO7816_ENABLED (1 << 0)
|
||||
#define SER_ISO7816_T_PARAM (0x0f << 4)
|
||||
#define SER_ISO7816_T(t) (((t) & 0x0f) << 4)
|
||||
__u32 tg;
|
||||
__u32 sc_fi;
|
||||
__u32 sc_di;
|
||||
__u32 clk;
|
||||
__u32 reserved[5];
|
||||
};
|
||||
|
||||
#endif /* _UAPI_LINUX_SERIAL_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue