Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /* -------------------------------------------------------------------------
0003  * Copyright (C) 2014-2016, Intel Corporation
0004  *
0005  * -------------------------------------------------------------------------
0006  */
0007 
0008 #ifndef __LOCAL_FDP_H_
0009 #define __LOCAL_FDP_H_
0010 
0011 #include <net/nfc/nci_core.h>
0012 #include <linux/gpio/consumer.h>
0013 
0014 struct fdp_i2c_phy {
0015     struct i2c_client *i2c_dev;
0016     struct gpio_desc *power_gpio;
0017     struct nci_dev *ndev;
0018 
0019     /* < 0 if i2c error occurred */
0020     int hard_fault;
0021     uint16_t next_read_size;
0022 };
0023 
0024 int fdp_nci_probe(struct fdp_i2c_phy *phy, const struct nfc_phy_ops *phy_ops,
0025           struct nci_dev **ndev, int tx_headroom, int tx_tailroom,
0026           u8 clock_type, u32 clock_freq, const u8 *fw_vsc_cfg);
0027 void fdp_nci_remove(struct nci_dev *ndev);
0028 
0029 #endif /* __LOCAL_FDP_H_ */