]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - include/acpi/pcc.h
block: add an explicit ->disk backpointer to the request_queue
[mirror_ubuntu-jammy-kernel.git] / include / acpi / pcc.h
CommitLineData
b886d83c 1/* SPDX-License-Identifier: GPL-2.0-only */
866ae696
HT
2/*
3 * PCC (Platform Communications Channel) methods
866ae696
HT
4 */
5
6#ifndef _PCC_H
7#define _PCC_H
8
9#include <linux/mailbox_controller.h>
10#include <linux/mailbox_client.h>
11
c4b766c2 12#define MAX_PCC_SUBSPACES 256
866ae696
HT
13#ifdef CONFIG_PCC
14extern struct mbox_chan *pcc_mbox_request_channel(struct mbox_client *cl,
15 int subspace_id);
16extern void pcc_mbox_free_channel(struct mbox_chan *chan);
17#else
18static inline struct mbox_chan *pcc_mbox_request_channel(struct mbox_client *cl,
19 int subspace_id)
20{
d0679cfa 21 return ERR_PTR(-ENODEV);
866ae696
HT
22}
23static inline void pcc_mbox_free_channel(struct mbox_chan *chan) { }
24#endif
25
26#endif /* _PCC_H */