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"
19 typedef struct SWIMDrive SWIMDrive
;
20 typedef struct SWIMBus SWIMBus
;
21 typedef struct SWIMCtrl SWIMCtrl
;
23 #define TYPE_SWIM_DRIVE "swim-drive"
24 #define SWIM_DRIVE(obj) OBJECT_CHECK(SWIMDrive, (obj), TYPE_SWIM_DRIVE)
32 #define TYPE_SWIM_BUS "swim-bus"
33 #define SWIM_BUS(obj) OBJECT_CHECK(SWIMBus, (obj), TYPE_SWIM_BUS)
37 struct SWIMCtrl
*ctrl
;
40 typedef struct FDrive
{
48 FDrive drives
[SWIM_MAX_FD
];
69 #define TYPE_SWIM "swim"
70 #define SWIM(obj) OBJECT_CHECK(SWIM, (obj), TYPE_SWIM)
73 SysBusDevice parent_obj
;