-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MdePkg/IndustryStandard: add definitions for CXL CEDT
This adds #defines and struct typedefs for the various structure types in the CXL Early Discovery Table (CEDT). Signed-off-by: Yuquan Wang <[email protected]>
- Loading branch information
Yuquan Wang
committed
Nov 26, 2024
1 parent
7eff71f
commit 782230a
Showing
3 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** @file | ||
CXL 3.1 definitions | ||
This file contains the register definitions and firmware interface based | ||
on the Compute Express Link (CXL) Specification Revision 3.1. | ||
Copyright (c) 2024, Phytium Technology Co Ltd. All rights reserved. | ||
SPDX-License-Identifier: BSD-2-Clause-Patent | ||
@par Reference(s): | ||
- Compute Express Link (CXL) Specification Revision 3.1. | ||
(https://computeexpresslink.org/cxl-specification/) | ||
**/ | ||
|
||
#ifndef CXL31_H_ | ||
#define CXL31_H_ | ||
|
||
#include <IndustryStandard/Cxl30.h> | ||
|
||
/// | ||
/// "CEDT" CXL Early Discovery Table | ||
/// | ||
#define CXL_EARLY_DISCOVERY_TABLE_REVISION_02 0x2 | ||
|
||
#define CEDT_TYPE_CSDS 0x4 | ||
|
||
// | ||
// Ensure proper structure formats | ||
// | ||
#pragma pack(1) | ||
|
||
/// | ||
/// Definition for CXL System Description Structure (CSDS) | ||
/// | ||
typedef struct { | ||
CEDT_STRUCTURE Header; | ||
UINT16 Capabilities; | ||
UINT16 Reserved; | ||
} CXL_DOWNSTREAM_PORT_ASSOCIATION_STRUCTURE; | ||
|
||
#pragma pack() | ||
|
||
#endif |