1 /* 2 * se_gemalto.h - Access Gemalto Secure Element over SPI. 3 * 4 * 2019 Gemalto – a Thales Company 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 */ 20 21 #ifndef SE_GEMALTO_H 22 #define SE_GEMALTO_H 23 24 #include <linux/types.h> 25 26 #define GTO_IOC_MAGIC 'g' 27 28 /* Read / Write of power configuration (GTO_POWER_ON, GTO_POWER_OFF) */ 29 #define GTO_IOC_RD_POWER _IOR(GTO_IOC_MAGIC, 1, __s32) 30 #define GTO_IOC_WR_POWER _IOW(GTO_IOC_MAGIC, 1, __s32) 31 #define GTO_IOC_WR_RESET _IOW(GTO_IOC_MAGIC, 2, __s32) 32 33 /* Read / Write of clock speed configuration */ 34 #define GTO_IOC_RD_CLK_SPEED _IOR(GTO_IOC_MAGIC, 2, __s32) 35 #define GTO_IOC_WR_CLK_SPEED _IOW(GTO_IOC_MAGIC, 2, __s32) 36 37 #endif /* ifndef SE_GEMALTO_H */ 38