Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * NCI based Driver for STMicroelectronics NFC Chip
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 2014-2015  STMicroelectronics SAS. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #ifndef __LOCAL_NDLC_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define __LOCAL_NDLC_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/skbuff.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <net/nfc/nfc.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) struct st_nci_se_status;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) /* Low Level Transport description */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) struct llt_ndlc {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	struct nci_dev *ndev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	struct nfc_phy_ops *ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	void *phy_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	struct timer_list t1_timer;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	bool t1_active;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	struct timer_list t2_timer;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	bool t2_active;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	struct sk_buff_head rcv_q;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	struct sk_buff_head send_q;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	struct sk_buff_head ack_pending_q;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	struct work_struct sm_work;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	struct device *dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 	 * < 0 if hardware error occurred
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 	 * and prevents normal operation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 	int hard_fault;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 	int powered;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) int ndlc_open(struct llt_ndlc *ndlc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) void ndlc_close(struct llt_ndlc *ndlc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) int ndlc_send(struct llt_ndlc *ndlc, struct sk_buff *skb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) void ndlc_recv(struct llt_ndlc *ndlc, struct sk_buff *skb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) int ndlc_probe(void *phy_id, struct nfc_phy_ops *phy_ops, struct device *dev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 	       int phy_headroom, int phy_tailroom, struct llt_ndlc **ndlc_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 	       struct st_nci_se_status *se_status);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) void ndlc_remove(struct llt_ndlc *ndlc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) #endif /* __LOCAL_NDLC_H__ */