pcc.h 786 B

123456789101112131415161718192021222324252627282930
  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. #ifdef CONFIG_PCC
  14. extern struct mbox_chan *pcc_mbox_request_channel(struct mbox_client *cl,
  15. int subspace_id);
  16. extern void pcc_mbox_free_channel(struct mbox_chan *chan);
  17. #else
  18. static inline struct mbox_chan *pcc_mbox_request_channel(struct mbox_client *cl,
  19. int subspace_id)
  20. {
  21. return ERR_PTR(-ENODEV);
  22. }
  23. static inline void pcc_mbox_free_channel(struct mbox_chan *chan) { }
  24. #endif
  25. #endif /* _PCC_H */