|
Linux Kernel
3.7.1
|
#include <linux/spinlock.h>#include <linux/sched.h>#include <linux/list.h>#include <linux/netdevice.h>#include <linux/if_arp.h>#include <linux/io.h>#include <net/caif/caif_device.h>#include <net/caif/caif_shm.h>Go to the source code of this file.
Data Structures | |
| struct | shm_pck_desc |
| struct | buf_list |
| struct | shm_caif_frm |
| struct | shmdrv_layer |
Macros | |
| #define | pr_fmt(fmt) KBUILD_MODNAME ":" fmt |
| #define | NR_TX_BUF 6 |
| #define | NR_RX_BUF 6 |
| #define | TX_BUF_SZ 0x2000 |
| #define | RX_BUF_SZ 0x2000 |
| #define | CAIF_NEEDED_HEADROOM 32 |
| #define | CAIF_FLOW_ON 1 |
| #define | CAIF_FLOW_OFF 0 |
| #define | LOW_WATERMARK 3 |
| #define | HIGH_WATERMARK 4 |
| #define | SHM_MAX_FRMS_PER_BUF 10 |
| #define | SHM_CAIF_DESC_SIZE |
| #define | SHM_CAIF_FRM_OFS (SHM_CAIF_DESC_SIZE + (SHM_CAIF_DESC_SIZE % 32)) |
| #define | SHM_HDR_LEN 1 |
| #define | SHM_FRM_PAD_LEN 4 |
| #define | CAIF_MAX_MTU 4096 |
| #define | SHM_SET_FULL(x) (((x+1) & 0x0F) << 0) |
| #define | SHM_GET_FULL(x) (((x >> 0) & 0x0F) - 1) |
| #define | SHM_SET_EMPTY(x) (((x+1) & 0x0F) << 4) |
| #define | SHM_GET_EMPTY(x) (((x >> 4) & 0x0F) - 1) |
| #define | SHM_FULL_MASK (0x0F << 0) |
| #define | SHM_EMPTY_MASK (0x0F << 4) |
Functions | |
| int | caif_shmdrv_rx_cb (u32 mbx_msg, void *priv) |
| int | caif_shmcore_probe (struct shmdev_layer *pshm_dev) |
| void | caif_shmcore_remove (struct net_device *pshm_netdev) |
| #define CAIF_FLOW_OFF 0 |
Definition at line 29 of file caif_shmcore.c.
| #define CAIF_FLOW_ON 1 |
Definition at line 28 of file caif_shmcore.c.
| #define CAIF_MAX_MTU 4096 |
Definition at line 56 of file caif_shmcore.c.
| #define CAIF_NEEDED_HEADROOM 32 |
Definition at line 26 of file caif_shmcore.c.
| #define HIGH_WATERMARK 4 |
Definition at line 32 of file caif_shmcore.c.
| #define LOW_WATERMARK 3 |
Definition at line 31 of file caif_shmcore.c.
| #define NR_RX_BUF 6 |
Definition at line 22 of file caif_shmcore.c.
| #define NR_TX_BUF 6 |
Definition at line 21 of file caif_shmcore.c.
Definition at line 9 of file caif_shmcore.c.
| #define RX_BUF_SZ 0x2000 |
Definition at line 24 of file caif_shmcore.c.
| #define SHM_CAIF_DESC_SIZE |
Definition at line 41 of file caif_shmcore.c.
| #define SHM_CAIF_FRM_OFS (SHM_CAIF_DESC_SIZE + (SHM_CAIF_DESC_SIZE % 32)) |
Definition at line 48 of file caif_shmcore.c.
| #define SHM_EMPTY_MASK (0x0F << 4) |
Definition at line 65 of file caif_shmcore.c.
| #define SHM_FRM_PAD_LEN 4 |
Definition at line 54 of file caif_shmcore.c.
| #define SHM_FULL_MASK (0x0F << 0) |
Definition at line 64 of file caif_shmcore.c.
Definition at line 62 of file caif_shmcore.c.
Definition at line 59 of file caif_shmcore.c.
| #define SHM_HDR_LEN 1 |
Definition at line 51 of file caif_shmcore.c.
| #define SHM_MAX_FRMS_PER_BUF 10 |
Definition at line 35 of file caif_shmcore.c.
Definition at line 61 of file caif_shmcore.c.
Definition at line 58 of file caif_shmcore.c.
| #define TX_BUF_SZ 0x2000 |
Definition at line 23 of file caif_shmcore.c.
| int caif_shmcore_probe | ( | struct shmdev_layer * | pshm_dev | ) |
Definition at line 562 of file caif_shmcore.c.
| void caif_shmcore_remove | ( | struct net_device * | pshm_netdev | ) |
Definition at line 692 of file caif_shmcore.c.
Definition at line 130 of file caif_shmcore.c.
1.8.2