-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
caif-u5500: Adding shared memory include
Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Amarnath Revanna
authored and
David S. Miller
committed
Oct 27, 2010
1 parent
4101e97
commit a10c020
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (C) ST-Ericsson AB 2010 | ||
* Contact: Sjur Brendeland / sjur.brandeland@stericsson.com | ||
* Author: Amarnath Revanna / amarnath.bangalore.revanna@stericsson.com | ||
* License terms: GNU General Public License (GPL) version 2 | ||
*/ | ||
|
||
#ifndef CAIF_SHM_H_ | ||
#define CAIF_SHM_H_ | ||
|
||
struct shmdev_layer { | ||
u32 shm_base_addr; | ||
u32 shm_total_sz; | ||
u32 shm_id; | ||
u32 shm_loopback; | ||
void *hmbx; | ||
int (*pshmdev_mbxsend) (u32 shm_id, u32 mbx_msg); | ||
int (*pshmdev_mbxsetup) (void *pshmdrv_cb, | ||
struct shmdev_layer *pshm_dev, void *pshm_drv); | ||
struct net_device *pshm_netdev; | ||
}; | ||
|
||
extern int caif_shmcore_probe(struct shmdev_layer *pshm_dev); | ||
extern void caif_shmcore_remove(struct net_device *pshm_netdev); | ||
|
||
#endif |