forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
m68k: introduce a virtual m68k machine
This machine allows to have up to 3.2 GiB and 128 Virtio devices. It is based on android goldfish devices. Signed-off-by: Laurent Vivier <laurent@vivier.eu>
- Loading branch information
1 parent
376e3fd
commit 02e0dce
Showing
18 changed files
with
626 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
CONFIG_LOCALVERSION="-virt" | ||
CONFIG_SYSVIPC=y | ||
CONFIG_CGROUPS=y | ||
CONFIG_BLK_CGROUP=y | ||
CONFIG_CGROUP_SCHED=y | ||
CONFIG_CGROUP_PIDS=y | ||
CONFIG_CGROUP_RDMA=y | ||
CONFIG_CGROUP_FREEZER=y | ||
CONFIG_CGROUP_DEVICE=y | ||
CONFIG_CGROUP_CPUACCT=y | ||
CONFIG_VIRT=y | ||
CONFIG_PROC_HARDWARE=y | ||
CONFIG_PARTITION_ADVANCED=y | ||
CONFIG_AMIGA_PARTITION=y | ||
CONFIG_ATARI_PARTITION=y | ||
CONFIG_MAC_PARTITION=y | ||
CONFIG_BSD_DISKLABEL=y | ||
CONFIG_MINIX_SUBPARTITION=y | ||
CONFIG_SOLARIS_X86_PARTITION=y | ||
CONFIG_UNIXWARE_DISKLABEL=y | ||
CONFIG_LDM_PARTITION=y | ||
CONFIG_LDM_DEBUG=y | ||
CONFIG_SUN_PARTITION=y | ||
CONFIG_SYSV68_PARTITION=y | ||
CONFIG_NET=y | ||
CONFIG_PACKET=y | ||
CONFIG_UNIX=y | ||
CONFIG_INET=y | ||
CONFIG_IP_PNP=y | ||
CONFIG_IP_PNP_DHCP=y | ||
CONFIG_IP_PNP_BOOTP=y | ||
CONFIG_CGROUP_NET_PRIO=y | ||
CONFIG_CGROUP_NET_CLASSID=y | ||
CONFIG_NET_9P=y | ||
CONFIG_NET_9P_VIRTIO=y | ||
CONFIG_DEVTMPFS=y | ||
CONFIG_BLK_DEV_LOOP=y | ||
CONFIG_BLK_DEV_RAM=y | ||
CONFIG_VIRTIO_BLK=y | ||
CONFIG_SCSI=y | ||
CONFIG_BLK_DEV_SR=y | ||
CONFIG_SCSI_VIRTIO=y | ||
CONFIG_NETDEVICES=y | ||
CONFIG_VIRTIO_NET=y | ||
CONFIG_INPUT_MOUSEDEV=y | ||
CONFIG_INPUT_EVDEV=y | ||
CONFIG_VIRTIO_CONSOLE=y | ||
CONFIG_HW_RANDOM_VIRTIO=y | ||
CONFIG_DRM=y | ||
CONFIG_DRM_VIRTIO_GPU=y | ||
CONFIG_FB=y | ||
CONFIG_VIRT_DRIVERS=y | ||
CONFIG_VIRTIO_INPUT=y | ||
CONFIG_EXT4_FS=y | ||
CONFIG_AUTOFS_FS=y | ||
CONFIG_ISO9660_FS=y | ||
CONFIG_JOLIET=y | ||
CONFIG_ZISOFS=y | ||
CONFIG_UDF_FS=y | ||
CONFIG_TMPFS=y | ||
CONFIG_TMPFS_POSIX_ACL=y | ||
CONFIG_9P_FS=y | ||
CONFIG_9P_FS_POSIX_ACL=y | ||
CONFIG_9P_FS_SECURITY=y | ||
CONFIG_EARLY_PRINTK=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
#ifndef __ASM_VIRT_H | ||
#define __ASM_VIRT_H | ||
|
||
#define NUM_VIRT_SOURCES 200 | ||
|
||
struct virt_booter_device_data { | ||
unsigned long mmio; | ||
unsigned long irq; | ||
}; | ||
|
||
struct virt_booter_data { | ||
unsigned long qemu_version; | ||
struct virt_booter_device_data pic; | ||
struct virt_booter_device_data rtc; | ||
struct virt_booter_device_data tty; | ||
struct virt_booter_device_data ctrl; | ||
struct virt_booter_device_data virtio; | ||
}; | ||
|
||
extern struct virt_booter_data virt_bi_data; | ||
|
||
extern void __init virt_init_IRQ(void); | ||
extern void __init virt_sched_init(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | ||
/* | ||
* asm/bootinfo-virt.h -- Virtual-m68k-specific boot information definitions | ||
*/ | ||
|
||
#ifndef _UAPI_ASM_M68K_BOOTINFO_VIRT_H | ||
#define _UAPI_ASM_M68K_BOOTINFO_VIRT_H | ||
|
||
#define BI_VIRT_QEMU_VERSION 0x8000 | ||
#define BI_VIRT_GF_PIC_BASE 0x8001 | ||
#define BI_VIRT_GF_RTC_BASE 0x8002 | ||
#define BI_VIRT_GF_TTY_BASE 0x8003 | ||
#define BI_VIRT_VIRTIO_BASE 0x8004 | ||
#define BI_VIRT_CTRL_BASE 0x8005 | ||
|
||
#define VIRT_BOOTI_VERSION MK_BI_VERSION(2, 0) | ||
|
||
#endif /* _UAPI_ASM_M68K_BOOTINFO_MAC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.