Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / sh4 / sh.h
blobc82feef8d0ab16b2a30dba30828a2011492c57b0
1 /*
2 * Definitions for SH board emulation
4 * Copyright (c) 2005 Samuel Tardieu
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice (including the next
14 * paragraph) shall be included in all copies or substantial portions of the
15 * Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 * THE SOFTWARE.
25 * SPDX-License-Identifier: MIT
27 #ifndef QEMU_HW_SH_H
28 #define QEMU_HW_SH_H
30 #include "hw/sh4/sh_intc.h"
31 #include "target/sh4/cpu-qom.h"
33 #define A7ADDR(x) ((x) & 0x1fffffff)
34 #define P4ADDR(x) ((x) | 0xe0000000)
36 /* sh7750.c */
37 struct SH7750State;
39 struct SH7750State *sh7750_init(SuperHCPU *cpu, MemoryRegion *sysmem);
41 #define TYPE_SH_SERIAL "sh-serial"
42 #define SH_SERIAL_FEAT_SCIF (1 << 0)
44 /* sh7750.c */
45 qemu_irq sh7750_irl(struct SH7750State *s);
47 #endif