WIP FPC-III support
[linux/fpc-iii.git] / include / acpi / pcc.h
blob4dec4ed138cd7fdc8a7f5fb74a55b6c708e29528
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * PCC (Platform Communications Channel) methods
4 */
6 #ifndef _PCC_H
7 #define _PCC_H
9 #include <linux/mailbox_controller.h>
10 #include <linux/mailbox_client.h>
12 #define MAX_PCC_SUBSPACES 256
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)
21 return ERR_PTR(-ENODEV);
23 static inline void pcc_mbox_free_channel(struct mbox_chan *chan) { }
24 #endif
26 #endif /* _PCC_H */