#define pr_fmt(fmt) …
#include <linux/stddef.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <net/caif/caif_layer.h>
#include <net/caif/cfpkt.h>
#include <net/caif/cfserl.h>
#define container_obj(layr) …
#define CFSERL_STX …
#define SERIAL_MINIUM_PACKET_SIZE …
#define SERIAL_MAX_FRAMESIZE …
struct cfserl { … };
static int cfserl_receive(struct cflayer *layr, struct cfpkt *pkt);
static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt);
static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
int phyid);
void cfserl_release(struct cflayer *layer)
{ … }
struct cflayer *cfserl_create(int instance, bool use_stx)
{ … }
static int cfserl_receive(struct cflayer *l, struct cfpkt *newpkt)
{ … }
static int cfserl_transmit(struct cflayer *layer, struct cfpkt *newpkt)
{ … }
static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
int phyid)
{ … }