2 * QEMU Macintosh floppy disk controller emulator (SWIM)
4 * Copyright (c) 2014-2018 Laurent Vivier <laurent@vivier.eu>
6 * This work is licensed under the terms of the GNU GPL, version 2. See
7 * the COPYING file in the top-level directory.
14 #include "hw/block/block.h"
15 #include "hw/sysbus.h"
16 #include "qom/object.h"
20 typedef struct SWIMCtrl SWIMCtrl
;
22 #define TYPE_SWIM_DRIVE "swim-drive"
23 OBJECT_DECLARE_SIMPLE_TYPE(SWIMDrive
, SWIM_DRIVE
)
31 #define TYPE_SWIM_BUS "swim-bus"
32 OBJECT_DECLARE_SIMPLE_TYPE(SWIMBus
, SWIM_BUS
)
36 struct SWIMCtrl
*ctrl
;
39 typedef struct FDrive
{
49 FDrive drives
[SWIM_MAX_FD
];
65 #define TYPE_SWIM "swim"
66 OBJECT_DECLARE_SIMPLE_TYPE(Swim
, SWIM
)
69 SysBusDevice parent_obj
;