mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
Merge remote-tracking branch 'bonzini/hw-dirs' into staging
* bonzini/hw-dirs: sh: move files referencing CPU to hw/sh4/ ppc: move more files to hw/ppc ppc: move files referencing CPU to hw/ppc/ m68k: move files referencing CPU to hw/m68k/ i386: move files referencing CPU to hw/i386/ arm: move files referencing CPU to hw/arm/ hw: move boards and other isolated files to hw/ARCH ppc: express FDT dependency of pSeries and e500 boards via default-configs/ build: always link device_tree.o into emulators if libfdt available hw: include hw header files with full paths ppc: do not use ../ in include files vt82c686: vt82c686 is not a PCI host bridge virtio-9p: remove PCI dependencies from hw/9pfs/ virtio-9p: use CONFIG_VIRTFS, not CONFIG_LINUX hw: move device-hotplug.o to toplevel, compile it once hw: move qdev-monitor.o to toplevel directory hw: move fifo.[ch] to libqemuutil hw: move char backends to backends/ Conflicts: backends/baum.c backends/msmouse.c hw/a15mpcore.c hw/arm/Makefile.objs hw/arm/pic_cpu.c hw/dataplane/event-poll.c hw/dataplane/virtio-blk.c include/char/baum.h include/char/msmouse.h qemu-char.c vl.c Resolve conflicts caused by header movements. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
commit
6e72a00f90
537 changed files with 1808 additions and 1780 deletions
|
@ -14,9 +14,9 @@
|
|||
#include "hw/virtio.h"
|
||||
#include "hw/pc.h"
|
||||
#include "qemu/sockets.h"
|
||||
#include "hw/virtio-pci.h"
|
||||
#include "virtio-9p.h"
|
||||
#include "fsdev/qemu-fsdev.h"
|
||||
#include "virtio-9p-device.h"
|
||||
#include "virtio-9p-xattr.h"
|
||||
#include "virtio-9p-coth.h"
|
||||
|
||||
|
@ -136,54 +136,3 @@ VirtIODevice *virtio_9p_init(DeviceState *dev, V9fsConf *conf)
|
|||
|
||||
return &s->vdev;
|
||||
}
|
||||
|
||||
static int virtio_9p_init_pci(PCIDevice *pci_dev)
|
||||
{
|
||||
VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev);
|
||||
VirtIODevice *vdev;
|
||||
|
||||
vdev = virtio_9p_init(&pci_dev->qdev, &proxy->fsconf);
|
||||
vdev->nvectors = proxy->nvectors;
|
||||
virtio_init_pci(proxy, vdev);
|
||||
/* make the actual value visible */
|
||||
proxy->nvectors = vdev->nvectors;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static Property virtio_9p_properties[] = {
|
||||
DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true),
|
||||
DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2),
|
||||
DEFINE_VIRTIO_COMMON_FEATURES(VirtIOPCIProxy, host_features),
|
||||
DEFINE_PROP_STRING("mount_tag", VirtIOPCIProxy, fsconf.tag),
|
||||
DEFINE_PROP_STRING("fsdev", VirtIOPCIProxy, fsconf.fsdev_id),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void virtio_9p_class_init(ObjectClass *klass, void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
|
||||
|
||||
k->init = virtio_9p_init_pci;
|
||||
k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET;
|
||||
k->device_id = PCI_DEVICE_ID_VIRTIO_9P;
|
||||
k->revision = VIRTIO_PCI_ABI_VERSION;
|
||||
k->class_id = 0x2;
|
||||
dc->props = virtio_9p_properties;
|
||||
dc->reset = virtio_pci_reset;
|
||||
}
|
||||
|
||||
static const TypeInfo virtio_9p_info = {
|
||||
.name = "virtio-9p-pci",
|
||||
.parent = TYPE_PCI_DEVICE,
|
||||
.instance_size = sizeof(VirtIOPCIProxy),
|
||||
.class_init = virtio_9p_class_init,
|
||||
};
|
||||
|
||||
static void virtio_9p_register_types(void)
|
||||
{
|
||||
type_register_static(&virtio_9p_info);
|
||||
virtio_9p_set_fd_limit();
|
||||
}
|
||||
|
||||
type_init(virtio_9p_register_types)
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef QEMU_9P_H
|
||||
#define QEMU_9P_H
|
||||
#ifndef QEMU_VIRTIO_9P_DEVICE_H
|
||||
#define QEMU_VIRTIO_9P_DEVICE_H
|
||||
|
||||
typedef struct V9fsConf
|
||||
{
|
|
@ -13,6 +13,7 @@
|
|||
#include <sys/un.h>
|
||||
#include "hw/virtio.h"
|
||||
#include "virtio-9p.h"
|
||||
#include "qemu/error-report.h"
|
||||
#include "fsdev/qemu-fsdev.h"
|
||||
#include "virtio-9p-proxy.h"
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include "hw/virtio.h"
|
||||
#include "hw/pc.h"
|
||||
#include "qemu/sockets.h"
|
||||
#include "hw/virtio-pci.h"
|
||||
#include "virtio-9p.h"
|
||||
#include "fsdev/qemu-fsdev.h"
|
||||
#include "virtio-9p-xattr.h"
|
||||
|
@ -3269,7 +3268,7 @@ void handle_9p_output(VirtIODevice *vdev, VirtQueue *vq)
|
|||
free_pdu(s, pdu);
|
||||
}
|
||||
|
||||
void virtio_9p_set_fd_limit(void)
|
||||
static void __attribute__((__constructor__)) virtio_9p_set_fd_limit(void)
|
||||
{
|
||||
struct rlimit rlim;
|
||||
if (getrlimit(RLIMIT_NOFILE, &rlim) < 0) {
|
||||
|
|
|
@ -389,7 +389,6 @@ static inline uint8_t v9fs_request_cancelled(V9fsPDU *pdu)
|
|||
}
|
||||
|
||||
extern void handle_9p_output(VirtIODevice *vdev, VirtQueue *vq);
|
||||
extern void virtio_9p_set_fd_limit(void);
|
||||
extern void v9fs_reclaim_fd(V9fsPDU *pdu);
|
||||
extern void v9fs_path_init(V9fsPath *path);
|
||||
extern void v9fs_path_free(V9fsPath *path);
|
||||
|
|
|
@ -44,7 +44,6 @@ common-obj-$(CONFIG_SMARTCARD_NSS) += ccid-card-emulated.o
|
|||
endif
|
||||
common-obj-$(CONFIG_I8259) += i8259_common.o i8259.o
|
||||
common-obj-$(CONFIG_SDHCI) += sdhci.o
|
||||
common-obj-y += fifo.o
|
||||
common-obj-y += pam.o
|
||||
|
||||
# PPC devices
|
||||
|
@ -190,10 +189,8 @@ common-obj-$(CONFIG_SSI_SD) += ssi-sd.o
|
|||
common-obj-$(CONFIG_SD) += sd.o
|
||||
common-obj-y += bt.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o
|
||||
common-obj-y += bt-hci-csr.o
|
||||
common-obj-y += msmouse.o ps2.o
|
||||
common-obj-y += qdev-monitor.o
|
||||
common-obj-y += ps2.o
|
||||
common-obj-y += qdev-properties-system.o
|
||||
common-obj-$(CONFIG_BRLAPI) += baum.o
|
||||
|
||||
# xen backend driver support
|
||||
common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o xen_devconfig.o
|
||||
|
@ -209,8 +206,6 @@ obj-$(CONFIG_SOFTMMU) += vhost_net.o
|
|||
obj-$(CONFIG_VHOST_NET) += vhost.o
|
||||
obj-$(CONFIG_REALLY_VIRTFS) += 9pfs/
|
||||
obj-$(CONFIG_VGA) += vga.o
|
||||
obj-$(CONFIG_SOFTMMU) += device-hotplug.o
|
||||
obj-$(CONFIG_XEN) += xen_domainbuild.o xen_machine_pv.o
|
||||
|
||||
# Inter-VM PCI shared memory & VFIO PCI device assignment
|
||||
ifeq ($(CONFIG_PCI), y)
|
||||
|
@ -218,5 +213,4 @@ obj-$(CONFIG_KVM) += ivshmem.o
|
|||
obj-$(CONFIG_LINUX) += vfio_pci.o
|
||||
endif
|
||||
|
||||
$(obj)/baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
|
||||
endif
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "sysemu/kvm.h"
|
||||
|
||||
/* A15MP private memory region. */
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* This code is licensed under the GPL.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
typedef struct A9MPPrivState {
|
||||
SysBusDevice busdev;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* This code is licensed under the GPL.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
/* A9MP private memory region. */
|
||||
|
||||
|
|
|
@ -17,10 +17,10 @@
|
|||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "hw.h"
|
||||
#include "audiodev.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/audiodev.h"
|
||||
#include "audio/audio.h"
|
||||
#include "pci/pci.h"
|
||||
#include "hw/pci/pci.h"
|
||||
#include "sysemu/dma.h"
|
||||
|
||||
enum {
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "hw.h"
|
||||
#include "pc.h"
|
||||
#include "acpi.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/pc.h"
|
||||
#include "hw/acpi.h"
|
||||
#include "monitor/monitor.h"
|
||||
|
||||
struct acpi_table_header {
|
||||
|
|
|
@ -23,16 +23,16 @@
|
|||
* Contributions after 2012-01-13 are licensed under the terms of the
|
||||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
#include "hw.h"
|
||||
#include "pc.h"
|
||||
#include "pci/pci.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/pc.h"
|
||||
#include "hw/pci/pci.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "acpi.h"
|
||||
#include "hw/acpi.h"
|
||||
#include "sysemu/kvm.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
||||
#include "ich9.h"
|
||||
#include "hw/ich9.h"
|
||||
|
||||
//#define DEBUG
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#ifndef HW_ACPI_ICH9_H
|
||||
#define HW_ACPI_ICH9_H
|
||||
|
||||
#include "acpi.h"
|
||||
#include "hw/acpi.h"
|
||||
|
||||
typedef struct ICH9LPCPMRegs {
|
||||
/*
|
||||
|
|
|
@ -18,16 +18,16 @@
|
|||
* Contributions after 2012-01-13 are licensed under the terms of the
|
||||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
#include "hw.h"
|
||||
#include "pc.h"
|
||||
#include "apm.h"
|
||||
#include "pm_smbus.h"
|
||||
#include "pci/pci.h"
|
||||
#include "acpi.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/pc.h"
|
||||
#include "hw/apm.h"
|
||||
#include "hw/pm_smbus.h"
|
||||
#include "hw/pci/pci.h"
|
||||
#include "hw/acpi.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "qemu/range.h"
|
||||
#include "exec/ioport.h"
|
||||
#include "fw_cfg.h"
|
||||
#include "hw/fw_cfg.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
||||
//#define DEBUG
|
||||
|
|
4
hw/adb.c
4
hw/adb.c
|
@ -21,8 +21,8 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
#include "hw.h"
|
||||
#include "adb.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/adb.h"
|
||||
#include "ui/console.h"
|
||||
|
||||
/* debug ADB */
|
||||
|
|
2
hw/adb.h
2
hw/adb.h
|
@ -26,7 +26,7 @@
|
|||
#if !defined(__ADB_H__)
|
||||
#define __ADB_H__
|
||||
|
||||
#include "qdev.h"
|
||||
#include "hw/qdev.h"
|
||||
|
||||
#define MAX_ADB_DEVICES 16
|
||||
|
||||
|
|
|
@ -22,10 +22,10 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "hw.h"
|
||||
#include "audiodev.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/audiodev.h"
|
||||
#include "audio/audio.h"
|
||||
#include "isa.h"
|
||||
#include "hw/isa.h"
|
||||
|
||||
//#define DEBUG
|
||||
|
||||
|
@ -47,7 +47,7 @@
|
|||
void YMF262UpdateOneQEMU (int which, INT16 *dst, int length);
|
||||
#define SHIFT 2
|
||||
#else
|
||||
#include "fmopl.h"
|
||||
#include "hw/fmopl.h"
|
||||
#define SHIFT 1
|
||||
#endif
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "ssi.h"
|
||||
#include "hw/ssi.h"
|
||||
#include "ui/console.h"
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
obj-y = mc146818rtc.o
|
||||
obj-y += alpha_pci.o alpha_dp264.o alpha_typhoon.o
|
||||
obj-y += alpha_typhoon.o
|
||||
|
||||
obj-y := $(addprefix ../,$(obj-y))
|
||||
|
||||
obj-y += dp264.o pci.o
|
||||
|
|
|
@ -6,16 +6,16 @@
|
|||
* that we need to emulate as well.
|
||||
*/
|
||||
|
||||
#include "hw.h"
|
||||
#include "hw/hw.h"
|
||||
#include "elf.h"
|
||||
#include "loader.h"
|
||||
#include "boards.h"
|
||||
#include "alpha_sys.h"
|
||||
#include "hw/loader.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/alpha_sys.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "mc146818rtc.h"
|
||||
#include "ide.h"
|
||||
#include "i8254.h"
|
||||
#include "serial.h"
|
||||
#include "hw/mc146818rtc.h"
|
||||
#include "hw/ide.h"
|
||||
#include "hw/i8254.h"
|
||||
#include "hw/serial.h"
|
||||
|
||||
#define MAX_IDE_BUS 2
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "alpha_sys.h"
|
||||
#include "hw/alpha_sys.h"
|
||||
#include "qemu/log.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
|
|
@ -3,11 +3,11 @@
|
|||
#ifndef HW_ALPHA_H
|
||||
#define HW_ALPHA_H 1
|
||||
|
||||
#include "pci/pci.h"
|
||||
#include "pci/pci_host.h"
|
||||
#include "ide.h"
|
||||
#include "pc.h"
|
||||
#include "irq.h"
|
||||
#include "hw/pci/pci.h"
|
||||
#include "hw/pci/pci_host.h"
|
||||
#include "hw/ide.h"
|
||||
#include "hw/pc.h"
|
||||
#include "hw/irq.h"
|
||||
|
||||
|
||||
PCIBus *typhoon_init(ram_addr_t, ISABus **, qemu_irq *, AlphaCPU *[4],
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
|
||||
#include "cpu.h"
|
||||
#include "exec/exec-all.h"
|
||||
#include "hw.h"
|
||||
#include "devices.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/devices.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "alpha_sys.h"
|
||||
#include "hw/alpha_sys.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
||||
|
||||
|
|
12
hw/apb_pci.c
12
hw/apb_pci.c
|
@ -26,12 +26,12 @@
|
|||
Ultrasparc PCI host is called the PCI Bus Module (PBM). The APB is
|
||||
the secondary PCI bridge. */
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "pci/pci.h"
|
||||
#include "pci/pci_host.h"
|
||||
#include "pci/pci_bridge.h"
|
||||
#include "pci/pci_bus.h"
|
||||
#include "apb_pci.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/pci/pci.h"
|
||||
#include "hw/pci/pci_host.h"
|
||||
#include "hw/pci/pci_bridge.h"
|
||||
#include "hw/pci/pci_bus.h"
|
||||
#include "hw/apb_pci.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
||||
|
|
12
hw/apic.c
12
hw/apic.c
|
@ -17,14 +17,14 @@
|
|||
* License along with this library; if not, see <http://www.gnu.org/licenses/>
|
||||
*/
|
||||
#include "qemu/thread.h"
|
||||
#include "apic_internal.h"
|
||||
#include "apic.h"
|
||||
#include "ioapic.h"
|
||||
#include "pci/msi.h"
|
||||
#include "hw/apic_internal.h"
|
||||
#include "hw/apic.h"
|
||||
#include "hw/ioapic.h"
|
||||
#include "hw/pci/msi.h"
|
||||
#include "qemu/host-utils.h"
|
||||
#include "trace.h"
|
||||
#include "pc.h"
|
||||
#include "apic-msidef.h"
|
||||
#include "hw/pc.h"
|
||||
#include "hw/apic-msidef.h"
|
||||
|
||||
#define MAX_APIC_WORDS 8
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>
|
||||
*/
|
||||
#include "apic.h"
|
||||
#include "apic_internal.h"
|
||||
#include "hw/apic.h"
|
||||
#include "hw/apic_internal.h"
|
||||
#include "trace.h"
|
||||
#include "sysemu/kvm.h"
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#define QEMU_APIC_INTERNAL_H
|
||||
|
||||
#include "exec/memory.h"
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "qemu/timer.h"
|
||||
|
||||
/* APIC Local Vector Table */
|
||||
|
|
6
hw/apm.c
6
hw/apm.c
|
@ -20,9 +20,9 @@
|
|||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "apm.h"
|
||||
#include "hw.h"
|
||||
#include "pci/pci.h"
|
||||
#include "hw/apm.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/pci/pci.h"
|
||||
|
||||
//#define DEBUG
|
||||
|
||||
|
|
2
hw/apm.h
2
hw/apm.h
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include "qemu-common.h"
|
||||
#include "hw.h"
|
||||
#include "hw/hw.h"
|
||||
#include "exec/memory.h"
|
||||
|
||||
typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg);
|
||||
|
|
|
@ -30,8 +30,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "hw.h"
|
||||
#include "isa.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/isa.h"
|
||||
#include "ui/console.h"
|
||||
#include "qemu/timer.h"
|
||||
|
||||
|
|
|
@ -1,37 +1,37 @@
|
|||
obj-y = integratorcp.o versatilepb.o arm_pic.o
|
||||
obj-y += arm_boot.o
|
||||
obj-y += xilinx_zynq.o zynq_slcr.o
|
||||
obj-y += zynq_slcr.o
|
||||
obj-y += xilinx_spips.o
|
||||
obj-y += arm_gic.o arm_gic_common.o
|
||||
obj-y += a9scu.o
|
||||
obj-y += realview_gic.o realview.o arm_sysctl.o arm11mpcore.o a9mpcore.o
|
||||
obj-y += exynos4210_gic.o exynos4210_combiner.o exynos4210.o
|
||||
obj-y += exynos4_boards.o exynos4210_uart.o exynos4210_pwm.o
|
||||
obj-y += realview_gic.o arm_sysctl.o arm11mpcore.o a9mpcore.o
|
||||
obj-y += exynos4210_gic.o exynos4210_combiner.o
|
||||
obj-y += exynos4210_uart.o exynos4210_pwm.o
|
||||
obj-y += exynos4210_pmu.o exynos4210_mct.o exynos4210_fimd.o
|
||||
obj-y += exynos4210_rtc.o exynos4210_i2c.o
|
||||
obj-y += arm_mptimer.o a15mpcore.o
|
||||
obj-y += armv7m.o armv7m_nvic.o stellaris.o stellaris_enet.o
|
||||
obj-y += highbank.o
|
||||
obj-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
|
||||
obj-y += armv7m_nvic.o stellaris_enet.o
|
||||
obj-y += pxa2xx_timer.o pxa2xx_dma.o
|
||||
obj-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o
|
||||
obj-y += gumstix.o
|
||||
obj-y += zaurus.o ide/microdrive.o spitz.o tosa.o tc6393xb.o
|
||||
obj-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o \
|
||||
obj-y += zaurus.o ide/microdrive.o tc6393xb.o
|
||||
obj-y += omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o \
|
||||
omap_gpio.o omap_intc.o omap_uart.o
|
||||
obj-y += omap2.o omap_dss.o soc_dma.o omap_gptimer.o omap_synctimer.o \
|
||||
obj-y += omap_dss.o soc_dma.o omap_gptimer.o omap_synctimer.o \
|
||||
omap_gpmc.o omap_sdrc.o omap_spi.o omap_tap.o omap_l4.o
|
||||
obj-y += omap_sx1.o palm.o tsc210x.o
|
||||
obj-y += nseries.o blizzard.o onenand.o cbus.o tusb6010.o usb/hcd-musb.o
|
||||
obj-y += mst_fpga.o mainstone.o
|
||||
obj-y += z2.o
|
||||
obj-y += musicpal.o bitbang_i2c.o marvell_88w8618_audio.o
|
||||
obj-y += tsc210x.o
|
||||
obj-y += blizzard.o onenand.o cbus.o tusb6010.o usb/hcd-musb.o
|
||||
obj-y += mst_fpga.o
|
||||
obj-y += bitbang_i2c.o marvell_88w8618_audio.o
|
||||
obj-y += framebuffer.o
|
||||
obj-y += vexpress.o
|
||||
obj-y += strongarm.o
|
||||
obj-y += collie.o
|
||||
obj-y += imx_serial.o imx_ccm.o imx_timer.o imx_avic.o
|
||||
obj-y += kzm.o
|
||||
obj-$(CONFIG_FDT) += ../device_tree.o
|
||||
obj-$(CONFIG_KVM) += kvm/arm_gic.o
|
||||
|
||||
obj-y := $(addprefix ../,$(obj-y))
|
||||
|
||||
obj-y += boot.o collie.o exynos4_boards.o gumstix.o highbank.o
|
||||
obj-y += integratorcp.o kzm.o mainstone.o musicpal.o nseries.o
|
||||
obj-y += omap_sx1.o palm.o pic_cpu.o realview.o spitz.o stellaris.o
|
||||
obj-y += tosa.o versatilepb.o vexpress.o xilinx_zynq.o z2.o
|
||||
|
||||
obj-y += armv7m.o exynos4210.o pxa2xx.o pxa2xx_gpio.o pxa2xx_pic.o
|
||||
obj-y += omap1.o omap2.o
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
* This code is licensed under the GPL.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "arm-misc.h"
|
||||
#include "loader.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/loader.h"
|
||||
#include "elf.h"
|
||||
|
||||
/* Bitbanded IO. Each word corresponds to a single bit. */
|
|
@ -8,11 +8,11 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "hw.h"
|
||||
#include "arm-misc.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "boards.h"
|
||||
#include "loader.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/loader.h"
|
||||
#include "elf.h"
|
||||
#include "sysemu/device_tree.h"
|
||||
#include "qemu/config-file.h"
|
|
@ -8,13 +8,13 @@
|
|||
* Contributions after 2012-01-13 are licensed under the terms of the
|
||||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
#include "hw.h"
|
||||
#include "sysbus.h"
|
||||
#include "boards.h"
|
||||
#include "devices.h"
|
||||
#include "strongarm.h"
|
||||
#include "arm-misc.h"
|
||||
#include "flash.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/devices.h"
|
||||
#include "hw/strongarm.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/flash.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
|
@ -21,13 +21,13 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "boards.h"
|
||||
#include "hw/boards.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "sysbus.h"
|
||||
#include "arm-misc.h"
|
||||
#include "loader.h"
|
||||
#include "exynos4210.h"
|
||||
#include "usb/hcd-ehci.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/loader.h"
|
||||
#include "hw/exynos4210.h"
|
||||
#include "hw/usb/hcd-ehci.h"
|
||||
|
||||
#define EXYNOS4210_CHIPID_ADDR 0x10000000
|
||||
|
|
@ -22,12 +22,12 @@
|
|||
*/
|
||||
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "net/net.h"
|
||||
#include "arm-misc.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "exec/address-spaces.h"
|
||||
#include "exynos4210.h"
|
||||
#include "boards.h"
|
||||
#include "hw/exynos4210.h"
|
||||
#include "hw/boards.h"
|
||||
|
||||
#undef DEBUG
|
||||
|
|
@ -34,12 +34,12 @@
|
|||
* # qemu-system-arm -M verdex -pflash flash -monitor null -nographic -m 289
|
||||
*/
|
||||
|
||||
#include "hw.h"
|
||||
#include "pxa.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/pxa.h"
|
||||
#include "net/net.h"
|
||||
#include "flash.h"
|
||||
#include "devices.h"
|
||||
#include "boards.h"
|
||||
#include "hw/flash.h"
|
||||
#include "hw/devices.h"
|
||||
#include "hw/boards.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
|
@ -17,14 +17,14 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "arm-misc.h"
|
||||
#include "devices.h"
|
||||
#include "loader.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/devices.h"
|
||||
#include "hw/loader.h"
|
||||
#include "net/net.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "boards.h"
|
||||
#include "sysbus.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
|
@ -7,10 +7,10 @@
|
|||
* This code is licensed under the GPL
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "devices.h"
|
||||
#include "boards.h"
|
||||
#include "arm-misc.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/devices.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "net/net.h"
|
||||
#include "exec/address-spaces.h"
|
||||
#include "sysemu/sysemu.h"
|
|
@ -13,16 +13,16 @@
|
|||
* i.MX31 SoC
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "exec/address-spaces.h"
|
||||
#include "hw.h"
|
||||
#include "arm-misc.h"
|
||||
#include "devices.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/devices.h"
|
||||
#include "net/net.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "boards.h"
|
||||
#include "serial.h"
|
||||
#include "imx.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/serial.h"
|
||||
#include "hw/imx.h"
|
||||
|
||||
/* Memory map for Kzm Emulation Baseboard:
|
||||
* 0x00000000-0x00003fff 16k secure ROM IGNORED
|
|
@ -11,15 +11,15 @@
|
|||
* Contributions after 2012-01-13 are licensed under the terms of the
|
||||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
#include "hw.h"
|
||||
#include "pxa.h"
|
||||
#include "arm-misc.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/pxa.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "net/net.h"
|
||||
#include "devices.h"
|
||||
#include "boards.h"
|
||||
#include "flash.h"
|
||||
#include "hw/devices.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/flash.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
||||
/* Device addresses */
|
|
@ -9,19 +9,19 @@
|
|||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "arm-misc.h"
|
||||
#include "devices.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/devices.h"
|
||||
#include "net/net.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "boards.h"
|
||||
#include "serial.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/serial.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "ptimer.h"
|
||||
#include "hw/ptimer.h"
|
||||
#include "block/block.h"
|
||||
#include "flash.h"
|
||||
#include "hw/flash.h"
|
||||
#include "ui/console.h"
|
||||
#include "i2c.h"
|
||||
#include "hw/i2c.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "exec/address-spaces.h"
|
||||
#include "ui/pixel_ops.h"
|
|
@ -20,19 +20,19 @@
|
|||
|
||||
#include "qemu-common.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "omap.h"
|
||||
#include "arm-misc.h"
|
||||
#include "irq.h"
|
||||
#include "hw/omap.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/irq.h"
|
||||
#include "ui/console.h"
|
||||
#include "boards.h"
|
||||
#include "i2c.h"
|
||||
#include "devices.h"
|
||||
#include "flash.h"
|
||||
#include "hw.h"
|
||||
#include "bt.h"
|
||||
#include "loader.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/i2c.h"
|
||||
#include "hw/devices.h"
|
||||
#include "hw/flash.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/bt.h"
|
||||
#include "hw/loader.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
||||
/* Nokia N8x0 support */
|
|
@ -16,14 +16,14 @@
|
|||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "hw.h"
|
||||
#include "arm-misc.h"
|
||||
#include "omap.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/omap.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "soc_dma.h"
|
||||
#include "hw/soc_dma.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "qemu/range.h"
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
/* Should signal the TCMI/GPMC */
|
||||
uint32_t omap_badwidth_read8(void *opaque, hwaddr addr)
|
|
@ -19,15 +19,15 @@
|
|||
*/
|
||||
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "hw.h"
|
||||
#include "arm-misc.h"
|
||||
#include "omap.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/omap.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "char/char.h"
|
||||
#include "flash.h"
|
||||
#include "soc_dma.h"
|
||||
#include "sysbus.h"
|
||||
#include "hw/flash.h"
|
||||
#include "hw/soc_dma.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "audio/audio.h"
|
||||
|
||||
/* Enhanced Audio Controller (CODEC only) */
|
|
@ -25,12 +25,12 @@
|
|||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "hw.h"
|
||||
#include "hw/hw.h"
|
||||
#include "ui/console.h"
|
||||
#include "omap.h"
|
||||
#include "boards.h"
|
||||
#include "arm-misc.h"
|
||||
#include "flash.h"
|
||||
#include "hw/omap.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/flash.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
|
@ -16,15 +16,15 @@
|
|||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "hw.h"
|
||||
#include "hw/hw.h"
|
||||
#include "audio/audio.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "ui/console.h"
|
||||
#include "omap.h"
|
||||
#include "boards.h"
|
||||
#include "arm-misc.h"
|
||||
#include "devices.h"
|
||||
#include "loader.h"
|
||||
#include "hw/omap.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/devices.h"
|
||||
#include "hw/loader.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
||||
static uint32_t static_readb(void *opaque, hwaddr offset)
|
|
@ -7,8 +7,8 @@
|
|||
* This code is licensed under the LGPL
|
||||
*/
|
||||
|
||||
#include "hw.h"
|
||||
#include "arm-misc.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "sysemu/kvm.h"
|
||||
|
||||
/* Input 0 is IRQ and input 1 is FIQ. */
|
|
@ -7,12 +7,12 @@
|
|||
* This code is licensed under the GPL.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "pxa.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/pxa.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "serial.h"
|
||||
#include "i2c.h"
|
||||
#include "ssi.h"
|
||||
#include "hw/serial.h"
|
||||
#include "hw/i2c.h"
|
||||
#include "hw/ssi.h"
|
||||
#include "char/char.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
|
|
@ -7,9 +7,9 @@
|
|||
* This code is licensed under the GPL.
|
||||
*/
|
||||
|
||||
#include "hw.h"
|
||||
#include "sysbus.h"
|
||||
#include "pxa.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/pxa.h"
|
||||
|
||||
#define PXA2XX_GPIO_BANKS 4
|
||||
|
|
@ -8,9 +8,9 @@
|
|||
* This code is licensed under the GPL.
|
||||
*/
|
||||
|
||||
#include "hw.h"
|
||||
#include "pxa.h"
|
||||
#include "sysbus.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/pxa.h"
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
#define ICIP 0x00 /* Interrupt Controller IRQ Pending register */
|
||||
#define ICMR 0x04 /* Interrupt Controller Mask register */
|
|
@ -7,15 +7,15 @@
|
|||
* This code is licensed under the GPL.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "arm-misc.h"
|
||||
#include "primecell.h"
|
||||
#include "devices.h"
|
||||
#include "pci/pci.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/primecell.h"
|
||||
#include "hw/devices.h"
|
||||
#include "hw/pci/pci.h"
|
||||
#include "net/net.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "boards.h"
|
||||
#include "i2c.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/i2c.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
|
@ -10,23 +10,23 @@
|
|||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "hw.h"
|
||||
#include "pxa.h"
|
||||
#include "arm-misc.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/pxa.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "pcmcia.h"
|
||||
#include "i2c.h"
|
||||
#include "ssi.h"
|
||||
#include "flash.h"
|
||||
#include "hw/pcmcia.h"
|
||||
#include "hw/i2c.h"
|
||||
#include "hw/ssi.h"
|
||||
#include "hw/flash.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "devices.h"
|
||||
#include "sharpsl.h"
|
||||
#include "hw/devices.h"
|
||||
#include "hw/sharpsl.h"
|
||||
#include "ui/console.h"
|
||||
#include "block/block.h"
|
||||
#include "audio/audio.h"
|
||||
#include "boards.h"
|
||||
#include "hw/boards.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
||||
#undef REG_FMT
|
|
@ -7,14 +7,14 @@
|
|||
* This code is licensed under the GPL.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "ssi.h"
|
||||
#include "arm-misc.h"
|
||||
#include "devices.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/ssi.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/devices.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "i2c.h"
|
||||
#include "hw/i2c.h"
|
||||
#include "net/net.h"
|
||||
#include "boards.h"
|
||||
#include "hw/boards.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
||||
#define GPIO_A 0
|
|
@ -11,18 +11,18 @@
|
|||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "hw.h"
|
||||
#include "pxa.h"
|
||||
#include "arm-misc.h"
|
||||
#include "devices.h"
|
||||
#include "sharpsl.h"
|
||||
#include "pcmcia.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/pxa.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/devices.h"
|
||||
#include "hw/sharpsl.h"
|
||||
#include "hw/pcmcia.h"
|
||||
#include "block/block.h"
|
||||
#include "boards.h"
|
||||
#include "i2c.h"
|
||||
#include "ssi.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/i2c.h"
|
||||
#include "hw/ssi.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
||||
#define TOSA_RAM 0x04000000
|
|
@ -7,17 +7,17 @@
|
|||
* This code is licensed under the GPL.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "arm-misc.h"
|
||||
#include "devices.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/devices.h"
|
||||
#include "net/net.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "pci/pci.h"
|
||||
#include "i2c.h"
|
||||
#include "boards.h"
|
||||
#include "hw/pci/pci.h"
|
||||
#include "hw/i2c.h"
|
||||
#include "hw/boards.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "exec/address-spaces.h"
|
||||
#include "flash.h"
|
||||
#include "hw/flash.h"
|
||||
|
||||
#define VERSATILE_FLASH_ADDR 0x34000000
|
||||
#define VERSATILE_FLASH_SIZE (64 * 1024 * 1024)
|
|
@ -21,16 +21,16 @@
|
|||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "arm-misc.h"
|
||||
#include "primecell.h"
|
||||
#include "devices.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/primecell.h"
|
||||
#include "hw/devices.h"
|
||||
#include "net/net.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "boards.h"
|
||||
#include "hw/boards.h"
|
||||
#include "exec/address-spaces.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "flash.h"
|
||||
#include "hw/flash.h"
|
||||
|
||||
#define VEXPRESS_BOARD_ID 0x8e0
|
||||
#define VEXPRESS_FLASH_SIZE (64 * 1024 * 1024)
|
|
@ -15,16 +15,16 @@
|
|||
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "arm-misc.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "net/net.h"
|
||||
#include "exec/address-spaces.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "boards.h"
|
||||
#include "flash.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/flash.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "loader.h"
|
||||
#include "ssi.h"
|
||||
#include "hw/loader.h"
|
||||
#include "hw/ssi.h"
|
||||
|
||||
#define NUM_SPI_FLASHES 4
|
||||
#define NUM_QSPI_FLASHES 2
|
|
@ -11,15 +11,15 @@
|
|||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "hw.h"
|
||||
#include "pxa.h"
|
||||
#include "arm-misc.h"
|
||||
#include "devices.h"
|
||||
#include "i2c.h"
|
||||
#include "ssi.h"
|
||||
#include "boards.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/pxa.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "hw/devices.h"
|
||||
#include "hw/i2c.h"
|
||||
#include "hw/ssi.h"
|
||||
#include "hw/boards.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "flash.h"
|
||||
#include "hw/flash.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "ui/console.h"
|
||||
#include "audio/audio.h"
|
|
@ -7,7 +7,7 @@
|
|||
* This code is licensed under the GPL.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "qemu/timer.h"
|
||||
|
||||
/* MPCore private memory region. */
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
* armv7m_nvic device.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "arm_gic_internal.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/arm_gic_internal.h"
|
||||
|
||||
//#define DEBUG_GIC
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "arm_gic_internal.h"
|
||||
#include "hw/arm_gic_internal.h"
|
||||
|
||||
static void gic_save(QEMUFile *f, void *opaque)
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#ifndef QEMU_ARM_GIC_INTERNAL_H
|
||||
#define QEMU_ARM_GIC_INTERNAL_H
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
/* Maximum number of possible interrupts, determined by the GIC architecture */
|
||||
#define GIC_MAXIRQ 1020
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
/* L2C-310 r3p2 */
|
||||
#define CACHE_ID 0x410000c8
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "qemu/timer.h"
|
||||
|
||||
/* This device implements the per-cpu private timer and watchdog block
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
* This code is licensed under the GPL.
|
||||
*/
|
||||
|
||||
#include "hw.h"
|
||||
#include "hw/hw.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "sysbus.h"
|
||||
#include "primecell.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/primecell.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
|
||||
#define LOCK_VALUE 0xa05f
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
* This code is licensed under the GPL.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "qemu-common.h"
|
||||
#include "qdev.h"
|
||||
#include "ptimer.h"
|
||||
#include "hw/qdev.h"
|
||||
#include "hw/ptimer.h"
|
||||
|
||||
/* Common timer implementation. */
|
||||
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
* NVIC. Much of that is also implemented here.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "arm-misc.h"
|
||||
#include "hw/arm-misc.h"
|
||||
#include "exec/address-spaces.h"
|
||||
#include "arm_gic_internal.h"
|
||||
#include "hw/arm_gic_internal.h"
|
||||
|
||||
typedef struct {
|
||||
GICState gic;
|
||||
|
|
633
hw/baum.c
633
hw/baum.c
|
@ -1,633 +0,0 @@
|
|||
/*
|
||||
* QEMU Baum Braille Device
|
||||
*
|
||||
* Copyright (c) 2008 Samuel Thibault
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
#include "qemu-common.h"
|
||||
#include "char/char.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "usb.h"
|
||||
#include <brlapi.h>
|
||||
#include <brlapi_constants.h>
|
||||
#include <brlapi_keycodes.h>
|
||||
#ifdef CONFIG_SDL
|
||||
#include <SDL_syswm.h>
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
#define DPRINTF(fmt, ...) \
|
||||
printf(fmt, ## __VA_ARGS__)
|
||||
#else
|
||||
#define DPRINTF(fmt, ...)
|
||||
#endif
|
||||
|
||||
#define ESC 0x1B
|
||||
|
||||
#define BAUM_REQ_DisplayData 0x01
|
||||
#define BAUM_REQ_GetVersionNumber 0x05
|
||||
#define BAUM_REQ_GetKeys 0x08
|
||||
#define BAUM_REQ_SetMode 0x12
|
||||
#define BAUM_REQ_SetProtocol 0x15
|
||||
#define BAUM_REQ_GetDeviceIdentity 0x84
|
||||
#define BAUM_REQ_GetSerialNumber 0x8A
|
||||
|
||||
#define BAUM_RSP_CellCount 0x01
|
||||
#define BAUM_RSP_VersionNumber 0x05
|
||||
#define BAUM_RSP_ModeSetting 0x11
|
||||
#define BAUM_RSP_CommunicationChannel 0x16
|
||||
#define BAUM_RSP_PowerdownSignal 0x17
|
||||
#define BAUM_RSP_HorizontalSensors 0x20
|
||||
#define BAUM_RSP_VerticalSensors 0x21
|
||||
#define BAUM_RSP_RoutingKeys 0x22
|
||||
#define BAUM_RSP_Switches 0x23
|
||||
#define BAUM_RSP_TopKeys 0x24
|
||||
#define BAUM_RSP_HorizontalSensor 0x25
|
||||
#define BAUM_RSP_VerticalSensor 0x26
|
||||
#define BAUM_RSP_RoutingKey 0x27
|
||||
#define BAUM_RSP_FrontKeys6 0x28
|
||||
#define BAUM_RSP_BackKeys6 0x29
|
||||
#define BAUM_RSP_CommandKeys 0x2B
|
||||
#define BAUM_RSP_FrontKeys10 0x2C
|
||||
#define BAUM_RSP_BackKeys10 0x2D
|
||||
#define BAUM_RSP_EntryKeys 0x33
|
||||
#define BAUM_RSP_JoyStick 0x34
|
||||
#define BAUM_RSP_ErrorCode 0x40
|
||||
#define BAUM_RSP_InfoBlock 0x42
|
||||
#define BAUM_RSP_DeviceIdentity 0x84
|
||||
#define BAUM_RSP_SerialNumber 0x8A
|
||||
#define BAUM_RSP_BluetoothName 0x8C
|
||||
|
||||
#define BAUM_TL1 0x01
|
||||
#define BAUM_TL2 0x02
|
||||
#define BAUM_TL3 0x04
|
||||
#define BAUM_TR1 0x08
|
||||
#define BAUM_TR2 0x10
|
||||
#define BAUM_TR3 0x20
|
||||
|
||||
#define BUF_SIZE 256
|
||||
|
||||
typedef struct {
|
||||
CharDriverState *chr;
|
||||
|
||||
brlapi_handle_t *brlapi;
|
||||
int brlapi_fd;
|
||||
unsigned int x, y;
|
||||
|
||||
uint8_t in_buf[BUF_SIZE];
|
||||
uint8_t in_buf_used;
|
||||
uint8_t out_buf[BUF_SIZE];
|
||||
uint8_t out_buf_used, out_buf_ptr;
|
||||
|
||||
QEMUTimer *cellCount_timer;
|
||||
} BaumDriverState;
|
||||
|
||||
/* Let's assume NABCC by default */
|
||||
static const uint8_t nabcc_translation[256] = {
|
||||
[0] = ' ',
|
||||
#ifndef BRLAPI_DOTS
|
||||
#define BRLAPI_DOTS(d1,d2,d3,d4,d5,d6,d7,d8) \
|
||||
((d1?BRLAPI_DOT1:0)|\
|
||||
(d2?BRLAPI_DOT2:0)|\
|
||||
(d3?BRLAPI_DOT3:0)|\
|
||||
(d4?BRLAPI_DOT4:0)|\
|
||||
(d5?BRLAPI_DOT5:0)|\
|
||||
(d6?BRLAPI_DOT6:0)|\
|
||||
(d7?BRLAPI_DOT7:0)|\
|
||||
(d8?BRLAPI_DOT8:0))
|
||||
#endif
|
||||
[BRLAPI_DOTS(1,0,0,0,0,0,0,0)] = 'a',
|
||||
[BRLAPI_DOTS(1,1,0,0,0,0,0,0)] = 'b',
|
||||
[BRLAPI_DOTS(1,0,0,1,0,0,0,0)] = 'c',
|
||||
[BRLAPI_DOTS(1,0,0,1,1,0,0,0)] = 'd',
|
||||
[BRLAPI_DOTS(1,0,0,0,1,0,0,0)] = 'e',
|
||||
[BRLAPI_DOTS(1,1,0,1,0,0,0,0)] = 'f',
|
||||
[BRLAPI_DOTS(1,1,0,1,1,0,0,0)] = 'g',
|
||||
[BRLAPI_DOTS(1,1,0,0,1,0,0,0)] = 'h',
|
||||
[BRLAPI_DOTS(0,1,0,1,0,0,0,0)] = 'i',
|
||||
[BRLAPI_DOTS(0,1,0,1,1,0,0,0)] = 'j',
|
||||
[BRLAPI_DOTS(1,0,1,0,0,0,0,0)] = 'k',
|
||||
[BRLAPI_DOTS(1,1,1,0,0,0,0,0)] = 'l',
|
||||
[BRLAPI_DOTS(1,0,1,1,0,0,0,0)] = 'm',
|
||||
[BRLAPI_DOTS(1,0,1,1,1,0,0,0)] = 'n',
|
||||
[BRLAPI_DOTS(1,0,1,0,1,0,0,0)] = 'o',
|
||||
[BRLAPI_DOTS(1,1,1,1,0,0,0,0)] = 'p',
|
||||
[BRLAPI_DOTS(1,1,1,1,1,0,0,0)] = 'q',
|
||||
[BRLAPI_DOTS(1,1,1,0,1,0,0,0)] = 'r',
|
||||
[BRLAPI_DOTS(0,1,1,1,0,0,0,0)] = 's',
|
||||
[BRLAPI_DOTS(0,1,1,1,1,0,0,0)] = 't',
|
||||
[BRLAPI_DOTS(1,0,1,0,0,1,0,0)] = 'u',
|
||||
[BRLAPI_DOTS(1,1,1,0,0,1,0,0)] = 'v',
|
||||
[BRLAPI_DOTS(0,1,0,1,1,1,0,0)] = 'w',
|
||||
[BRLAPI_DOTS(1,0,1,1,0,1,0,0)] = 'x',
|
||||
[BRLAPI_DOTS(1,0,1,1,1,1,0,0)] = 'y',
|
||||
[BRLAPI_DOTS(1,0,1,0,1,1,0,0)] = 'z',
|
||||
|
||||
[BRLAPI_DOTS(1,0,0,0,0,0,1,0)] = 'A',
|
||||
[BRLAPI_DOTS(1,1,0,0,0,0,1,0)] = 'B',
|
||||
[BRLAPI_DOTS(1,0,0,1,0,0,1,0)] = 'C',
|
||||
[BRLAPI_DOTS(1,0,0,1,1,0,1,0)] = 'D',
|
||||
[BRLAPI_DOTS(1,0,0,0,1,0,1,0)] = 'E',
|
||||
[BRLAPI_DOTS(1,1,0,1,0,0,1,0)] = 'F',
|
||||
[BRLAPI_DOTS(1,1,0,1,1,0,1,0)] = 'G',
|
||||
[BRLAPI_DOTS(1,1,0,0,1,0,1,0)] = 'H',
|
||||
[BRLAPI_DOTS(0,1,0,1,0,0,1,0)] = 'I',
|
||||
[BRLAPI_DOTS(0,1,0,1,1,0,1,0)] = 'J',
|
||||
[BRLAPI_DOTS(1,0,1,0,0,0,1,0)] = 'K',
|
||||
[BRLAPI_DOTS(1,1,1,0,0,0,1,0)] = 'L',
|
||||
[BRLAPI_DOTS(1,0,1,1,0,0,1,0)] = 'M',
|
||||
[BRLAPI_DOTS(1,0,1,1,1,0,1,0)] = 'N',
|
||||
[BRLAPI_DOTS(1,0,1,0,1,0,1,0)] = 'O',
|
||||
[BRLAPI_DOTS(1,1,1,1,0,0,1,0)] = 'P',
|
||||
[BRLAPI_DOTS(1,1,1,1,1,0,1,0)] = 'Q',
|
||||
[BRLAPI_DOTS(1,1,1,0,1,0,1,0)] = 'R',
|
||||
[BRLAPI_DOTS(0,1,1,1,0,0,1,0)] = 'S',
|
||||
[BRLAPI_DOTS(0,1,1,1,1,0,1,0)] = 'T',
|
||||
[BRLAPI_DOTS(1,0,1,0,0,1,1,0)] = 'U',
|
||||
[BRLAPI_DOTS(1,1,1,0,0,1,1,0)] = 'V',
|
||||
[BRLAPI_DOTS(0,1,0,1,1,1,1,0)] = 'W',
|
||||
[BRLAPI_DOTS(1,0,1,1,0,1,1,0)] = 'X',
|
||||
[BRLAPI_DOTS(1,0,1,1,1,1,1,0)] = 'Y',
|
||||
[BRLAPI_DOTS(1,0,1,0,1,1,1,0)] = 'Z',
|
||||
|
||||
[BRLAPI_DOTS(0,0,1,0,1,1,0,0)] = '0',
|
||||
[BRLAPI_DOTS(0,1,0,0,0,0,0,0)] = '1',
|
||||
[BRLAPI_DOTS(0,1,1,0,0,0,0,0)] = '2',
|
||||
[BRLAPI_DOTS(0,1,0,0,1,0,0,0)] = '3',
|
||||
[BRLAPI_DOTS(0,1,0,0,1,1,0,0)] = '4',
|
||||
[BRLAPI_DOTS(0,1,0,0,0,1,0,0)] = '5',
|
||||
[BRLAPI_DOTS(0,1,1,0,1,0,0,0)] = '6',
|
||||
[BRLAPI_DOTS(0,1,1,0,1,1,0,0)] = '7',
|
||||
[BRLAPI_DOTS(0,1,1,0,0,1,0,0)] = '8',
|
||||
[BRLAPI_DOTS(0,0,1,0,1,0,0,0)] = '9',
|
||||
|
||||
[BRLAPI_DOTS(0,0,0,1,0,1,0,0)] = '.',
|
||||
[BRLAPI_DOTS(0,0,1,1,0,1,0,0)] = '+',
|
||||
[BRLAPI_DOTS(0,0,1,0,0,1,0,0)] = '-',
|
||||
[BRLAPI_DOTS(1,0,0,0,0,1,0,0)] = '*',
|
||||
[BRLAPI_DOTS(0,0,1,1,0,0,0,0)] = '/',
|
||||
[BRLAPI_DOTS(1,1,1,0,1,1,0,0)] = '(',
|
||||
[BRLAPI_DOTS(0,1,1,1,1,1,0,0)] = ')',
|
||||
|
||||
[BRLAPI_DOTS(1,1,1,1,0,1,0,0)] = '&',
|
||||
[BRLAPI_DOTS(0,0,1,1,1,1,0,0)] = '#',
|
||||
|
||||
[BRLAPI_DOTS(0,0,0,0,0,1,0,0)] = ',',
|
||||
[BRLAPI_DOTS(0,0,0,0,1,1,0,0)] = ';',
|
||||
[BRLAPI_DOTS(1,0,0,0,1,1,0,0)] = ':',
|
||||
[BRLAPI_DOTS(0,1,1,1,0,1,0,0)] = '!',
|
||||
[BRLAPI_DOTS(1,0,0,1,1,1,0,0)] = '?',
|
||||
[BRLAPI_DOTS(0,0,0,0,1,0,0,0)] = '"',
|
||||
[BRLAPI_DOTS(0,0,1,0,0,0,0,0)] ='\'',
|
||||
[BRLAPI_DOTS(0,0,0,1,0,0,0,0)] = '`',
|
||||
[BRLAPI_DOTS(0,0,0,1,1,0,1,0)] = '^',
|
||||
[BRLAPI_DOTS(0,0,0,1,1,0,0,0)] = '~',
|
||||
[BRLAPI_DOTS(0,1,0,1,0,1,1,0)] = '[',
|
||||
[BRLAPI_DOTS(1,1,0,1,1,1,1,0)] = ']',
|
||||
[BRLAPI_DOTS(0,1,0,1,0,1,0,0)] = '{',
|
||||
[BRLAPI_DOTS(1,1,0,1,1,1,0,0)] = '}',
|
||||
[BRLAPI_DOTS(1,1,1,1,1,1,0,0)] = '=',
|
||||
[BRLAPI_DOTS(1,1,0,0,0,1,0,0)] = '<',
|
||||
[BRLAPI_DOTS(0,0,1,1,1,0,0,0)] = '>',
|
||||
[BRLAPI_DOTS(1,1,0,1,0,1,0,0)] = '$',
|
||||
[BRLAPI_DOTS(1,0,0,1,0,1,0,0)] = '%',
|
||||
[BRLAPI_DOTS(0,0,0,1,0,0,1,0)] = '@',
|
||||
[BRLAPI_DOTS(1,1,0,0,1,1,0,0)] = '|',
|
||||
[BRLAPI_DOTS(1,1,0,0,1,1,1,0)] ='\\',
|
||||
[BRLAPI_DOTS(0,0,0,1,1,1,0,0)] = '_',
|
||||
};
|
||||
|
||||
/* The serial port can receive more of our data */
|
||||
static void baum_accept_input(struct CharDriverState *chr)
|
||||
{
|
||||
BaumDriverState *baum = chr->opaque;
|
||||
int room, first;
|
||||
|
||||
if (!baum->out_buf_used)
|
||||
return;
|
||||
room = qemu_chr_be_can_write(chr);
|
||||
if (!room)
|
||||
return;
|
||||
if (room > baum->out_buf_used)
|
||||
room = baum->out_buf_used;
|
||||
|
||||
first = BUF_SIZE - baum->out_buf_ptr;
|
||||
if (room > first) {
|
||||
qemu_chr_be_write(chr, baum->out_buf + baum->out_buf_ptr, first);
|
||||
baum->out_buf_ptr = 0;
|
||||
baum->out_buf_used -= first;
|
||||
room -= first;
|
||||
}
|
||||
qemu_chr_be_write(chr, baum->out_buf + baum->out_buf_ptr, room);
|
||||
baum->out_buf_ptr += room;
|
||||
baum->out_buf_used -= room;
|
||||
}
|
||||
|
||||
/* We want to send a packet */
|
||||
static void baum_write_packet(BaumDriverState *baum, const uint8_t *buf, int len)
|
||||
{
|
||||
uint8_t io_buf[1 + 2 * len], *cur = io_buf;
|
||||
int room;
|
||||
*cur++ = ESC;
|
||||
while (len--)
|
||||
if ((*cur++ = *buf++) == ESC)
|
||||
*cur++ = ESC;
|
||||
room = qemu_chr_be_can_write(baum->chr);
|
||||
len = cur - io_buf;
|
||||
if (len <= room) {
|
||||
/* Fits */
|
||||
qemu_chr_be_write(baum->chr, io_buf, len);
|
||||
} else {
|
||||
int first;
|
||||
uint8_t out;
|
||||
/* Can't fit all, send what can be, and store the rest. */
|
||||
qemu_chr_be_write(baum->chr, io_buf, room);
|
||||
len -= room;
|
||||
cur = io_buf + room;
|
||||
if (len > BUF_SIZE - baum->out_buf_used) {
|
||||
/* Can't even store it, drop the previous data... */
|
||||
assert(len <= BUF_SIZE);
|
||||
baum->out_buf_used = 0;
|
||||
baum->out_buf_ptr = 0;
|
||||
}
|
||||
out = baum->out_buf_ptr;
|
||||
baum->out_buf_used += len;
|
||||
first = BUF_SIZE - baum->out_buf_ptr;
|
||||
if (len > first) {
|
||||
memcpy(baum->out_buf + out, cur, first);
|
||||
out = 0;
|
||||
len -= first;
|
||||
cur += first;
|
||||
}
|
||||
memcpy(baum->out_buf + out, cur, len);
|
||||
}
|
||||
}
|
||||
|
||||
/* Called when the other end seems to have a wrong idea of our display size */
|
||||
static void baum_cellCount_timer_cb(void *opaque)
|
||||
{
|
||||
BaumDriverState *baum = opaque;
|
||||
uint8_t cell_count[] = { BAUM_RSP_CellCount, baum->x * baum->y };
|
||||
DPRINTF("Timeout waiting for DisplayData, sending cell count\n");
|
||||
baum_write_packet(baum, cell_count, sizeof(cell_count));
|
||||
}
|
||||
|
||||
/* Try to interpret a whole incoming packet */
|
||||
static int baum_eat_packet(BaumDriverState *baum, const uint8_t *buf, int len)
|
||||
{
|
||||
const uint8_t *cur = buf;
|
||||
uint8_t req = 0;
|
||||
|
||||
if (!len--)
|
||||
return 0;
|
||||
if (*cur++ != ESC) {
|
||||
while (*cur != ESC) {
|
||||
if (!len--)
|
||||
return 0;
|
||||
cur++;
|
||||
}
|
||||
DPRINTF("Dropped %d bytes!\n", cur - buf);
|
||||
}
|
||||
|
||||
#define EAT(c) do {\
|
||||
if (!len--) \
|
||||
return 0; \
|
||||
if ((c = *cur++) == ESC) { \
|
||||
if (!len--) \
|
||||
return 0; \
|
||||
if (*cur++ != ESC) { \
|
||||
DPRINTF("Broken packet %#2x, tossing\n", req); \
|
||||
if (qemu_timer_pending(baum->cellCount_timer)) { \
|
||||
qemu_del_timer(baum->cellCount_timer); \
|
||||
baum_cellCount_timer_cb(baum); \
|
||||
} \
|
||||
return (cur - 2 - buf); \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
EAT(req);
|
||||
switch (req) {
|
||||
case BAUM_REQ_DisplayData:
|
||||
{
|
||||
uint8_t cells[baum->x * baum->y], c;
|
||||
uint8_t text[baum->x * baum->y];
|
||||
uint8_t zero[baum->x * baum->y];
|
||||
int cursor = BRLAPI_CURSOR_OFF;
|
||||
int i;
|
||||
|
||||
/* Allow 100ms to complete the DisplayData packet */
|
||||
qemu_mod_timer(baum->cellCount_timer, qemu_get_clock_ns(vm_clock) +
|
||||
get_ticks_per_sec() / 10);
|
||||
for (i = 0; i < baum->x * baum->y ; i++) {
|
||||
EAT(c);
|
||||
cells[i] = c;
|
||||
if ((c & (BRLAPI_DOT7|BRLAPI_DOT8))
|
||||
== (BRLAPI_DOT7|BRLAPI_DOT8)) {
|
||||
cursor = i + 1;
|
||||
c &= ~(BRLAPI_DOT7|BRLAPI_DOT8);
|
||||
}
|
||||
if (!(c = nabcc_translation[c]))
|
||||
c = '?';
|
||||
text[i] = c;
|
||||
}
|
||||
qemu_del_timer(baum->cellCount_timer);
|
||||
|
||||
memset(zero, 0, sizeof(zero));
|
||||
|
||||
brlapi_writeArguments_t wa = {
|
||||
.displayNumber = BRLAPI_DISPLAY_DEFAULT,
|
||||
.regionBegin = 1,
|
||||
.regionSize = baum->x * baum->y,
|
||||
.text = (char *)text,
|
||||
.textSize = baum->x * baum->y,
|
||||
.andMask = zero,
|
||||
.orMask = cells,
|
||||
.cursor = cursor,
|
||||
.charset = (char *)"ISO-8859-1",
|
||||
};
|
||||
|
||||
if (brlapi__write(baum->brlapi, &wa) == -1)
|
||||
brlapi_perror("baum brlapi_write");
|
||||
break;
|
||||
}
|
||||
case BAUM_REQ_SetMode:
|
||||
{
|
||||
uint8_t mode, setting;
|
||||
DPRINTF("SetMode\n");
|
||||
EAT(mode);
|
||||
EAT(setting);
|
||||
/* ignore */
|
||||
break;
|
||||
}
|
||||
case BAUM_REQ_SetProtocol:
|
||||
{
|
||||
uint8_t protocol;
|
||||
DPRINTF("SetProtocol\n");
|
||||
EAT(protocol);
|
||||
/* ignore */
|
||||
break;
|
||||
}
|
||||
case BAUM_REQ_GetDeviceIdentity:
|
||||
{
|
||||
uint8_t identity[17] = { BAUM_RSP_DeviceIdentity,
|
||||
'B','a','u','m',' ','V','a','r','i','o' };
|
||||
DPRINTF("GetDeviceIdentity\n");
|
||||
identity[11] = '0' + baum->x / 10;
|
||||
identity[12] = '0' + baum->x % 10;
|
||||
baum_write_packet(baum, identity, sizeof(identity));
|
||||
break;
|
||||
}
|
||||
case BAUM_REQ_GetVersionNumber:
|
||||
{
|
||||
uint8_t version[] = { BAUM_RSP_VersionNumber, 1 }; /* ? */
|
||||
DPRINTF("GetVersionNumber\n");
|
||||
baum_write_packet(baum, version, sizeof(version));
|
||||
break;
|
||||
}
|
||||
case BAUM_REQ_GetSerialNumber:
|
||||
{
|
||||
uint8_t serial[] = { BAUM_RSP_SerialNumber,
|
||||
'0','0','0','0','0','0','0','0' };
|
||||
DPRINTF("GetSerialNumber\n");
|
||||
baum_write_packet(baum, serial, sizeof(serial));
|
||||
break;
|
||||
}
|
||||
case BAUM_REQ_GetKeys:
|
||||
{
|
||||
DPRINTF("Get%0#2x\n", req);
|
||||
/* ignore */
|
||||
break;
|
||||
}
|
||||
default:
|
||||
DPRINTF("unrecognized request %0#2x\n", req);
|
||||
do
|
||||
if (!len--)
|
||||
return 0;
|
||||
while (*cur++ != ESC);
|
||||
cur--;
|
||||
break;
|
||||
}
|
||||
return cur - buf;
|
||||
}
|
||||
|
||||
/* The other end is writing some data. Store it and try to interpret */
|
||||
static int baum_write(CharDriverState *chr, const uint8_t *buf, int len)
|
||||
{
|
||||
BaumDriverState *baum = chr->opaque;
|
||||
int tocopy, cur, eaten, orig_len = len;
|
||||
|
||||
if (!len)
|
||||
return 0;
|
||||
if (!baum->brlapi)
|
||||
return len;
|
||||
|
||||
while (len) {
|
||||
/* Complete our buffer as much as possible */
|
||||
tocopy = len;
|
||||
if (tocopy > BUF_SIZE - baum->in_buf_used)
|
||||
tocopy = BUF_SIZE - baum->in_buf_used;
|
||||
|
||||
memcpy(baum->in_buf + baum->in_buf_used, buf, tocopy);
|
||||
baum->in_buf_used += tocopy;
|
||||
buf += tocopy;
|
||||
len -= tocopy;
|
||||
|
||||
/* Interpret it as much as possible */
|
||||
cur = 0;
|
||||
while (cur < baum->in_buf_used &&
|
||||
(eaten = baum_eat_packet(baum, baum->in_buf + cur, baum->in_buf_used - cur)))
|
||||
cur += eaten;
|
||||
|
||||
/* Shift the remainder */
|
||||
if (cur) {
|
||||
memmove(baum->in_buf, baum->in_buf + cur, baum->in_buf_used - cur);
|
||||
baum->in_buf_used -= cur;
|
||||
}
|
||||
|
||||
/* And continue if any data left */
|
||||
}
|
||||
return orig_len;
|
||||
}
|
||||
|
||||
/* Send the key code to the other end */
|
||||
static void baum_send_key(BaumDriverState *baum, uint8_t type, uint8_t value) {
|
||||
uint8_t packet[] = { type, value };
|
||||
DPRINTF("writing key %x %x\n", type, value);
|
||||
baum_write_packet(baum, packet, sizeof(packet));
|
||||
}
|
||||
|
||||
/* We got some data on the BrlAPI socket */
|
||||
static void baum_chr_read(void *opaque)
|
||||
{
|
||||
BaumDriverState *baum = opaque;
|
||||
brlapi_keyCode_t code;
|
||||
int ret;
|
||||
if (!baum->brlapi)
|
||||
return;
|
||||
while ((ret = brlapi__readKey(baum->brlapi, 0, &code)) == 1) {
|
||||
DPRINTF("got key %"BRLAPI_PRIxKEYCODE"\n", code);
|
||||
/* Emulate */
|
||||
switch (code & BRLAPI_KEY_TYPE_MASK) {
|
||||
case BRLAPI_KEY_TYPE_CMD:
|
||||
switch (code & BRLAPI_KEY_CMD_BLK_MASK) {
|
||||
case BRLAPI_KEY_CMD_ROUTE:
|
||||
baum_send_key(baum, BAUM_RSP_RoutingKey, (code & BRLAPI_KEY_CMD_ARG_MASK)+1);
|
||||
baum_send_key(baum, BAUM_RSP_RoutingKey, 0);
|
||||
break;
|
||||
case 0:
|
||||
switch (code & BRLAPI_KEY_CMD_ARG_MASK) {
|
||||
case BRLAPI_KEY_CMD_FWINLT:
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, BAUM_TL2);
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, 0);
|
||||
break;
|
||||
case BRLAPI_KEY_CMD_FWINRT:
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, BAUM_TR2);
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, 0);
|
||||
break;
|
||||
case BRLAPI_KEY_CMD_LNUP:
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, BAUM_TR1);
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, 0);
|
||||
break;
|
||||
case BRLAPI_KEY_CMD_LNDN:
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, BAUM_TR3);
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, 0);
|
||||
break;
|
||||
case BRLAPI_KEY_CMD_TOP:
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, BAUM_TL1|BAUM_TR1);
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, 0);
|
||||
break;
|
||||
case BRLAPI_KEY_CMD_BOT:
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, BAUM_TL3|BAUM_TR3);
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, 0);
|
||||
break;
|
||||
case BRLAPI_KEY_CMD_TOP_LEFT:
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, BAUM_TL2|BAUM_TR1);
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, 0);
|
||||
break;
|
||||
case BRLAPI_KEY_CMD_BOT_LEFT:
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, BAUM_TL2|BAUM_TR3);
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, 0);
|
||||
break;
|
||||
case BRLAPI_KEY_CMD_HOME:
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, BAUM_TL2|BAUM_TR1|BAUM_TR3);
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, 0);
|
||||
break;
|
||||
case BRLAPI_KEY_CMD_PREFMENU:
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, BAUM_TL1|BAUM_TL3|BAUM_TR1);
|
||||
baum_send_key(baum, BAUM_RSP_TopKeys, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case BRLAPI_KEY_TYPE_SYM:
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (ret == -1 && (brlapi_errno != BRLAPI_ERROR_LIBCERR || errno != EINTR)) {
|
||||
brlapi_perror("baum: brlapi_readKey");
|
||||
brlapi__closeConnection(baum->brlapi);
|
||||
g_free(baum->brlapi);
|
||||
baum->brlapi = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static void baum_close(struct CharDriverState *chr)
|
||||
{
|
||||
BaumDriverState *baum = chr->opaque;
|
||||
|
||||
qemu_free_timer(baum->cellCount_timer);
|
||||
if (baum->brlapi) {
|
||||
brlapi__closeConnection(baum->brlapi);
|
||||
g_free(baum->brlapi);
|
||||
}
|
||||
g_free(baum);
|
||||
}
|
||||
|
||||
static CharDriverState *chr_baum_init(QemuOpts *opts)
|
||||
{
|
||||
BaumDriverState *baum;
|
||||
CharDriverState *chr;
|
||||
brlapi_handle_t *handle;
|
||||
#ifdef CONFIG_SDL
|
||||
SDL_SysWMinfo info;
|
||||
#endif
|
||||
int tty;
|
||||
|
||||
baum = g_malloc0(sizeof(BaumDriverState));
|
||||
baum->chr = chr = g_malloc0(sizeof(CharDriverState));
|
||||
|
||||
chr->opaque = baum;
|
||||
chr->chr_write = baum_write;
|
||||
chr->chr_accept_input = baum_accept_input;
|
||||
chr->chr_close = baum_close;
|
||||
|
||||
handle = g_malloc0(brlapi_getHandleSize());
|
||||
baum->brlapi = handle;
|
||||
|
||||
baum->brlapi_fd = brlapi__openConnection(handle, NULL, NULL);
|
||||
if (baum->brlapi_fd == -1) {
|
||||
brlapi_perror("baum_init: brlapi_openConnection");
|
||||
goto fail_handle;
|
||||
}
|
||||
|
||||
baum->cellCount_timer = qemu_new_timer_ns(vm_clock, baum_cellCount_timer_cb, baum);
|
||||
|
||||
if (brlapi__getDisplaySize(handle, &baum->x, &baum->y) == -1) {
|
||||
brlapi_perror("baum_init: brlapi_getDisplaySize");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SDL
|
||||
memset(&info, 0, sizeof(info));
|
||||
SDL_VERSION(&info.version);
|
||||
if (SDL_GetWMInfo(&info))
|
||||
tty = info.info.x11.wmwindow;
|
||||
else
|
||||
#endif
|
||||
tty = BRLAPI_TTY_DEFAULT;
|
||||
|
||||
if (brlapi__enterTtyMode(handle, tty, NULL) == -1) {
|
||||
brlapi_perror("baum_init: brlapi_enterTtyMode");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
qemu_set_fd_handler(baum->brlapi_fd, baum_chr_read, NULL, baum);
|
||||
|
||||
qemu_chr_generic_open(chr);
|
||||
|
||||
return chr;
|
||||
|
||||
fail:
|
||||
qemu_free_timer(baum->cellCount_timer);
|
||||
brlapi__closeConnection(handle);
|
||||
fail_handle:
|
||||
g_free(handle);
|
||||
g_free(chr);
|
||||
g_free(baum);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void register_types(void)
|
||||
{
|
||||
register_char_driver("braille", chr_baum_init);
|
||||
}
|
||||
|
||||
type_init(register_types);
|
|
@ -9,9 +9,9 @@
|
|||
* Contributions after 2012-01-13 are licensed under the terms of the
|
||||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
#include "hw.h"
|
||||
#include "bitbang_i2c.h"
|
||||
#include "sysbus.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/bitbang_i2c.h"
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
//#define DEBUG_BITBANG_I2C
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef BITBANG_I2C_H
|
||||
#define BITBANG_I2C_H
|
||||
|
||||
#include "i2c.h"
|
||||
#include "hw/i2c.h"
|
||||
|
||||
typedef struct bitbang_i2c_interface bitbang_i2c_interface;
|
||||
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
|
||||
#include "qemu-common.h"
|
||||
#include "ui/console.h"
|
||||
#include "devices.h"
|
||||
#include "vga_int.h"
|
||||
#include "hw/devices.h"
|
||||
#include "hw/vga_int.h"
|
||||
#include "ui/pixel_ops.h"
|
||||
|
||||
typedef void (*blizzard_fn_t)(uint8_t *, const uint8_t *, unsigned int);
|
||||
|
@ -941,15 +941,15 @@ static void blizzard_screen_dump(void *opaque, const char *filename,
|
|||
}
|
||||
|
||||
#define DEPTH 8
|
||||
#include "blizzard_template.h"
|
||||
#include "hw/blizzard_template.h"
|
||||
#define DEPTH 15
|
||||
#include "blizzard_template.h"
|
||||
#include "hw/blizzard_template.h"
|
||||
#define DEPTH 16
|
||||
#include "blizzard_template.h"
|
||||
#include "hw/blizzard_template.h"
|
||||
#define DEPTH 24
|
||||
#include "blizzard_template.h"
|
||||
#include "hw/blizzard_template.h"
|
||||
#define DEPTH 32
|
||||
#include "blizzard_template.h"
|
||||
#include "hw/blizzard_template.h"
|
||||
|
||||
void *s1d13745_init(qemu_irq gpio_int)
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#define HW_BOARDS_H
|
||||
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "qdev.h"
|
||||
#include "hw/qdev.h"
|
||||
|
||||
#define DEFAULT_MACHINE_OPTIONS \
|
||||
.boot_order = "cad"
|
||||
|
|
10
hw/bonito.c
10
hw/bonito.c
|
@ -39,11 +39,11 @@
|
|||
|
||||
#include <assert.h>
|
||||
|
||||
#include "hw.h"
|
||||
#include "pci/pci.h"
|
||||
#include "pc.h"
|
||||
#include "mips.h"
|
||||
#include "pci/pci_host.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/pci/pci.h"
|
||||
#include "hw/pc.h"
|
||||
#include "hw/mips.h"
|
||||
#include "hw/pci/pci_host.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
#include "qemu-common.h"
|
||||
#include "char/char.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "irq.h"
|
||||
#include "hw/irq.h"
|
||||
#include "bt/bt.h"
|
||||
#include "bt.h"
|
||||
#include "hw/bt.h"
|
||||
|
||||
struct csrhci_s {
|
||||
int enable;
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
|
||||
#include "qemu-common.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "usb.h"
|
||||
#include "hw/usb.h"
|
||||
#include "bt/bt.h"
|
||||
#include "bt.h"
|
||||
#include "hw/bt.h"
|
||||
|
||||
struct bt_hci_s {
|
||||
uint8_t *(*evt_packet)(void *opaque);
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
#include "qemu-common.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "ui/console.h"
|
||||
#include "hid.h"
|
||||
#include "bt.h"
|
||||
#include "hw/hid.h"
|
||||
#include "hw/bt.h"
|
||||
|
||||
enum hid_transaction_req {
|
||||
BT_HANDSHAKE = 0x0,
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "qemu-common.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "bt.h"
|
||||
#include "hw/bt.h"
|
||||
|
||||
#define L2CAP_CID_MAX 0x100 /* Between 0x40 and 0x10000 */
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "bt.h"
|
||||
#include "hw/bt.h"
|
||||
|
||||
struct bt_l2cap_sdp_state_s {
|
||||
struct bt_l2cap_conn_params_s *channel;
|
||||
|
|
2
hw/bt.c
2
hw/bt.c
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "qemu-common.h"
|
||||
#include "bt/bt.h"
|
||||
#include "bt.h"
|
||||
#include "hw/bt.h"
|
||||
|
||||
/* Slave implementations can ignore this */
|
||||
static void bt_dummy_lmp_mode_change(struct bt_link_s *link)
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include <zlib.h> /* For crc32 */
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "net/net.h"
|
||||
#include "net/checksum.h"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "qemu/timer.h"
|
||||
|
||||
#ifdef CADENCE_TTC_ERR_DEBUG
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "char/char.h"
|
||||
#include "qemu/timer.h"
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
*/
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "irq.h"
|
||||
#include "devices.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/devices.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
|
||||
//#define DEBUG
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#ifndef CCID_H
|
||||
#define CCID_H
|
||||
|
||||
#include "qdev.h"
|
||||
#include "hw/qdev.h"
|
||||
|
||||
typedef struct CCIDCardState CCIDCardState;
|
||||
typedef struct CCIDCardInfo CCIDCardInfo;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
here. */
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "scsi.h"
|
||||
#include "hw/scsi.h"
|
||||
|
||||
static void lba_to_msf(uint8_t *buf, int lba)
|
||||
{
|
||||
|
|
|
@ -26,11 +26,11 @@
|
|||
* Reference: Finn Thogersons' VGADOC4b
|
||||
* available at http://home.worldonline.dk/~finth/
|
||||
*/
|
||||
#include "hw.h"
|
||||
#include "pci/pci.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/pci/pci.h"
|
||||
#include "ui/console.h"
|
||||
#include "vga_int.h"
|
||||
#include "loader.h"
|
||||
#include "hw/vga_int.h"
|
||||
#include "hw/loader.h"
|
||||
|
||||
/*
|
||||
* TODO:
|
||||
|
@ -288,63 +288,63 @@ static void cirrus_bitblt_fill_nop(CirrusVGAState *s,
|
|||
|
||||
#define ROP_NAME 0
|
||||
#define ROP_FN(d, s) 0
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
#define ROP_NAME src_and_dst
|
||||
#define ROP_FN(d, s) (s) & (d)
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
#define ROP_NAME src_and_notdst
|
||||
#define ROP_FN(d, s) (s) & (~(d))
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
#define ROP_NAME notdst
|
||||
#define ROP_FN(d, s) ~(d)
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
#define ROP_NAME src
|
||||
#define ROP_FN(d, s) s
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
#define ROP_NAME 1
|
||||
#define ROP_FN(d, s) ~0
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
#define ROP_NAME notsrc_and_dst
|
||||
#define ROP_FN(d, s) (~(s)) & (d)
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
#define ROP_NAME src_xor_dst
|
||||
#define ROP_FN(d, s) (s) ^ (d)
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
#define ROP_NAME src_or_dst
|
||||
#define ROP_FN(d, s) (s) | (d)
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
#define ROP_NAME notsrc_or_notdst
|
||||
#define ROP_FN(d, s) (~(s)) | (~(d))
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
#define ROP_NAME src_notxor_dst
|
||||
#define ROP_FN(d, s) ~((s) ^ (d))
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
#define ROP_NAME src_or_notdst
|
||||
#define ROP_FN(d, s) (s) | (~(d))
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
#define ROP_NAME notsrc
|
||||
#define ROP_FN(d, s) (~(s))
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
#define ROP_NAME notsrc_or_dst
|
||||
#define ROP_FN(d, s) (~(s)) | (d)
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
#define ROP_NAME notsrc_and_notdst
|
||||
#define ROP_FN(d, s) (~(s)) & (~(d))
|
||||
#include "cirrus_vga_rop.h"
|
||||
#include "hw/cirrus_vga_rop.h"
|
||||
|
||||
static const cirrus_bitblt_rop_t cirrus_fwd_rop[16] = {
|
||||
cirrus_bitblt_rop_fwd_0,
|
||||
|
@ -2165,13 +2165,13 @@ static void cirrus_cursor_invalidate(VGACommonState *s1)
|
|||
}
|
||||
|
||||
#define DEPTH 8
|
||||
#include "cirrus_vga_template.h"
|
||||
#include "hw/cirrus_vga_template.h"
|
||||
|
||||
#define DEPTH 16
|
||||
#include "cirrus_vga_template.h"
|
||||
#include "hw/cirrus_vga_template.h"
|
||||
|
||||
#define DEPTH 32
|
||||
#include "cirrus_vga_template.h"
|
||||
#include "hw/cirrus_vga_template.h"
|
||||
|
||||
static void cirrus_cursor_draw_line(VGACommonState *s1, uint8_t *d1, int scr_y)
|
||||
{
|
||||
|
|
|
@ -191,16 +191,16 @@ glue(glue(cirrus_bitblt_rop_bkwd_transp_, ROP_NAME),_16)(CirrusVGAState *s,
|
|||
}
|
||||
|
||||
#define DEPTH 8
|
||||
#include "cirrus_vga_rop2.h"
|
||||
#include "hw/cirrus_vga_rop2.h"
|
||||
|
||||
#define DEPTH 16
|
||||
#include "cirrus_vga_rop2.h"
|
||||
#include "hw/cirrus_vga_rop2.h"
|
||||
|
||||
#define DEPTH 24
|
||||
#include "cirrus_vga_rop2.h"
|
||||
#include "hw/cirrus_vga_rop2.h"
|
||||
|
||||
#define DEPTH 32
|
||||
#include "cirrus_vga_rop2.h"
|
||||
#include "hw/cirrus_vga_rop2.h"
|
||||
|
||||
#undef ROP_NAME
|
||||
#undef ROP_OP
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
# Boards
|
||||
obj-y = cris_pic_cpu.o
|
||||
obj-y += cris-boot.o
|
||||
obj-y += axis_dev88.o
|
||||
|
||||
# IO blocks
|
||||
obj-y += etraxfs_dma.o
|
||||
obj-y += etraxfs_pic.o
|
||||
|
@ -11,3 +6,8 @@ obj-y += etraxfs_timer.o
|
|||
obj-y += etraxfs_ser.o
|
||||
|
||||
obj-y := $(addprefix ../,$(obj-y))
|
||||
|
||||
# Boards
|
||||
obj-y += pic_cpu.o
|
||||
obj-y += boot.o
|
||||
obj-y += axis_dev88.o
|
||||
|
|
|
@ -22,14 +22,14 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "net/net.h"
|
||||
#include "flash.h"
|
||||
#include "boards.h"
|
||||
#include "etraxfs.h"
|
||||
#include "loader.h"
|
||||
#include "hw/flash.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/etraxfs.h"
|
||||
#include "hw/loader.h"
|
||||
#include "elf.h"
|
||||
#include "cris-boot.h"
|
||||
#include "hw/cris-boot.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
|
@ -22,10 +22,10 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "hw.h"
|
||||
#include "loader.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/loader.h"
|
||||
#include "elf.h"
|
||||
#include "cris-boot.h"
|
||||
#include "hw/cris-boot.h"
|
||||
|
||||
static void main_cpu_reset(void *opaque)
|
||||
{
|
|
@ -22,9 +22,9 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw.h"
|
||||
#include "etraxfs.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/etraxfs.h"
|
||||
|
||||
#define D(x)
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "sysbus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "trace.h"
|
||||
|
||||
/*
|
||||
|
|
|
@ -21,11 +21,11 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
#include "hw.h"
|
||||
#include "audiodev.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/audiodev.h"
|
||||
#include "audio/audio.h"
|
||||
#include "isa.h"
|
||||
#include "qdev.h"
|
||||
#include "hw/isa.h"
|
||||
#include "hw/qdev.h"
|
||||
#include "qemu/timer.h"
|
||||
|
||||
/*
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
#include "hw.h"
|
||||
#include "ppc/mac.h"
|
||||
#include "adb.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/ppc/mac.h"
|
||||
#include "hw/adb.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "hw/dataplane/ioq.h"
|
||||
#include "ioq.h"
|
||||
|
||||
void ioq_init(IOQueue *ioq, int fd, unsigned int max_reqs)
|
||||
{
|
||||
|
|
|
@ -15,9 +15,11 @@
|
|||
#include "trace.h"
|
||||
#include "qemu/iov.h"
|
||||
#include "qemu/thread.h"
|
||||
#include "qemu/error-report.h"
|
||||
#include "vring.h"
|
||||
#include "ioq.h"
|
||||
#include "migration/migration.h"
|
||||
#include "block/block.h"
|
||||
#include "hw/virtio-blk.h"
|
||||
#include "hw/dataplane/virtio-blk.h"
|
||||
#include "block/aio.h"
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
*/
|
||||
|
||||
#include "trace.h"
|
||||
#include "hw/dataplane/vring.h"
|
||||
#include "vring.h"
|
||||
#include "qemu/error-report.h"
|
||||
|
||||
/* Map the guest's vring to host memory */
|
||||
bool vring_setup(Vring *vring, VirtIODevice *vdev, int n)
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include <linux/virtio_ring.h>
|
||||
#include "qemu-common.h"
|
||||
#include "hw/dataplane/hostmem.h"
|
||||
#include "hostmem.h"
|
||||
#include "hw/virtio.h"
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -24,10 +24,10 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "hw.h"
|
||||
#include "hw/hw.h"
|
||||
#include "char/char.h"
|
||||
#include "isa.h"
|
||||
#include "pc.h"
|
||||
#include "hw/isa.h"
|
||||
#include "hw/pc.h"
|
||||
|
||||
#define TYPE_ISA_DEBUGCON_DEVICE "isa-debugcon"
|
||||
#define ISA_DEBUGCON_DEVICE(obj) \
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue