linux/drivers/nfc/st-nci/ndlc.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Low Level Transport (NDLC) Driver for STMicroelectronics NFC Chip
 *
 * Copyright (C) 2014-2015  STMicroelectronics SAS. All rights reserved.
 */

#include <linux/sched.h>
#include <net/nfc/nci_core.h>

#include "st-nci.h"

#define NDLC_TIMER_T1
#define NDLC_TIMER_T1_WAIT
#define NDLC_TIMER_T2

#define PCB_TYPE_DATAFRAME
#define PCB_TYPE_SUPERVISOR
#define PCB_TYPE_MASK

#define PCB_SYNC_ACK
#define PCB_SYNC_NACK
#define PCB_SYNC_WAIT
#define PCB_SYNC_NOINFO
#define PCB_SYNC_MASK

#define PCB_DATAFRAME_RETRANSMIT_YES
#define PCB_DATAFRAME_RETRANSMIT_NO
#define PCB_DATAFRAME_RETRANSMIT_MASK

#define PCB_SUPERVISOR_RETRANSMIT_YES
#define PCB_SUPERVISOR_RETRANSMIT_NO
#define PCB_SUPERVISOR_RETRANSMIT_MASK

#define PCB_FRAME_CRC_INFO_PRESENT
#define PCB_FRAME_CRC_INFO_NOTPRESENT
#define PCB_FRAME_CRC_INFO_MASK

#define NDLC_DUMP_SKB(info, skb)

int ndlc_open(struct llt_ndlc *ndlc)
{}
EXPORT_SYMBOL();

void ndlc_close(struct llt_ndlc *ndlc)
{}
EXPORT_SYMBOL();

int ndlc_send(struct llt_ndlc *ndlc, struct sk_buff *skb)
{}
EXPORT_SYMBOL();

static void llt_ndlc_send_queue(struct llt_ndlc *ndlc)
{}

static void llt_ndlc_requeue_data_pending(struct llt_ndlc *ndlc)
{}

static void llt_ndlc_rcv_queue(struct llt_ndlc *ndlc)
{}

static void llt_ndlc_sm_work(struct work_struct *work)
{}

void ndlc_recv(struct llt_ndlc *ndlc, struct sk_buff *skb)
{}
EXPORT_SYMBOL();

static void ndlc_t1_timeout(struct timer_list *t)
{}

static void ndlc_t2_timeout(struct timer_list *t)
{}

int ndlc_probe(void *phy_id, const struct nfc_phy_ops *phy_ops,
	       struct device *dev, int phy_headroom, int phy_tailroom,
	       struct llt_ndlc **ndlc_id, struct st_nci_se_status *se_status)
{}
EXPORT_SYMBOL();

void ndlc_remove(struct llt_ndlc *ndlc)
{}
EXPORT_SYMBOL();