Adding upstream version 1:10.0.2+ds.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
bf2768bd0f
commit
ea34ddeea6
37998 changed files with 9510514 additions and 0 deletions
63
include/hw/sparc/sparc32_dma.h
Normal file
63
include/hw/sparc/sparc32_dma.h
Normal file
|
@ -0,0 +1,63 @@
|
|||
#ifndef SPARC32_DMA_H
|
||||
#define SPARC32_DMA_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/scsi/esp.h"
|
||||
#include "hw/net/lance.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
#define DMA_REGS 4
|
||||
|
||||
#define TYPE_SPARC32_DMA_DEVICE "sparc32-dma-device"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(DMADeviceState, SPARC32_DMA_DEVICE)
|
||||
|
||||
|
||||
struct DMADeviceState {
|
||||
SysBusDevice parent_obj;
|
||||
|
||||
MemoryRegion iomem;
|
||||
uint32_t dmaregs[DMA_REGS];
|
||||
qemu_irq irq;
|
||||
void *iommu;
|
||||
qemu_irq gpio[2];
|
||||
};
|
||||
|
||||
#define TYPE_SPARC32_ESPDMA_DEVICE "sparc32-espdma"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(ESPDMADeviceState, SPARC32_ESPDMA_DEVICE)
|
||||
|
||||
struct ESPDMADeviceState {
|
||||
DMADeviceState parent_obj;
|
||||
|
||||
SysBusESPState esp;
|
||||
};
|
||||
|
||||
#define TYPE_SPARC32_LEDMA_DEVICE "sparc32-ledma"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(LEDMADeviceState, SPARC32_LEDMA_DEVICE)
|
||||
|
||||
struct LEDMADeviceState {
|
||||
DMADeviceState parent_obj;
|
||||
|
||||
SysBusPCNetState lance;
|
||||
};
|
||||
|
||||
#define TYPE_SPARC32_DMA "sparc32-dma"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(SPARC32DMAState, SPARC32_DMA)
|
||||
|
||||
struct SPARC32DMAState {
|
||||
SysBusDevice parent_obj;
|
||||
|
||||
MemoryRegion dmamem;
|
||||
MemoryRegion ledma_alias;
|
||||
ESPDMADeviceState espdma;
|
||||
LEDMADeviceState ledma;
|
||||
};
|
||||
|
||||
/* sparc32_dma.c */
|
||||
void ledma_memory_read(void *opaque, hwaddr addr,
|
||||
uint8_t *buf, int len, int do_bswap);
|
||||
void ledma_memory_write(void *opaque, hwaddr addr,
|
||||
uint8_t *buf, int len, int do_bswap);
|
||||
void espdma_memory_read(void *opaque, uint8_t *buf, int len);
|
||||
void espdma_memory_write(void *opaque, uint8_t *buf, int len);
|
||||
|
||||
#endif
|
12
include/hw/sparc/sparc64.h
Normal file
12
include/hw/sparc/sparc64.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
#ifndef HW_SPARC_SPARC64_H
|
||||
#define HW_SPARC_SPARC64_H
|
||||
|
||||
#include "target/sparc/cpu-qom.h"
|
||||
|
||||
#define IVEC_MAX 0x40
|
||||
|
||||
SPARCCPU *sparc64_cpu_devinit(const char *cpu_type, uint64_t prom_addr);
|
||||
|
||||
void sparc64_cpu_set_ivec_irq(void *opaque, int irq, int level);
|
||||
|
||||
#endif
|
53
include/hw/sparc/sun4m_iommu.h
Normal file
53
include/hw/sparc/sun4m_iommu.h
Normal file
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
* QEMU Sun4m iommu emulation
|
||||
*
|
||||
* Copyright (c) 2003-2005 Fabrice Bellard
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef SUN4M_IOMMU_H
|
||||
#define SUN4M_IOMMU_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
#define IOMMU_NREGS (4 * 4096 / 4)
|
||||
|
||||
struct IOMMUState {
|
||||
SysBusDevice parent_obj;
|
||||
|
||||
AddressSpace iommu_as;
|
||||
IOMMUMemoryRegion iommu;
|
||||
|
||||
MemoryRegion iomem;
|
||||
uint32_t regs[IOMMU_NREGS];
|
||||
hwaddr iostart;
|
||||
qemu_irq irq;
|
||||
uint32_t version;
|
||||
};
|
||||
typedef struct IOMMUState IOMMUState;
|
||||
|
||||
#define TYPE_SUN4M_IOMMU "sun4m-iommu"
|
||||
DECLARE_INSTANCE_CHECKER(IOMMUState, SUN4M_IOMMU,
|
||||
TYPE_SUN4M_IOMMU)
|
||||
|
||||
#define TYPE_SUN4M_IOMMU_MEMORY_REGION "sun4m-iommu-memory-region"
|
||||
|
||||
#endif
|
52
include/hw/sparc/sun4u_iommu.h
Normal file
52
include/hw/sparc/sun4u_iommu.h
Normal file
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* QEMU sun4u IOMMU emulation
|
||||
*
|
||||
* Copyright (c) 2006 Fabrice Bellard
|
||||
* Copyright (c) 2012,2013 Artyom Tarasenko
|
||||
* Copyright (c) 2017 Mark Cave-Ayland
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef SUN4U_IOMMU_H
|
||||
#define SUN4U_IOMMU_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
#define IOMMU_NREGS 3
|
||||
|
||||
struct IOMMUState {
|
||||
SysBusDevice parent_obj;
|
||||
|
||||
AddressSpace iommu_as;
|
||||
IOMMUMemoryRegion iommu;
|
||||
|
||||
MemoryRegion iomem;
|
||||
uint64_t regs[IOMMU_NREGS];
|
||||
};
|
||||
typedef struct IOMMUState IOMMUState;
|
||||
|
||||
#define TYPE_SUN4U_IOMMU "sun4u-iommu"
|
||||
DECLARE_INSTANCE_CHECKER(IOMMUState, SUN4U_IOMMU,
|
||||
TYPE_SUN4U_IOMMU)
|
||||
|
||||
#define TYPE_SUN4U_IOMMU_MEMORY_REGION "sun4u-iommu-memory-region"
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue