summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/netlogic/xlp-hal
diff options
context:
space:
mode:
authorJayachandran C <jchandra@broadcom.com>2015-01-07 14:28:33 +0300
committerRalf Baechle <ralf@linux-mips.org>2015-04-01 18:21:52 +0300
commitb3b73ae62ca82744c92c1c2d49381add26d0a8bd (patch)
treed0549c052e82468cce62a13899fc69011cebb12e /arch/mips/include/asm/netlogic/xlp-hal
parentddba6833bbc5d0e1ed264ada2c00927c9f7cc11f (diff)
downloadlinux-b3b73ae62ca82744c92c1c2d49381add26d0a8bd.tar.xz
MIPS: Netlogic: Update function to read DRAM BARs
Change name of xlp_get_dram_map to nlm_get_dram_map to be consistent with the rest of the functions in the file. Pass the the size of the array 'dram_map' to the function, and ensure that it does not write past the end of the array. Signed-off-by: Jayachandran C <jchandra@broadcom.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/8892/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/netlogic/xlp-hal')
-rw-r--r--arch/mips/include/asm/netlogic/xlp-hal/xlp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/netlogic/xlp-hal/xlp.h b/arch/mips/include/asm/netlogic/xlp-hal/xlp.h
index a862b93223cc..c0b2a807a791 100644
--- a/arch/mips/include/asm/netlogic/xlp-hal/xlp.h
+++ b/arch/mips/include/asm/netlogic/xlp-hal/xlp.h
@@ -89,7 +89,7 @@ void xlp_wakeup_secondary_cpus(void);
void xlp_mmu_init(void);
void nlm_hal_init(void);
-int xlp_get_dram_map(int n, uint64_t *dram_map);
+int nlm_get_dram_map(int node, uint64_t *dram_map, int nentries);
struct pci_dev;
int xlp_socdev_to_node(const struct pci_dev *dev);