2019-10-26 18:45:42 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-2018 Laurent Vivier <laurent@vivier.eu>
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
|
|
* See the COPYING file in the top-level directory.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2022-05-06 15:49:08 +02:00
|
|
|
#ifndef HW_NUBUS_MAC_NUBUS_BRIDGE_H
|
|
|
|
#define HW_NUBUS_MAC_NUBUS_BRIDGE_H
|
2019-10-26 18:45:42 +02:00
|
|
|
|
|
|
|
#include "hw/nubus/nubus.h"
|
2020-09-03 22:43:22 +02:00
|
|
|
#include "qom/object.h"
|
2019-10-26 18:45:42 +02:00
|
|
|
|
2021-09-24 09:37:52 +02:00
|
|
|
#define MAC_NUBUS_FIRST_SLOT 0x9
|
|
|
|
#define MAC_NUBUS_LAST_SLOT 0xe
|
|
|
|
#define MAC_NUBUS_SLOT_NB (MAC_NUBUS_LAST_SLOT - MAC_NUBUS_FIRST_SLOT + 1)
|
|
|
|
|
2019-10-26 18:45:42 +02:00
|
|
|
#define TYPE_MAC_NUBUS_BRIDGE "mac-nubus-bridge"
|
2021-09-24 09:38:02 +02:00
|
|
|
OBJECT_DECLARE_SIMPLE_TYPE(MacNubusBridge, MAC_NUBUS_BRIDGE)
|
2019-10-26 18:45:42 +02:00
|
|
|
|
2021-09-24 09:38:02 +02:00
|
|
|
struct MacNubusBridge {
|
2021-09-24 09:38:01 +02:00
|
|
|
NubusBridge parent_obj;
|
2019-10-26 18:45:42 +02:00
|
|
|
|
2021-09-24 09:38:00 +02:00
|
|
|
MemoryRegion super_slot_alias;
|
|
|
|
MemoryRegion slot_alias;
|
2020-09-03 22:43:22 +02:00
|
|
|
};
|
2019-10-26 18:45:42 +02:00
|
|
|
|
|
|
|
#endif
|