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 "qemu/osdep.h"
15 #include "hw/sysbus.h"
16 #include "qom/object.h"
20 typedef struct SWIMDrive SWIMDrive
;
21 typedef struct SWIMBus SWIMBus
;
22 typedef struct SWIMCtrl SWIMCtrl
;
24 #define TYPE_SWIM_DRIVE "swim-drive"
25 DECLARE_INSTANCE_CHECKER(SWIMDrive
, SWIM_DRIVE
,
34 #define TYPE_SWIM_BUS "swim-bus"
35 DECLARE_INSTANCE_CHECKER(SWIMBus
, SWIM_BUS
,
40 struct SWIMCtrl
*ctrl
;
43 typedef struct FDrive
{
51 FDrive drives
[SWIM_MAX_FD
];
72 #define TYPE_SWIM "swim"
73 typedef struct Swim Swim
;
74 DECLARE_INSTANCE_CHECKER(Swim
, SWIM
,
78 SysBusDevice parent_obj
;