root / trunk / src / libopensc / cards.h

Revision 3309, 3.7 kB (checked in by pk, 7 months ago)

support for TCOS3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/*
2 * cards.h: Registered card types for sc_card_t->type
3 *
4 * Copyright (C) 2005  Antti Tapaninen <aet@cc.hut.fi>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library 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 GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 */
20
21#ifndef _OPENSC_CARDS_H
22#define _OPENSC_CARDS_H
23
24#include <opensc/types.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30enum {
31        /* Generic card types */
32        SC_CARD_TYPE_UNKNOWN = -1,
33        SC_CARD_TYPE_GENERIC_BASE = 0,
34        SC_CARD_TYPE_GENERIC,
35
36        /* Cards without registered type, yet */
37        SC_CARD_TYPE_TEST_BASE = 500,
38
39        /* cardos driver */
40        SC_CARD_TYPE_CARDOS_BASE = 1000,
41        SC_CARD_TYPE_CARDOS_GENERIC,
42        SC_CARD_TYPE_CARDOS_M4_01,
43        SC_CARD_TYPE_CARDOS_M4_2,
44        SC_CARD_TYPE_CARDOS_M4_3,
45        SC_CARD_TYPE_CARDOS_M4_2B, /* 4.2b is after 4.3b */
46        SC_CARD_TYPE_CARDOS_M4_2C,
47
48        /* flex/cyberflex drivers */
49        SC_CARD_TYPE_FLEX_BASE = 2000,
50        SC_CARD_TYPE_FLEX_GENERIC,
51        SC_CARD_TYPE_FLEX_CRYPTO,
52        SC_CARD_TYPE_FLEX_MULTI,
53        SC_CARD_TYPE_FLEX_CYBER,
54
55        /* gpk driver */
56        SC_CARD_TYPE_GPK_BASE = 3000,
57        SC_CARD_TYPE_GPK_GENERIC,
58        SC_CARD_TYPE_GPK_GPK4000_su256 = 3040,
59        SC_CARD_TYPE_GPK_GPK4000_s,
60        SC_CARD_TYPE_GPK_GPK4000_sp,
61        SC_CARD_TYPE_GPK_GPK4000_sdo,
62        SC_CARD_TYPE_GPK_GPK8000 = 3080,
63        SC_CARD_TYPE_GPK_GPK8000_8K,
64        SC_CARD_TYPE_GPK_GPK8000_16K,
65        SC_CARD_TYPE_GPK_GPK16000 = 3160,
66
67        /* miocos driver */
68        SC_CARD_TYPE_MIOCOS_BASE = 4000,
69        SC_CARD_TYPE_MIOCOS_GENERIC,
70
71        /* mcrd driver */
72        SC_CARD_TYPE_MCRD_BASE = 5000,
73        SC_CARD_TYPE_MCRD_GENERIC,
74        SC_CARD_TYPE_MCRD_ESTEID,
75        SC_CARD_TYPE_MCRD_DTRUST,
76
77        /* setcos driver */
78        SC_CARD_TYPE_SETCOS_BASE = 6000,
79        SC_CARD_TYPE_SETCOS_GENERIC,
80        SC_CARD_TYPE_SETCOS_PKI,
81        SC_CARD_TYPE_SETCOS_FINEID,
82        SC_CARD_TYPE_SETCOS_FINEID_V2,
83        SC_CARD_TYPE_SETCOS_NIDEL,
84        SC_CARD_TYPE_SETCOS_44 = 6100,
85        SC_CARD_TYPE_SETCOS_EID_V2_0,
86        SC_CARD_TYPE_SETCOS_EID_V2_1,
87
88        /* starcos driver */
89        SC_CARD_TYPE_STARCOS_BASE = 7000,
90        SC_CARD_TYPE_STARCOS_GENERIC,
91
92        /* tcos driver */
93        SC_CARD_TYPE_TCOS_BASE = 8000,
94        SC_CARD_TYPE_TCOS_GENERIC,
95        SC_CARD_TYPE_TCOS_V2,
96        SC_CARD_TYPE_TCOS_V3,
97
98        /* openpgp driver */
99        SC_CARD_TYPE_OPENPGP_BASE = 9000,
100        SC_CARD_TYPE_OPENPGP_GENERIC,
101
102        /* jcop driver */
103        SC_CARD_TYPE_JCOP_BASE = 10000,
104        SC_CARD_TYPE_JCOP_GENERIC,
105
106        /* oberthur driver */
107        SC_CARD_TYPE_OBERTHUR_BASE = 11000,
108        SC_CARD_TYPE_OBERTHUR_GENERIC,
109        SC_CARD_TYPE_OBERTHUR_32K,
110        SC_CARD_TYPE_OBERTHUR_32K_BIO,
111        SC_CARD_TYPE_OBERTHUR_64K,
112
113        /* belpic driver */
114        SC_CARD_TYPE_BELPIC_BASE = 12000,
115        SC_CARD_TYPE_BELPIC_GENERIC,
116        SC_CARD_TYPE_BELPIC_EID,
117
118        /* incrypto34 driver */
119        SC_CARD_TYPE_INCRYPTO34_BASE = 13000,
120        SC_CARD_TYPE_INCRYPTO34_GENERIC,
121
122        /* PIV-II type cards */
123        SC_CARD_TYPE_PIV_II_BASE = 14000,
124        SC_CARD_TYPE_PIV_II_GENERIC,
125       
126        /* Muscle cards */
127        SC_CARD_TYPE_MUSCLE_BASE = 15000,
128        SC_CARD_TYPE_MUSCLE_GENERIC,
129
130        /* ACOS5 driver */
131        SC_CARD_TYPE_ACOS5_BASE = 16000,
132        SC_CARD_TYPE_ACOS5_GENERIC,
133
134        /* Athena APCOS cards */
135        SC_CARD_TYPE_ASEPCOS_BASE = 17000,
136        SC_CARD_TYPE_ASEPCOS_GENERIC,
137        SC_CARD_TYPE_ASEPCOS_JAVA,
138
139        /* TUBITAK UEKAE cards */
140        SC_CARD_TYPE_AKIS_BASE = 18000,
141        SC_CARD_TYPE_AKIS_GENERIC
142};
143
144#ifdef __cplusplus
145}
146#endif
147
148#endif /* _OPENSC_CARDS_H */
Note: See TracBrowser for help on using the browser.