ppc/pnv: add a helper to calculate MMIO addresses registers
commit5509db4aec13217022d41b131c8216040fb723f1
authorCédric Le Goater <clg@kaod.org>
Mon, 3 Apr 2017 07:46:04 +0000 (3 09:46 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 26 Apr 2017 02:00:42 +0000 (26 12:00 +1000)
tree1598354b8bacb5cef523653764d5d4907c666207
parent960fbd29e56866ff7b1f2c6a24082774fd254bda
ppc/pnv: add a helper to calculate MMIO addresses registers

Some controllers (ICP, PSI) have a base register address which is
calculated using the chip id.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
include/hw/ppc/pnv.h