8 #define pr_fmt(fmt) KBUILD_MODNAME ":" fmt
11 #include <linux/module.h>
12 #include <linux/netdevice.h>
13 #include <mach/mbox-db5500.h>
19 #define MAX_SHM_INSTANCES 1
29 static unsigned int shm_start;
30 static unsigned int shm_size;
41 mbox_send(shmdev_lyr[dev_id].
hmbx, mbx_msg,
true);
45 static int shmdev_mbx_setup(
void *pshmdrv_cb,
struct shmdev_layer *pshm_dev,
52 pshm_dev->
hmbx = mbox_setup(
MBX_ACC0, pshmdrv_cb, pshm_drv);
60 static int __init caif_shmdev_init(
void)
67 shmdev_lyr[
i].shm_base_addr = shm_start;
68 shmdev_lyr[
i].shm_total_sz = shm_size;
73 "Shared memory Address and/or Size incorrect"
74 ", Bailing out ...\n");
79 pr_info(
"SHM AREA (instance %d) STARTS"
82 shmdev_lyr[
i].shm_id =
i;
83 shmdev_lyr[
i].pshmdev_mbxsend = shmdev_send_msg;
84 shmdev_lyr[
i].pshmdev_mbxsetup = shmdev_mbx_setup;
95 "Could not probe SHM core (instance %d)"
96 " Bailing out ...\n", result, i);
116 static void __exit caif_shmdev_exit(
void)