caif_shm.h 705 B

123456789101112131415161718192021222324252627
  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. #ifndef CAIF_SHM_H_
  8. #define CAIF_SHM_H_
  9. struct shmdev_layer {
  10. u32 shm_base_addr;
  11. u32 shm_total_sz;
  12. u32 shm_id;
  13. u32 shm_loopback;
  14. void *hmbx;
  15. int (*pshmdev_mbxsend) (u32 shm_id, u32 mbx_msg);
  16. int (*pshmdev_mbxsetup) (void *pshmdrv_cb,
  17. struct shmdev_layer *pshm_dev, void *pshm_drv);
  18. struct net_device *pshm_netdev;
  19. };
  20. extern int caif_shmcore_probe(struct shmdev_layer *pshm_dev);
  21. extern void caif_shmcore_remove(struct net_device *pshm_netdev);
  22. #endif