1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * UEFI Common Platform Error Record (CPER) support for CXL Section.
5 * Copyright (C) 2022 Advanced Micro Devices, Inc.
7 * Author: Smita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>
10 #ifndef LINUX_CPER_CXL_H
11 #define LINUX_CPER_CXL_H
13 /* CXL Protocol Error Section */
14 #define CPER_SEC_CXL_PROT_ERR \
15 GUID_INIT(0x80B9EFB4, 0x52B5, 0x4DE3, 0xA7, 0x77, 0x68, 0x78, \
16 0x4B, 0x77, 0x10, 0x48)
20 /* Compute Express Link Protocol Error Section, UEFI v2.10 sec N.2.13 */
21 struct cper_sec_prot_err {
27 * Except for RCH Downstream Port, all the remaining CXL Agent
28 * types are uniquely identified by the PCIe compatible SBDF number.
44 u16 subsystem_vendor_id;
64 void cper_print_prot_err(const char *pfx, const struct cper_sec_prot_err *prot_err);