Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/jedec_dimm/jedec_dimm.h
/*- | /*- | ||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD | * SPDX-License-Identifier: BSD-2-Clause-FreeBSD | ||||
* | * | ||||
* Authors: Ravi Pokala (rpokala@freebsd.org) | * Authors: Ravi Pokala (rpokala@freebsd.org) | ||||
* | * | ||||
* Copyright (c) 2018 Panasas | * Copyright (c) 2018,2023 Panasas | ||||
imp: typically we'd use a '-' here rather than a ',' since ranges of copyright years are all that… | |||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions | * modification, are permitted provided that the following conditions | ||||
* are met: | * are met: | ||||
* 1. Redistributions of source code must retain the above copyright | * 1. Redistributions of source code must retain the above copyright | ||||
* notice, this list of conditions and the following disclaimer. | * notice, this list of conditions and the following disclaimer. | ||||
* 2. Redistributions in binary form must reproduce the above copyright | * 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | * notice, this list of conditions and the following disclaimer in the | ||||
▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
* calculate the DIMM capacity. | * calculate the DIMM capacity. | ||||
*/ | */ | ||||
#define SPD_OFFSET_DRAM_TYPE 2 | #define SPD_OFFSET_DRAM_TYPE 2 | ||||
#define SPD_OFFSET_DDR3_SDRAM_CAPACITY 4 | #define SPD_OFFSET_DDR3_SDRAM_CAPACITY 4 | ||||
#define SPD_OFFSET_DDR3_DIMM_RANKS 7 | #define SPD_OFFSET_DDR3_DIMM_RANKS 7 | ||||
#define SPD_OFFSET_DDR3_SDRAM_WIDTH 7 | #define SPD_OFFSET_DDR3_SDRAM_WIDTH 7 | ||||
#define SPD_OFFSET_DDR3_BUS_WIDTH 8 | #define SPD_OFFSET_DDR3_BUS_WIDTH 8 | ||||
#define SPD_OFFSET_DDR3_TSOD_PRESENT 32 | #define SPD_OFFSET_DDR3_TSOD_PRESENT 32 | ||||
#define SPD_OFFSET_DDR3_MOD_MFG_YEAR 120 | |||||
#define SPD_OFFSET_DDR3_MOD_MFG_WEEK 121 | |||||
#define SPD_OFFSET_DDR3_SERIAL 122 | #define SPD_OFFSET_DDR3_SERIAL 122 | ||||
#define SPD_LEN_DDR3_SERIAL 4 | #define SPD_LEN_DDR3_SERIAL 4 | ||||
#define SPD_OFFSET_DDR3_PARTNUM 128 | #define SPD_OFFSET_DDR3_PARTNUM 128 | ||||
#define SPD_LEN_DDR3_PARTNUM 18 | #define SPD_LEN_DDR3_PARTNUM 18 | ||||
#define SPD_OFFSET_DDR4_SDRAM_CAPACITY 4 | #define SPD_OFFSET_DDR4_SDRAM_CAPACITY 4 | ||||
#define SPD_OFFSET_DDR4_SDRAM_PKG_TYPE 6 | #define SPD_OFFSET_DDR4_SDRAM_PKG_TYPE 6 | ||||
#define SPD_OFFSET_DDR4_DIMM_RANKS 12 | #define SPD_OFFSET_DDR4_DIMM_RANKS 12 | ||||
#define SPD_OFFSET_DDR4_SDRAM_WIDTH 12 | #define SPD_OFFSET_DDR4_SDRAM_WIDTH 12 | ||||
#define SPD_OFFSET_DDR4_BUS_WIDTH 13 | #define SPD_OFFSET_DDR4_BUS_WIDTH 13 | ||||
#define SPD_OFFSET_DDR4_TSOD_PRESENT 14 | #define SPD_OFFSET_DDR4_TSOD_PRESENT 14 | ||||
#define SPD_OFFSET_DDR4_MOD_MFG_YEAR 323 | |||||
#define SPD_OFFSET_DDR4_MOD_MFG_WEEK 324 | |||||
#define SPD_OFFSET_DDR4_SERIAL 325 | #define SPD_OFFSET_DDR4_SERIAL 325 | ||||
#define SPD_LEN_DDR4_SERIAL 4 | #define SPD_LEN_DDR4_SERIAL 4 | ||||
#define SPD_OFFSET_DDR4_PARTNUM 329 | #define SPD_OFFSET_DDR4_PARTNUM 329 | ||||
#define SPD_LEN_DDR4_PARTNUM 20 | #define SPD_LEN_DDR4_PARTNUM 20 | ||||
/* The "DRAM Type" field of the SPD enumerates various memory technologies which | /* The "DRAM Type" field of the SPD enumerates various memory technologies which | ||||
* have been used over the years. The list is append-only, so we need only refer | * have been used over the years. The list is append-only, so we need only refer | ||||
* to the latest SPD specification. In this case, Annex L for DDR4. | * to the latest SPD specification. In this case, Annex L for DDR4. | ||||
Show All 36 Lines |
typically we'd use a '-' here rather than a ',' since ranges of copyright years are all that are really needed.... Unless your IP department insists on the comma, please consider changing.