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/sysbus.h"
15 #include "qom/object.h"
19 typedef struct SWIMCtrl SWIMCtrl
;
21 #define TYPE_SWIM_DRIVE "swim-drive"
22 OBJECT_DECLARE_SIMPLE_TYPE(SWIMDrive
, SWIM_DRIVE
)
30 #define TYPE_SWIM_BUS "swim-bus"
31 OBJECT_DECLARE_SIMPLE_TYPE(SWIMBus
, SWIM_BUS
)
35 struct SWIMCtrl
*ctrl
;
38 typedef struct FDrive
{
46 FDrive drives
[SWIM_MAX_FD
];
67 #define TYPE_SWIM "swim"
68 OBJECT_DECLARE_SIMPLE_TYPE(Swim
, SWIM
)
71 SysBusDevice parent_obj
;