OSDN Git Service

macio: pass channel into MACIOIDEState via qdev property
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sun, 24 Sep 2017 14:47:43 +0000 (15:47 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 27 Sep 2017 03:05:41 +0000 (13:05 +1000)
commit0fc84331d631ea434fb846f4916f216aeb5b5f91
treee8eac21c01add4e246445f2f4f03b23454b0c71a
parentecba28dbf2f832e82ef016b8e57c9da0a3023bfd
macio: pass channel into MACIOIDEState via qdev property

One of the reasons macio_ide_register_dma() needs to exist is because the
channel id isn't passed into the MACIO_IDE object. Pass in the channel id
using a qdev property to remove this requirement.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ide/macio.c
hw/misc/macio/macio.c
hw/ppc/mac.h