pcc.h 816 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * PCC (Platform Communications Channel) methods
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; version 2
  7. * of the License.
  8. */
  9. #ifndef _PCC_H
  10. #define _PCC_H
  11. #include <linux/mailbox_controller.h>
  12. #include <linux/mailbox_client.h>
  13. #define MAX_PCC_SUBSPACES 256
  14. #ifdef CONFIG_PCC
  15. extern struct mbox_chan *pcc_mbox_request_channel(struct mbox_client *cl,
  16. int subspace_id);
  17. extern void pcc_mbox_free_channel(struct mbox_chan *chan);
  18. #else
  19. static inline struct mbox_chan *pcc_mbox_request_channel(struct mbox_client *cl,
  20. int subspace_id)
  21. {
  22. return ERR_PTR(-ENODEV);
  23. }
  24. static inline void pcc_mbox_free_channel(struct mbox_chan *chan) { }
  25. #endif
  26. #endif /* _PCC_H */