OSDN Git Service

ppc/ide/macio: Add missing registers
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 20 Sep 2017 06:20:00 +0000 (07:20 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 27 Sep 2017 03:05:41 +0000 (13:05 +1000)
commit4f7265ff177df2886ccaed0bca318dc81a7f5e75
tree3b2d28b345865b9dae44105f63b7c27901146315
parent77453882495b321404e874aa97bca1214160229d
ppc/ide/macio: Add missing registers

The timing register exists on all variants of MacIO IDE, we just
store and return its value.

The interrupts register only exists on KeyLargo but it doesn't
hurt to have it. The lack of this register causes MacOS X to
hangs under some circumstances.

Both are 32-bit only. The HW might support smaller access sizes
but no known OS uses them.

Because the core IDE subsystem doesn't provide us with a way
to query the main (level) interrupt state, nor do we have a way
to know that DBDMA issued a (edge) interrupt, we reflect both
through a private pair of qirq's in order to maintain the
register state.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ide/macio.c
hw/ppc/mac.h