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 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * Copyright IBM Corp. 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  * Authors:	Peter Tiedemann (ptiedem@de.ibm.com)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  * 	MPC additions:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  *		Belinda Thompson (belindat@us.ibm.com)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8)  *		Andy Richter (richtera@us.ibm.com)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) #ifndef _CTC_MPC_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) #define _CTC_MPC_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) #include <linux/interrupt.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) #include <linux/skbuff.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include "fsm.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19)  * MPC external interface
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20)  * Note that ctc_mpc_xyz are called with a lock on ................
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) /*  port_number is the mpc device 0, 1, 2 etc mpc2 is port_number 2 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) /*  passive open  Just wait for XID2 exchange */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) extern int ctc_mpc_alloc_channel(int port,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 		void (*callback)(int port_num, int max_write_size));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) /* active open  Alloc then send XID2 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) extern void ctc_mpc_establish_connectivity(int port,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 		void (*callback)(int port_num, int rc, int max_write_size));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) extern void ctc_mpc_dealloc_ch(int port);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) extern void ctc_mpc_flow_control(int port, int flowc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36)  * other MPC Group prototypes and structures
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) #define ETH_P_SNA_DIX	0x80D5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42)  * Declaration of an XID2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) #define ALLZEROS 0x0000000000000000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) #define XID_FM2		0x20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) #define XID2_0		0x00
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) #define XID2_7		0x07
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) #define XID2_WRITE_SIDE 0x04
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) #define XID2_READ_SIDE	0x05
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) struct xid2 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	__u8	xid2_type_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	__u8	xid2_len;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	__u32	xid2_adj_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	__u8	xid2_rlen;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	__u8	xid2_resv1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	__u8	xid2_flag1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 	__u8	xid2_fmtt;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 	__u8	xid2_flag4;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 	__u16	xid2_resv2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 	__u8	xid2_tgnum;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	__u32	xid2_sender_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 	__u8	xid2_flag2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 	__u8	xid2_option;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 	char  xid2_resv3[8];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 	__u16	xid2_resv4;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 	__u8	xid2_dlc_type;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 	__u16	xid2_resv5;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 	__u8	xid2_mpc_flag;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 	__u8	xid2_resv6;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 	__u16	xid2_buf_len;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 	char xid2_buffer[255 - (13 * sizeof(__u8) +
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 				2 * sizeof(__u32) +
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 				4 * sizeof(__u16) +
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 				8 * sizeof(char))];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) } __attribute__ ((packed));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) #define XID2_LENGTH  (sizeof(struct xid2))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) struct th_header {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 	__u8	th_seg;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 	__u8	th_ch_flag;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) #define TH_HAS_PDU	0xf0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) #define TH_IS_XID	0x01
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) #define TH_SWEEP_REQ	0xfe
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) #define TH_SWEEP_RESP	0xff
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 	__u8	th_blk_flag;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) #define TH_DATA_IS_XID	0x80
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) #define TH_RETRY	0x40
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) #define TH_DISCONTACT	0xc0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) #define TH_SEG_BLK	0x20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) #define TH_LAST_SEG	0x10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) #define TH_PDU_PART	0x08
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 	__u8	th_is_xid;	/* is 0x01 if this is XID  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 	__u32	th_seq_num;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) } __attribute__ ((packed));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) struct th_addon {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 	__u32	th_last_seq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	__u32	th_resvd;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) } __attribute__ ((packed));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) struct th_sweep {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 	struct th_header th;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 	struct th_addon sw;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) } __attribute__ ((packed));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) #define TH_HEADER_LENGTH (sizeof(struct th_header))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) #define TH_SWEEP_LENGTH (sizeof(struct th_sweep))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) #define PDU_LAST	0x80
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) #define PDU_CNTL	0x40
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) #define PDU_FIRST	0x20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) struct pdu {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 	__u32	pdu_offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 	__u8	pdu_flag;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 	__u8	pdu_proto;   /*  0x01 is APPN SNA  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 	__u16	pdu_seq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) } __attribute__ ((packed));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) #define PDU_HEADER_LENGTH  (sizeof(struct pdu))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) struct qllc {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 	__u8	qllc_address;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) #define QLLC_REQ	0xFF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) #define QLLC_RESP	0x00
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 	__u8	qllc_commands;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) #define QLLC_DISCONNECT 0x53
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) #define QLLC_UNSEQACK	0x73
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) #define QLLC_SETMODE	0x93
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) #define QLLC_EXCHID	0xBF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) } __attribute__ ((packed));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139)  * Definition of one MPC group
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) #define MAX_MPCGCHAN		10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) #define MPC_XID_TIMEOUT_VALUE	10000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) #define MPC_CHANNEL_ADD		0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) #define MPC_CHANNEL_REMOVE	1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) #define MPC_CHANNEL_ATTN	2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) #define XSIDE	1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) #define YSIDE	0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) struct mpcg_info {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 	struct sk_buff	*skb;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	struct channel	*ch;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 	struct xid2	*xid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 	struct th_sweep	*sweep;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 	struct th_header *th;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) struct mpc_group {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 	struct tasklet_struct mpc_tasklet;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 	struct tasklet_struct mpc_tasklet2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	int	changed_side;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 	int	saved_state;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 	int	channels_terminating;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 	int	out_of_sequence;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	int	flow_off_called;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 	int	port_num;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 	int	port_persist;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	int	alloc_called;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	__u32	xid2_adj_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 	__u8	xid2_tgnum;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 	__u32	xid2_sender_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	int	num_channel_paths;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 	int	active_channels[2];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 	__u16	group_max_buflen;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 	int	outstanding_xid2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 	int	outstanding_xid7;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 	int	outstanding_xid7_p2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 	int	sweep_req_pend_num;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 	int	sweep_rsp_pend_num;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 	struct sk_buff	*xid_skb;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 	char		*xid_skb_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 	struct th_header *xid_th;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 	struct xid2	*xid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 	char		*xid_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 	struct th_header *rcvd_xid_th;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 	struct sk_buff	*rcvd_xid_skb;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	char		*rcvd_xid_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 	__u8		in_sweep;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 	__u8		roll;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	struct xid2	*saved_xid2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	void 		(*allochanfunc)(int, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	int		allocchan_callback_retries;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	void 		(*estconnfunc)(int, int, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 	int		estconn_callback_retries;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 	int		estconn_called;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 	int		xidnogood;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 	int		send_qllc_disc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 	fsm_timer	timer;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 	fsm_instance	*fsm; /* group xid fsm */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) #ifdef DEBUGDATA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) void ctcmpc_dumpit(char *buf, int len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) static inline void ctcmpc_dumpit(char *buf, int len)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) #ifdef DEBUGDATA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212)  * Dump header and first 16 bytes of an sk_buff for debugging purposes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214)  * skb	 The struct sk_buff to dump.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215)  * offset Offset relative to skb-data, where to start the dump.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) void ctcmpc_dump_skb(struct sk_buff *skb, int offset);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) static inline void ctcmpc_dump_skb(struct sk_buff *skb, int offset)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) {}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) static inline void ctcmpc_dump32(char *buf, int len)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) 	if (len < 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) 		ctcmpc_dumpit(buf, len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) 	else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) 		ctcmpc_dumpit(buf, 32);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) void ctcm_ccw_check_rc(struct channel *, int, char *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) void mpc_group_ready(unsigned long adev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) void mpc_channel_action(struct channel *ch, int direction, int action);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) void mpc_action_send_discontact(unsigned long thischan);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) void mpc_action_discontact(fsm_instance *fi, int event, void *arg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) void ctcmpc_bh(unsigned long thischan);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) /* --- This is the END my friend --- */