[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/3] qdev-ify isa pic
From: |
Filip Navara |
Subject: |
Re: [Qemu-devel] [PATCH 1/3] qdev-ify isa pic |
Date: |
Wed, 10 Jun 2009 11:43:38 +0200 |
On Wed, Jun 10, 2009 at 9:32 AM, Gerd Hoffmann<address@hidden> wrote:
[snip]>
> In general I think we should handle as much as possible at DeviceState /
> DeviceInfo level. Stuff which devices commonly have should live there:
> IRQs, mmio, ioports, ... in DeviceState. name, init and other generic
> callbacks, ... in DeviceInfo.
>
> The bus structs should only hold stuff which is actually specific to that
> bus. That is probably almost nothing for sysbus. i2c has the xfer
> callbacks in I2CSlaveInfo. Likewise pci can have the config space
> read/write callbacks in PCIDeviceInfo.
This is definitely based on wrong assumptions. I've GPIO devices
modelled on top of qdev and they don't know anything about IRQs, MMIO
or stuff like that. All they know about is that there are few in/out
GPIO pins, which are connected to the GPIO controller in the emulated
microcontroller.
Best regards,
Filip Navara
- [Qemu-devel] [PATCH 1/3] qdev-ify isa pic, Gerd Hoffmann, 2009/06/09
- [Qemu-devel] [PATCH 3/3] qdev: switch isa pic to generic irq allocation., Gerd Hoffmann, 2009/06/09
- [Qemu-devel] [PATCH 2/3] qdev: irq allocation in generic code., Gerd Hoffmann, 2009/06/09
- Re: [Qemu-devel] [PATCH 1/3] qdev-ify isa pic, Paul Brook, 2009/06/09
- Re: [Qemu-devel] [PATCH 1/3] qdev-ify isa pic, Gerd Hoffmann, 2009/06/09
- Re: [Qemu-devel] [PATCH 1/3] qdev-ify isa pic, Paul Brook, 2009/06/09
- Re: [Qemu-devel] [PATCH 1/3] qdev-ify isa pic, Gerd Hoffmann, 2009/06/09
- Re: [Qemu-devel] [PATCH 1/3] qdev-ify isa pic, Paul Brook, 2009/06/09
- Re: [Qemu-devel] [PATCH 1/3] qdev-ify isa pic, Gerd Hoffmann, 2009/06/10
- Re: [Qemu-devel] [PATCH 1/3] qdev-ify isa pic,
Filip Navara <=
- Re: [Qemu-devel] [PATCH 1/3] qdev-ify isa pic, Gerd Hoffmann, 2009/06/10
- Re: [Qemu-devel] [PATCH 1/3] qdev-ify isa pic, Paul Brook, 2009/06/10