1 /* SPDX-License-Identifier: GPL-2.0 */
3 #include "hisax_isac.h"
6 #define HSCX_BUFMAX 4096
14 struct hdlc_stat_reg {
26 } __attribute__((packed));
29 struct hisax_b_if b_if;
30 struct fritz_adapter *adapter;
36 struct hdlc_stat_reg sr;
41 u_char rcvbuf[HSCX_BUFMAX]; /* B-Channel receive Buffer */
43 int tx_cnt; /* B-Channel transmit counter */
44 struct sk_buff *tx_skb; /* B-Channel transmit Buffer */
47 struct fritz_adapter {
54 struct fritz_bcs bcs[2];
56 u32 (*read_hdlc_status) (struct fritz_adapter *adapter, int nr);
57 void (*write_ctrl) (struct fritz_bcs *bcs, int which);