summaryrefslogtreecommitdiff
path: root/cleopatre/plcdrv/arm/inc/plc_drv.h
blob: c6a389bac44e523d4f22aca63c66cdb15577eda9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef plc_drv_h
#define plc_drv_h
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    plc_drv.h
 * \brief   « brief description »
 * \ingroup Cleopatre - Isis
 *
 * « long description »
 */

#include "common.h"

/** why do you want to free the buffer */
enum free_reason {
    RX_DROP = 0,
    TX_DROP = 1,
    TX_COMPLETE = 2,
};

/** 
 * Receive a packet
 */
int plcdrv_rx (void *pointer, int length);

/** 
 * Release a sk_buff
 */
int free_buffer (void *pointer, enum free_reason reason);

/** 
 * Alloc sk_buff and send to the communication layer
 */
int alloc_buffer (enum buffer_type type);

#endif /* plc_drv_h */