diff options
author | Eran Mitrani <mitrani@google.com> | 2022-07-01 14:41:49 -0700 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-07-07 18:00:38 +0000 |
commit | ab5cf130792eb1d10666b6e9d1660690fa20c1f9 (patch) | |
tree | 3e62ff27648caee57f7bd9a88bf8c0d6dcaa6b3b /src/soc | |
parent | ecda77531d29d64785acbbbe83c176211ffe7128 (diff) |
soc/intel/alderlake: change functions arguments to const
Change-Id: Ib8d9a9e94d16ad291d9cc8576db845a634ae026e
Signed-off-by: Eran Mitrani <mitrani@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65614
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/intel/alderlake/include/soc/systemagent.h | 8 | ||||
-rw-r--r-- | src/soc/intel/alderlake/systemagent.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/soc/intel/alderlake/include/soc/systemagent.h b/src/soc/intel/alderlake/include/soc/systemagent.h index f121b447a7..36d339884b 100644 --- a/src/soc/intel/alderlake/include/soc/systemagent.h +++ b/src/soc/intel/alderlake/include/soc/systemagent.h @@ -76,9 +76,9 @@ static const struct sa_mmio_descriptor soc_vtd_resources[] = { #define MASK_DPR_LENGTH 0xFF0 // [11:4] #define MASK_DPR_LENGTH_LSB 4 // used to shift right -uint64_t get_mmcfg_size(struct device *dev); -uint64_t get_dsm_size(struct device *dev); -uint64_t get_gsm_size(struct device *dev); -uint64_t get_dpr_size(struct device *dev); +uint64_t get_mmcfg_size(const struct device *dev); +uint64_t get_dsm_size(const struct device *dev); +uint64_t get_gsm_size(const struct device *dev); +uint64_t get_dpr_size(const struct device *dev); #endif diff --git a/src/soc/intel/alderlake/systemagent.c b/src/soc/intel/alderlake/systemagent.c index 263c5f50ca..9a8532d6b3 100644 --- a/src/soc/intel/alderlake/systemagent.c +++ b/src/soc/intel/alderlake/systemagent.c @@ -209,7 +209,7 @@ uint32_t soc_systemagent_max_chan_capacity_mib(u8 capid0_a_ddrsz) } } -uint64_t get_mmcfg_size(struct device *dev) +uint64_t get_mmcfg_size(const struct device *dev) { uint32_t pciexbar_reg; uint64_t mmcfg_length; @@ -258,7 +258,7 @@ uint64_t get_mmcfg_size(struct device *dev) return mmcfg_length; } -uint64_t get_dsm_size(struct device *dev) +uint64_t get_dsm_size(const struct device *dev) { // - size : B0/D0/F0:R 50h [15:8] uint32_t reg32 = pci_read_config32(dev, GGC); @@ -289,7 +289,7 @@ uint64_t get_dsm_size(struct device *dev) return size; } -uint64_t get_gsm_size(struct device *dev) +uint64_t get_gsm_size(const struct device *dev) { const u32 gsm_size = pci_read_config32(dev, GGC); uint64_t size; @@ -313,7 +313,7 @@ uint64_t get_gsm_size(struct device *dev) } return size; } -uint64_t get_dpr_size(struct device *dev) +uint64_t get_dpr_size(const struct device *dev) { uint64_t size; uint32_t dpr_reg = pci_read_config32(dev, DPR_REG); |