Skip to content

Commit 55d235e

Browse files
committed
ACPI: PCC: Add PCC shared memory region command and status bitfields
Define the common macros to use when referring to various bitfields in the PCC generic communications channel command and status fields. Currently different drivers that need to use these bitfields have defined these locally. This common macro is intended to consolidate and replace those. Cc: "Rafael J. Wysocki" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sudeep Holla <[email protected]>
1 parent 3db174e commit 55d235e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

include/acpi/pcc.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,20 @@ struct pcc_mbox_chan {
1818
u16 min_turnaround_time;
1919
};
2020

21+
/* Generic Communications Channel Shared Memory Region */
22+
#define PCC_SIGNATURE 0x50434300
23+
/* Generic Communications Channel Command Field */
24+
#define PCC_CMD_GENERATE_DB_INTR BIT(15)
25+
/* Generic Communications Channel Status Field */
26+
#define PCC_STATUS_CMD_COMPLETE BIT(0)
27+
#define PCC_STATUS_SCI_DOORBELL BIT(1)
28+
#define PCC_STATUS_ERROR BIT(2)
29+
#define PCC_STATUS_PLATFORM_NOTIFY BIT(3)
30+
/* Initiator Responder Communications Channel Flags */
31+
#define PCC_CMD_COMPLETION_NOTIFY BIT(0)
32+
2133
#define MAX_PCC_SUBSPACES 256
34+
2235
#ifdef CONFIG_PCC
2336
extern struct pcc_mbox_chan *
2437
pcc_mbox_request_channel(struct mbox_client *cl, int subspace_id);

0 commit comments

Comments
 (0)