2019-10-26 19:45:42 +03: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 16:49:08 +03:00
|
|
|
#ifndef HW_NUBUS_MAC_NUBUS_BRIDGE_H
|
|
|
|
#define HW_NUBUS_MAC_NUBUS_BRIDGE_H
|
2019-10-26 19:45:42 +03:00
|
|
|
|
|
|
|
#include "hw/nubus/nubus.h"
|
2020-09-03 23:43:22 +03:00
|
|
|
#include "qom/object.h"
|
2019-10-26 19:45:42 +03:00
|
|
|
|
2021-09-24 10:37:52 +03: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 19:45:42 +03:00
|
|
|
#define TYPE_MAC_NUBUS_BRIDGE "mac-nubus-bridge"
|
2021-09-24 10:38:02 +03:00
|
|
|
OBJECT_DECLARE_SIMPLE_TYPE(MacNubusBridge, MAC_NUBUS_BRIDGE)
|
2019-10-26 19:45:42 +03:00
|
|
|
|
2021-09-24 10:38:02 +03:00
|
|
|
struct MacNubusBridge {
|
2021-09-24 10:38:01 +03:00
|
|
|
NubusBridge parent_obj;
|
2019-10-26 19:45:42 +03:00
|
|
|
|
2021-09-24 10:38:00 +03:00
|
|
|
MemoryRegion super_slot_alias;
|
|
|
|
MemoryRegion slot_alias;
|
2020-09-03 23:43:22 +03:00
|
|
|
};
|
2019-10-26 19:45:42 +03:00
|
|
|
|
|
|
|
#endif
|