q800.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * QEMU Motorla 680x0 Macintosh hardware System Emulator
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a copy
  5. * of this software and associated documentation files (the "Software"), to deal
  6. * in the Software without restriction, including without limitation the rights
  7. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. * copies of the Software, and to permit persons to whom the Software is
  9. * furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  20. * THE SOFTWARE.
  21. */
  22. #ifndef HW_Q800_H
  23. #define HW_Q800_H
  24. #include "hw/boards.h"
  25. #include "qom/object.h"
  26. #include "target/m68k/cpu-qom.h"
  27. #include "exec/memory.h"
  28. #include "hw/m68k/q800-glue.h"
  29. #include "hw/misc/mac_via.h"
  30. #include "hw/net/dp8393x.h"
  31. #include "hw/char/escc.h"
  32. #include "hw/or-irq.h"
  33. #include "hw/scsi/esp.h"
  34. #include "hw/block/swim.h"
  35. #include "hw/nubus/mac-nubus-bridge.h"
  36. #include "hw/display/macfb.h"
  37. #include "hw/misc/djmemc.h"
  38. #include "hw/misc/iosb.h"
  39. #include "hw/audio/asc.h"
  40. /*
  41. * The main Q800 machine
  42. */
  43. struct Q800MachineState {
  44. MachineState parent_obj;
  45. bool easc;
  46. M68kCPU cpu;
  47. MemoryRegion rom;
  48. MemoryRegion rom_alias;
  49. GLUEState glue;
  50. MOS6522Q800VIA1State via1;
  51. MOS6522Q800VIA2State via2;
  52. dp8393xState dp8393x;
  53. MemoryRegion dp8393x_prom;
  54. ESCCState escc;
  55. OrIRQState escc_orgate;
  56. SysBusESPState esp;
  57. Swim swim;
  58. MacNubusBridge mac_nubus_bridge;
  59. MacfbNubusState macfb;
  60. DJMEMCState djmemc;
  61. IOSBState iosb;
  62. ASCState asc;
  63. MemoryRegion ramio;
  64. MemoryRegion macio;
  65. MemoryRegion macio_alias;
  66. MemoryRegion machine_id;
  67. MemoryRegion escc_alias;
  68. };
  69. #define TYPE_Q800_MACHINE MACHINE_TYPE_NAME("q800")
  70. OBJECT_DECLARE_SIMPLE_TYPE(Q800MachineState, Q800_MACHINE)
  71. #endif