diff options
author | Nick Pelly <npelly@google.com> | 2010-09-23 12:47:58 -0700 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2010-09-23 13:53:18 -0700 |
commit | 5d9927ba30ba449badb9f6df0fbeb4d6aedc6e2a (patch) | |
tree | 190f9251c6db03d3550ec7f30b51a2561c01d9cf /inc/phNfcIoctlCode.h | |
parent | 4ff7c86a2c706b150078274455406f1b04966e1a (diff) | |
download | external_libnfc-nxp-5d9927ba30ba449badb9f6df0fbeb4d6aedc6e2a.zip external_libnfc-nxp-5d9927ba30ba449badb9f6df0fbeb4d6aedc6e2a.tar.gz external_libnfc-nxp-5d9927ba30ba449badb9f6df0fbeb4d6aedc6e2a.tar.bz2 |
Initial libnfc checkin
Source: Trusted_NFC_Device_Host_AA03.01e02_google.zip code drop (23-Sep-2010)
Change-Id: Ie47f18423f949a8d3e0815d13f55c814312add24
Signed-off-by: Nick Pelly <npelly@google.com>
Diffstat (limited to 'inc/phNfcIoctlCode.h')
-rw-r--r-- | inc/phNfcIoctlCode.h | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/inc/phNfcIoctlCode.h b/inc/phNfcIoctlCode.h new file mode 100644 index 0000000..a9e3f1f --- /dev/null +++ b/inc/phNfcIoctlCode.h @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2010 NXP Semiconductors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +/** + * \file phNfcIoctlCode.h + * \brief IOCTL Code Definition. + * + * This file contains control codes for the IOCTL function. + * + * + * Project: NFC MW / HAL + * + * $Date: Wed May 26 16:44:03 2010 $ + * $Author: ing04880 $ + * $Revision: 1.11 $ + * $Aliases: NFC_FRI1.1_WK1023_R35_1 $ + * + */ + + +#ifndef PHNFCIOCTLCODE_H /* */ +#define PHNFCIOCTLCODE_H /* */ + +/** + * \name IOCTL Codes + * + * File: \ref phNfcIoctlCode.h + * + */ +/*@{*/ +#define PHNFCIOCTLCODE_FILEREVISION "$Revision: 1.11 $" /**< \ingroup grp_file_attributes */ +#define PHNFCIOCTLCODE_FILEALIASES "$Aliases: NFC_FRI1.1_WK1023_R35_1 $" /**< \ingroup grp_file_attributes */ +/*@}*/ + + + +/* The Return Status for the IOCTL Operation */ +#define NFC_IO_SUCCESS (0x90U) +#define NFC_IO_ERROR (0x9FU) + + + + +#define NFC_GPIO_READ (0xF82AU) + +#define NFC_FW_DOWNLOAD (0x09FFU) +#define NFC_FW_DOWNLOAD_CHECK (0x09F7U) + +#define NFC_ANTENNA_CWG (0x989FU) + + +/* The PN544 DEVICE Management Control : 0x90*/ +#define DEVMGMT_CTL (0x90U) + + +/* Ioctl codes for PN544 System Tests */ +#define DEVMGMT_TEST_MASK (0xFFU) +#define DEVMGMT_ANTENNA_TEST ((DEVMGMT_CTL << 8)|(0x20U)) +#define DEVMGMT_SWP_TEST ((DEVMGMT_CTL << 8)|(0x21U)) +#define DEVMGMT_NFCWI_TEST ((DEVMGMT_CTL << 8)|(0x22U)) +#define DEVMGMT_PRBS_TEST ((DEVMGMT_CTL << 8)|(0x25U)) + +#define NFC_MEM_READ (0xD0U) +#define NFC_MEM_WRITE (0xD1U) + +#define NFC_SWITCH_SWP_MODE (0xEE) + + +#if 0 +#define DEVMGMT_HOSTINTERFACE_TEST ((DEVMGMT_CTL << 8)|(0x23U)) +#endif + + +#endif /* PHNFCIOCTLCODE */ + + + + |