2 * NCI based driver for Samsung S3FWRN5 NFC chip
4 * Copyright (C) 2015 Samsung Electrnoics
5 * Robert Baldyga <r.baldyga@samsung.com>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License,
9 * version 2 or later, as published by the Free Software Foundation.
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.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef __LOCAL_S3FWRN5_NCI_H_
21 #define __LOCAL_S3FWRN5_NCI_H_
25 #define NCI_PROP_AGAIN 0x01
27 #define NCI_PROP_GET_RFREG 0x21
28 #define NCI_PROP_SET_RFREG 0x22
30 struct nci_prop_set_rfreg_cmd
{
35 struct nci_prop_set_rfreg_rsp
{
39 #define NCI_PROP_GET_RFREG_VER 0x24
41 struct nci_prop_get_rfreg_ver_rsp
{
46 #define NCI_PROP_SET_RFREG_VER 0x25
48 struct nci_prop_set_rfreg_ver_cmd
{
52 struct nci_prop_set_rfreg_ver_rsp
{
56 #define NCI_PROP_START_RFREG 0x26
58 struct nci_prop_start_rfreg_rsp
{
62 #define NCI_PROP_STOP_RFREG 0x27
64 struct nci_prop_stop_rfreg_cmd
{
68 struct nci_prop_stop_rfreg_rsp
{
72 #define NCI_PROP_FW_CFG 0x28
74 struct nci_prop_fw_cfg_cmd
{
80 struct nci_prop_fw_cfg_rsp
{
84 #define NCI_PROP_WR_RESET 0x2f
86 void s3fwrn5_nci_get_prop_ops(struct nci_driver_ops
**ops
, size_t *n
);
87 int s3fwrn5_nci_rf_configure(struct s3fwrn5_info
*info
, const char *fw_name
);
89 #endif /* __LOCAL_S3FWRN5_NCI_H_ */