diff options
| author | Amarnath Revanna <amarnath.bangalore.revanna@stericsson.com> | 2010-10-27 04:34:39 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-10-27 15:29:51 -0400 |
| commit | a10c02036f82b1fa30d69a62f7c7d9a927e8adbc (patch) | |
| tree | c7435bd8023305fe708a91912aa6d49c68032e90 | |
| parent | 4101e976e0376a1820ae55adf8bca7dda5089a7d (diff) | |
caif-u5500: Adding shared memory include
Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | include/net/caif/caif_shm.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/net/caif/caif_shm.h b/include/net/caif/caif_shm.h new file mode 100644 index 000000000000..5bcce55438cf --- /dev/null +++ b/include/net/caif/caif_shm.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) ST-Ericsson AB 2010 | ||
| 3 | * Contact: Sjur Brendeland / sjur.brandeland@stericsson.com | ||
| 4 | * Author: Amarnath Revanna / amarnath.bangalore.revanna@stericsson.com | ||
| 5 | * License terms: GNU General Public License (GPL) version 2 | ||
| 6 | */ | ||
| 7 | |||
| 8 | #ifndef CAIF_SHM_H_ | ||
| 9 | #define CAIF_SHM_H_ | ||
| 10 | |||
| 11 | struct shmdev_layer { | ||
| 12 | u32 shm_base_addr; | ||
| 13 | u32 shm_total_sz; | ||
| 14 | u32 shm_id; | ||
| 15 | u32 shm_loopback; | ||
| 16 | void *hmbx; | ||
| 17 | int (*pshmdev_mbxsend) (u32 shm_id, u32 mbx_msg); | ||
| 18 | int (*pshmdev_mbxsetup) (void *pshmdrv_cb, | ||
| 19 | struct shmdev_layer *pshm_dev, void *pshm_drv); | ||
| 20 | struct net_device *pshm_netdev; | ||
| 21 | }; | ||
| 22 | |||
| 23 | extern int caif_shmcore_probe(struct shmdev_layer *pshm_dev); | ||
| 24 | extern void caif_shmcore_remove(struct net_device *pshm_netdev); | ||
| 25 | |||
| 26 | #endif | ||
