openpic: unify memory api subregions
The only difference between the "openpic" and "mpic" memory api subregiondescriptors is the endianness. Unify them as openpic accessors with explicitendianness markers in their names.
Signed-off-by: Alexander Graf <agraf@suse.de>
openpic: remove unused type variable
The openpic source irqs are carrying around a type indicator thatis never accessed by anything. Remove it.
openpic: convert simple reg operations to builtin bitops
The openpic code has its own bitmap code to access bits inside of abitmap. However, that is overkill when we simply want to check for abit inside of a uint32_t.
So instead, let's use normal bit masks and C builtin shifts and ands....
openpic: rename openpic_t to OpenPICState
Rename the openpic_t struct to OpenPICState, so it adheres better tothe current coding style rules.
openpic: remove irq_out
The current openpic emulation contains half-ready code for bypass mode.Remove it, so that when someone wants to finish it they can start from aclean state.
openpic: convert to qdev
This patch converts the OpenPIC device to qdev. Along the way itrenames the "openpic" target to "raven" and the "mpic" target to"fsl_mpic_20", to better reflect the actual models they implement.
This way we have a generic OpenPIC device now that can handle...
openpic: make brr1 model specific
Now that we can properly distinguish between openpic model differences,let's move brr1 out of the raven code path.
openpic: add Shared MSI support
The OpenPIC allows MSI access through shared MSI registers. Implementthem for the MPC8544 MPIC, so we can support MSIs.
openpic: merge mpic and openpic timer handling
The openpic and mpic timer handling code is basically the same.Merge them.
openpic: combine openpic and mpic reset functions
The openpic and mpic reset handlers are almost identical. Combinethem and extract the differences into state variables.
View revisions
Also available in: Atom