Re: [PATCH 11/17] hw/misc/max111x: Create header file for documentation, TYPE_ macros

2020-06-29 Thread Philippe Mathieu-Daudé
On 6/29/20 2:07 PM, Peter Maydell wrote: > On Mon, 29 Jun 2020 at 09:29, Philippe Mathieu-Daudé wrote: >> >> On 6/28/20 4:24 PM, Peter Maydell wrote: >>> Create a header file for the hw/misc/max111x device, in the >>> usual modern style for QOM devices: >>> * definition of the TYPE_ constants

Re: [PATCH 11/17] hw/misc/max111x: Create header file for documentation, TYPE_ macros

2020-06-29 Thread Peter Maydell
On Mon, 29 Jun 2020 at 09:29, Philippe Mathieu-Daudé wrote: > > On 6/28/20 4:24 PM, Peter Maydell wrote: > > Create a header file for the hw/misc/max111x device, in the > > usual modern style for QOM devices: > > * definition of the TYPE_ constants and macros > > * definition of the device's

Re: [PATCH 11/17] hw/misc/max111x: Create header file for documentation, TYPE_ macros

2020-06-29 Thread Philippe Mathieu-Daudé
On 6/28/20 4:24 PM, Peter Maydell wrote: > Create a header file for the hw/misc/max111x device, in the > usual modern style for QOM devices: > * definition of the TYPE_ constants and macros > * definition of the device's state struct so that it can >be embedded in other structs if desired >

[PATCH 11/17] hw/misc/max111x: Create header file for documentation, TYPE_ macros

2020-06-28 Thread Peter Maydell
Create a header file for the hw/misc/max111x device, in the usual modern style for QOM devices: * definition of the TYPE_ constants and macros * definition of the device's state struct so that it can be embedded in other structs if desired * documentation of the interface This allows us to