nb/amd/agesa: define DDR3_SPD_SIZE as a common value
Move a size of DDR3 SPD memory (always 256 bytes) to a common define. Signed-off-by: Mike Banon <mikebdp2@gmail.com> Change-Id: I80c89ff6e44526e1d75b0e933b21801ed17c98c0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/44498 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
committed by
Patrick Georgi
parent
d2a00d7a1c
commit
8b7bda40f1
@ -1158,9 +1158,10 @@ typedef enum {
|
||||
///
|
||||
/// SPD Data for each DIMM.
|
||||
///
|
||||
#define DDR3_SPD_SIZE 256
|
||||
typedef struct _SPD_DEF_STRUCT {
|
||||
IN BOOLEAN DimmPresent; ///< Indicates that the DIMM is present and Data is valid
|
||||
IN UINT8 Data[256]; ///< Buffer for 256 Bytes of SPD data from DIMM
|
||||
IN UINT8 Data[DDR3_SPD_SIZE]; ///< Buffer for 256 Bytes of SPD data from DIMM
|
||||
} SPD_DEF_STRUCT;
|
||||
|
||||
///
|
||||
|
@ -1546,9 +1546,10 @@ typedef enum {
|
||||
///
|
||||
/// SPD Data for each DIMM.
|
||||
///
|
||||
#define DDR3_SPD_SIZE 256
|
||||
typedef struct _SPD_DEF_STRUCT {
|
||||
IN BOOLEAN DimmPresent; ///< Indicates that the DIMM is present and Data is valid
|
||||
IN UINT8 Data[256]; ///< Buffer for 256 Bytes of SPD data from DIMM
|
||||
IN UINT8 Data[DDR3_SPD_SIZE]; ///< Buffer for 256 Bytes of SPD data from DIMM
|
||||
} SPD_DEF_STRUCT;
|
||||
|
||||
///
|
||||
|
@ -1621,9 +1621,10 @@ typedef enum {
|
||||
///
|
||||
/// SPD Data for each DIMM.
|
||||
///
|
||||
#define DDR3_SPD_SIZE 256
|
||||
typedef struct _SPD_DEF_STRUCT {
|
||||
IN BOOLEAN DimmPresent; ///< Indicates that the DIMM is present and Data is valid
|
||||
IN UINT8 Data[256]; ///< Buffer for 256 Bytes of SPD data from DIMM
|
||||
IN UINT8 Data[DDR3_SPD_SIZE]; ///< Buffer for 256 Bytes of SPD data from DIMM
|
||||
} SPD_DEF_STRUCT;
|
||||
|
||||
///
|
||||
|
Reference in New Issue
Block a user