aboutsummaryrefslogtreecommitdiff
path: root/include/phys-map.h
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2017-06-15 16:00:22 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-16 14:38:46 +1000
commit92d7ccf00bdd6c994341feb013390c28993652bf (patch)
treef376330cdff46aca799a7b50c4747634623cf474 /include/phys-map.h
parentd939c1bbd13cb1f922be80769578eae99a30cad6 (diff)
downloadskiboot-92d7ccf00bdd6c994341feb013390c28993652bf.zip
skiboot-92d7ccf00bdd6c994341feb013390c28993652bf.tar.gz
skiboot-92d7ccf00bdd6c994341feb013390c28993652bf.tar.bz2
hw/phys_map: Use GCIDs as a chip index
Currently we pass in a proc_chip structure to phys_map_get(). All we we really need from this structure is the Global Chip ID (GCID). This patch reworks the function so that we only need to pass the GCID which allows us to use it before the proc_chip structures have been initialised (i.e in the HDAT parser). Cc: Michael Neuling <mikey@neuling.org> Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Acked-By: Michael Neuling <mikey@neuling.org> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/phys-map.h')
-rw-r--r--include/phys-map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/phys-map.h b/include/phys-map.h
index 50ff0c4..434b159 100644
--- a/include/phys-map.h
+++ b/include/phys-map.h
@@ -54,7 +54,7 @@ enum phys_map_type {
RESV
};
-extern void phys_map_get(struct proc_chip *chip, enum phys_map_type type,
+extern void phys_map_get(uint64_t gcid, enum phys_map_type type,
int index, uint64_t *addr, uint64_t *size);
extern void phys_map_init(void);