mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 16:01:14 +07:00
9dd0abd232
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms and conditions of the gnu general public license version 2 or later as published by the free software foundation this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with this program if not see http www gnu org licenses extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 7 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190523091651.504392586@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
79 lines
1.3 KiB
C
79 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* NCI based driver for Samsung S3FWRN5 NFC chip
|
|
*
|
|
* Copyright (C) 2015 Samsung Electrnoics
|
|
* Robert Baldyga <r.baldyga@samsung.com>
|
|
*/
|
|
|
|
#ifndef __LOCAL_S3FWRN5_NCI_H_
|
|
#define __LOCAL_S3FWRN5_NCI_H_
|
|
|
|
#include "s3fwrn5.h"
|
|
|
|
#define NCI_PROP_AGAIN 0x01
|
|
|
|
#define NCI_PROP_GET_RFREG 0x21
|
|
#define NCI_PROP_SET_RFREG 0x22
|
|
|
|
struct nci_prop_set_rfreg_cmd {
|
|
__u8 index;
|
|
__u8 data[252];
|
|
};
|
|
|
|
struct nci_prop_set_rfreg_rsp {
|
|
__u8 status;
|
|
};
|
|
|
|
#define NCI_PROP_GET_RFREG_VER 0x24
|
|
|
|
struct nci_prop_get_rfreg_ver_rsp {
|
|
__u8 status;
|
|
__u8 data[8];
|
|
};
|
|
|
|
#define NCI_PROP_SET_RFREG_VER 0x25
|
|
|
|
struct nci_prop_set_rfreg_ver_cmd {
|
|
__u8 data[8];
|
|
};
|
|
|
|
struct nci_prop_set_rfreg_ver_rsp {
|
|
__u8 status;
|
|
};
|
|
|
|
#define NCI_PROP_START_RFREG 0x26
|
|
|
|
struct nci_prop_start_rfreg_rsp {
|
|
__u8 status;
|
|
};
|
|
|
|
#define NCI_PROP_STOP_RFREG 0x27
|
|
|
|
struct nci_prop_stop_rfreg_cmd {
|
|
__u16 checksum;
|
|
};
|
|
|
|
struct nci_prop_stop_rfreg_rsp {
|
|
__u8 status;
|
|
};
|
|
|
|
#define NCI_PROP_FW_CFG 0x28
|
|
|
|
struct nci_prop_fw_cfg_cmd {
|
|
__u8 clk_type;
|
|
__u8 clk_speed;
|
|
__u8 clk_req;
|
|
};
|
|
|
|
struct nci_prop_fw_cfg_rsp {
|
|
__u8 status;
|
|
};
|
|
|
|
#define NCI_PROP_WR_RESET 0x2f
|
|
|
|
void s3fwrn5_nci_get_prop_ops(struct nci_driver_ops **ops, size_t *n);
|
|
int s3fwrn5_nci_rf_configure(struct s3fwrn5_info *info, const char *fw_name);
|
|
|
|
#endif /* __LOCAL_S3FWRN5_NCI_H_ */
|