qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [Qemu-devel] [PATCH v2] hw/char: remove legacy interface


From: Mark Cave-Ayland
Subject: Re: [Qemu-ppc] [Qemu-devel] [PATCH v2] hw/char: remove legacy interface escc_init()
Date: Fri, 19 Jan 2018 17:28:47 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

On 19/01/18 13:28, Laurent Vivier wrote:

Move necessary stuff in escc.h and update type names.
Remove slavio_serial_ms_kbd_init().
Fix code style problems reported by checkpatch.pl
Update mac_newworld, mac_oldworld and sun4m to use directly the
QDEV interface.

Signed-off-by: Laurent Vivier <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
---
v2: in sun4m, move comments about Slavio TTY close to
     their qdev_prop_set_chr()

Ah okay perhaps I didn't express myself particularly well: what I was suggesting was moving the comment above both qdev_create()s rather than in the middle e.g.

  /* Slavio TTYA (base+4, Linux ttyS0) is the first QEMU serial device
     Slavio TTYB (base+0, Linux ttyS1) is the second QEMU serial device
   */
   dev = qdev_create(NULL, TYPE_ESCC);
   qdev_prop_set_uint32(dev, "disabled", !machine->enable_graphics);
   ...
   ...
   sysbus_mmio_map(s, 0, hwdef->ms_kb_base);

   dev = qdev_create(NULL, TYPE_ESCC);
   qdev_prop_set_uint32(dev, "disabled", 0);
   ...
   ...
   sysbus_mmio_map(s, 0, hwdef->serial_base);


instead of v1 which does:


   dev = qdev_create(NULL, TYPE_ESCC);
   qdev_prop_set_uint32(dev, "disabled", !machine->enable_graphics);
   ...
   ...
   sysbus_mmio_map(s, 0, hwdef->ms_kb_base);

  /* Slavio TTYA (base+4, Linux ttyS0) is the first QEMU serial device
     Slavio TTYB (base+0, Linux ttyS1) is the second QEMU serial device
   */
   dev = qdev_create(NULL, TYPE_ESCC);
   qdev_prop_set_uint32(dev, "disabled", 0);
   ...   ...
   sysbus_mmio_map(s, 0, hwdef->serial_base);



ATB,

Mark.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]