-
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
Jan 9, 2025
1 parent
8593eca
commit ec13f74
Showing
3 changed files
with
147 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,47 @@ | ||
/** @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 | ||
// Compute Express Link Specification Revision 3.1 - Chapter 9.18.1 | ||
// | ||
#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) | ||
// Compute Express Link Specification Revision 3.1 - Chapter 9.18.6 | ||
// | ||
typedef struct { | ||
CEDT_STRUCTURE Header; | ||
UINT16 Capabilities; | ||
UINT16 Reserved; | ||
} CXL_DOWNSTREAM_PORT_ASSOCIATION_STRUCTURE; | ||
|
||
#pragma pack() | ||
|
||
#endif |