mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
mos6522: Rename QOM macros
Rename the MOS6522_DEVICE_CLASS and MOS6522_DEVICE_GET_CLASS macros to be consistent with the TYPE_MOS6522 and MOS6522 macros. This will make future conversion to OBJECT_DECLARE* easier. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20200825192110.3528606-46-ehabkost@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
fed163c987
commit
9db70dac85
5 changed files with 19 additions and 19 deletions
|
@ -96,7 +96,7 @@ static void cuda_set_sr_int(void *opaque)
|
|||
CUDAState *s = opaque;
|
||||
MOS6522CUDAState *mcs = &s->mos6522_cuda;
|
||||
MOS6522State *ms = MOS6522(mcs);
|
||||
MOS6522DeviceClass *mdc = MOS6522_DEVICE_GET_CLASS(ms);
|
||||
MOS6522DeviceClass *mdc = MOS6522_GET_CLASS(ms);
|
||||
|
||||
mdc->set_sr_int(ms);
|
||||
}
|
||||
|
@ -592,7 +592,7 @@ static void mos6522_cuda_portB_write(MOS6522State *s)
|
|||
static void mos6522_cuda_reset(DeviceState *dev)
|
||||
{
|
||||
MOS6522State *ms = MOS6522(dev);
|
||||
MOS6522DeviceClass *mdc = MOS6522_DEVICE_GET_CLASS(ms);
|
||||
MOS6522DeviceClass *mdc = MOS6522_GET_CLASS(ms);
|
||||
|
||||
mdc->parent_reset(dev);
|
||||
|
||||
|
@ -603,7 +603,7 @@ static void mos6522_cuda_reset(DeviceState *dev)
|
|||
static void mos6522_cuda_class_init(ObjectClass *oc, void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(oc);
|
||||
MOS6522DeviceClass *mdc = MOS6522_DEVICE_CLASS(oc);
|
||||
MOS6522DeviceClass *mdc = MOS6522_CLASS(oc);
|
||||
|
||||
dc->reset = mos6522_cuda_reset;
|
||||
mdc->portB_write = mos6522_cuda_portB_write;
|
||||
|
|
|
@ -75,7 +75,7 @@ static void via_set_sr_int(void *opaque)
|
|||
PMUState *s = opaque;
|
||||
MOS6522PMUState *mps = MOS6522_PMU(&s->mos6522_pmu);
|
||||
MOS6522State *ms = MOS6522(mps);
|
||||
MOS6522DeviceClass *mdc = MOS6522_DEVICE_GET_CLASS(ms);
|
||||
MOS6522DeviceClass *mdc = MOS6522_GET_CLASS(ms);
|
||||
|
||||
mdc->set_sr_int(ms);
|
||||
}
|
||||
|
@ -834,7 +834,7 @@ static void mos6522_pmu_reset(DeviceState *dev)
|
|||
MOS6522State *ms = MOS6522(dev);
|
||||
MOS6522PMUState *mps = container_of(ms, MOS6522PMUState, parent_obj);
|
||||
PMUState *s = container_of(mps, PMUState, mos6522_pmu);
|
||||
MOS6522DeviceClass *mdc = MOS6522_DEVICE_GET_CLASS(ms);
|
||||
MOS6522DeviceClass *mdc = MOS6522_GET_CLASS(ms);
|
||||
|
||||
mdc->parent_reset(dev);
|
||||
|
||||
|
@ -847,7 +847,7 @@ static void mos6522_pmu_reset(DeviceState *dev)
|
|||
static void mos6522_pmu_class_init(ObjectClass *oc, void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(oc);
|
||||
MOS6522DeviceClass *mdc = MOS6522_DEVICE_CLASS(oc);
|
||||
MOS6522DeviceClass *mdc = MOS6522_CLASS(oc);
|
||||
|
||||
dc->reset = mos6522_pmu_reset;
|
||||
mdc->portB_write = mos6522_pmu_portB_write;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue