blob: a06e33fbaa8b9938e20020e97c145a3b847fd5d7 [file] [log] [blame]
Sjur Braendeland09009f32010-03-30 13:56:21 +00001/*
2 * Copyright (C) ST-Ericsson AB 2010
sjur.brandeland@stericsson.com26ee65e2013-04-22 23:57:01 +00003 * Author: Sjur Brendeland
Sjur Braendeland09009f32010-03-30 13:56:21 +00004 * License terms: GNU General Public License (GPL) version 2
5 */
6
7#ifndef CFFRML_H_
8#define CFFRML_H_
9#include <net/caif/caif_layer.h>
sjur.brandeland@stericsson.comcb3cb422011-05-13 02:44:02 +000010#include <linux/netdevice.h>
Sjur Braendeland09009f32010-03-30 13:56:21 +000011
12struct cffrml;
sjur.brandeland@stericsson.comcb3cb422011-05-13 02:44:02 +000013struct cflayer *cffrml_create(u16 phyid, bool use_fcs);
14void cffrml_free(struct cflayer *layr);
Sjur Braendeland09009f32010-03-30 13:56:21 +000015void cffrml_set_uplayer(struct cflayer *this, struct cflayer *up);
16void cffrml_set_dnlayer(struct cflayer *this, struct cflayer *dn);
sjur.brandeland@stericsson.com0b1e9732011-05-13 02:43:59 +000017void cffrml_put(struct cflayer *layr);
18void cffrml_hold(struct cflayer *layr);
sjur.brandeland@stericsson.comcb3cb422011-05-13 02:44:02 +000019int cffrml_refcnt_read(struct cflayer *layr);
Sjur Braendeland09009f32010-03-30 13:56:21 +000020
21#endif /* CFFRML_H_ */