.. | .. |
---|
132 | 132 | are a royal PITA .. */ |
---|
133 | 133 | }; |
---|
134 | 134 | |
---|
| 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 | + |
---|
135 | 152 | #endif /* _UAPI_LINUX_SERIAL_H */ |
---|