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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HW_NUBUS_MAC_H
|
|
|
|
#define HW_NUBUS_MAC_H
|
|
|
|
|
|
|
|
#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
|