code update
[adaptation/devices/nfc-plugin-nxp.git] / inc / phNfcIoctlCode.h
1 /*\r
2  * Copyright (C) 2010 NXP Semiconductors\r
3  *\r
4  * Licensed under the Apache License, Version 2.0 (the "License");\r
5  * you may not use this file except in compliance with the License.\r
6  * You may obtain a copy of the License at\r
7  *\r
8  *      http://www.apache.org/licenses/LICENSE-2.0\r
9  *\r
10  * Unless required by applicable law or agreed to in writing, software\r
11  * distributed under the License is distributed on an "AS IS" BASIS,\r
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13  * See the License for the specific language governing permissions and\r
14  * limitations under the License.\r
15  */\r
16 \r
17 \r
18 /**\r
19  * \file phNfcIoctlCode.h\r
20  * \brief IOCTL Code Definition.\r
21  *\r
22  *  This file contains control codes for the IOCTL function.\r
23  *  \r
24  *  \r
25  * Project: NFC MW / HAL\r
26  *\r
27  * $Date: Wed May 26 16:44:03 2010 $ \r
28  * $Author: ing04880 $\r
29  * $Revision: 1.11 $\r
30  * $Aliases: NFC_FRI1.1_WK1023_R35_1 $\r
31  *\r
32  */\r
33 \r
34 \r
35 #ifndef PHNFCIOCTLCODE_H /* */\r
36 #define PHNFCIOCTLCODE_H /* */\r
37 \r
38 /**\r
39  *  \name IOCTL Codes\r
40  * \r
41  *  File: \ref phNfcIoctlCode.h\r
42  * \r
43  */\r
44 /*@{*/\r
45 #define PHNFCIOCTLCODE_FILEREVISION "$Revision: 1.11 $" /**< \ingroup grp_file_attributes */\r
46 #define PHNFCIOCTLCODE_FILEALIASES  "$Aliases: NFC_FRI1.1_WK1023_R35_1 $"     /**< \ingroup grp_file_attributes */\r
47 /*@}*/\r
48 \r
49 \r
50 \r
51 /* The Return Status for the IOCTL Operation */\r
52 #define NFC_IO_SUCCESS                      (0x90U)\r
53 #define NFC_IO_ERROR                        (0x9FU)\r
54 \r
55 \r
56 \r
57 \r
58 #define NFC_GPIO_READ                                   (0xF82AU)\r
59 \r
60 #define NFC_FW_DOWNLOAD                                 (0x09FFU)\r
61 #define NFC_FW_DOWNLOAD_CHECK                   (0x09F7U)\r
62 \r
63 #define NFC_ANTENNA_CWG                     (0x989FU)\r
64 \r
65 \r
66 /* The PN544 DEVICE Management Control : 0x90*/\r
67 #define DEVMGMT_CTL                                                     (0x90U)\r
68 \r
69 \r
70 /* Ioctl codes for PN544 System Tests */\r
71 #define DEVMGMT_TEST_MASK                                       (0xFFU)\r
72 #define DEVMGMT_ANTENNA_TEST                            ((DEVMGMT_CTL << 8)|(0x20U))\r
73 #define DEVMGMT_SWP_TEST                                        ((DEVMGMT_CTL << 8)|(0x21U))\r
74 #define DEVMGMT_NFCWI_TEST                                      ((DEVMGMT_CTL << 8)|(0x22U))\r
75 #define DEVMGMT_PRBS_TEST                                       ((DEVMGMT_CTL << 8)|(0x25U))\r
76 \r
77 #define NFC_MEM_READ                        (0xD0U)\r
78 #define NFC_MEM_WRITE                       (0xD1U)\r
79 \r
80 #define NFC_SWITCH_SWP_MODE                 (0xEE)\r
81 \r
82 \r
83 #if 0\r
84 #define DEVMGMT_HOSTINTERFACE_TEST                  ((DEVMGMT_CTL << 8)|(0x23U))\r
85 #endif\r
86 \r
87 \r
88 #endif /* PHNFCIOCTLCODE */\r
89 \r
90 \r
91 \r
92 \r