An AMD IOMMU that implements EFR[PCSup] has banks of 48-bit event
counters in its MMIO space. At attach, read their geometry from the
Counter Configuration register, where NCounter value 1 is reserved,
and publish the unit under its device unit number. amd_pc.h declares
the lookup, the counter register accessors and a check of the bank
lock registers for the amd64 hwpmc(4) class added later.
A published unit is never withdrawn, because detach is not supported;
note that in amdiommu_detach().
Sponsored by: AMD
Signed-off-by: Osvaldo Janeri Filho <ojanerif@amd.com>