Statistics
| Branch: | Revision:

root / hw / pc.h @ 89c473fd

History | View | Annotate | Download (6.4 kB)

# Date Author Comment
64d7e9a4 02/20/2011 11:35 am Blue Swirl

i8254: convert to qdev

Convert to qdev. Don't expose PITState.

Signed-off-by: Blue Swirl <>

c74b88df 02/20/2011 11:34 am Blue Swirl

vga-isa: make optional

Ignore failure with vga-isa device creation, but print a warning
message.

Signed-off-by: Blue Swirl <>

7435b791 02/20/2011 11:34 am Blue Swirl

vga-isa: convert to qdev

Signed-off-by: Blue Swirl <>

63ffb564 02/20/2011 11:33 am Blue Swirl

fdc: refactor device creation

Turn fdc_init_isa into an inline function.

Get floppy geometry directly from the drives.

Don't expose FDCtrl.

Signed-off-by: Blue Swirl <>

9b13ef9f 02/20/2011 11:33 am Blue Swirl

serial: make optional

Ignore failure with serial device creation.

Signed-off-by: Blue Swirl <>

e22cf21e 02/20/2011 11:32 am Blue Swirl

serial: refactor device creation

Turn serial_init into an inline function.

Signed-off-by: Blue Swirl <>

cd1b8a8b 02/20/2011 11:32 am Blue Swirl

ne2000_isa: make optional

Ignore failure with ne2000_isa device creation.

Signed-off-by: Blue Swirl <>

60a14ad3 02/20/2011 11:32 am Blue Swirl

ne2000_isa: refactor device creation

Turn isa_ne2000_init into an inline function.

Signed-off-by: Blue Swirl <>

73531538 02/20/2011 11:31 am Blue Swirl

parallel: make optional

Ignore failure with parallel device creation.

Signed-off-by: Blue Swirl <>

defdb20e 02/20/2011 11:31 am Blue Swirl

parallel: refactor device creation

Turn parallel_init into an inline function.

Don't expose ParallelState.

Signed-off-by: Blue Swirl <>

86d86414 02/12/2011 11:43 am Blue Swirl

x86: make vmmouse optional

Compile vmmouse in hwlib. Ignore failure if vmmouse device can't be
created.

Signed-off-by: Blue Swirl <>

91c9e091 02/12/2011 11:34 am Blue Swirl

vmmouse: convert to qdev

Convert to qdev, also add a proper reset function.

Signed-off-by: Blue Swirl <>

6872ef61 02/12/2011 10:28 am Blue Swirl

vmport: convert to qdev

Signed-off-by: Blue Swirl <>

0dfa5ef9 01/25/2011 10:18 am Isaku Yamahata

audio: consolidate audio_init()

consolidate audio_init() and remove references to shoundhw.

Signed-off-by: Isaku Yamahata <>
Acked-by: Blue Swirl <>
Signed-off-by: Aurelien Jarno <>

78895427 11/16/2010 04:40 pm Gerd Hoffmann

more stdvga cleanups.

video.x is gone now. It was the only user of the
vga bios_offset + bios_size logic. Zap it.

Signed-off-by: Gerd Hoffmann <>

c0897e0c 07/02/2010 02:18 pm Markus Armbruster

pc: Fix CMOS info for drives defined with -device

Drives defined with drive if=ide get get created along with the IDE
controller, inside machine
>init(). That's before cmos_init().
Drives defined with -device get created during generic device init.
That's after cmos_init(). Because of that, CMOS has no information on...

96051119 06/19/2010 10:41 am Blue Swirl

ioapic: convert to qdev

Convert to qdev.

Signed-off-by: Blue Swirl <>

97679527 05/28/2010 10:33 pm Avi Kivity

Fix overflow in i440fx_init()

The ram_size parameter can be larger than an int, so it may be truncated.

Fix by using the correct type.

Signed-off-by: Avi Kivity <>
Signed-off-by: Aurelien Jarno <>

956a3e6b 05/22/2010 10:59 am Blue Swirl

Compile pckbd only once

Use a qemu_irq to indicate A20 line changes. Move I/O port 92
to pckbd.c.

Signed-off-by: Blue Swirl <>

ac404095 05/15/2010 07:28 pm Isaku Yamahata

pci hotadd, acpi_piix4: remove global variables

remove global variables, gpe and pci0_status by moving them
into PIIX4PMState.

Signed-off-by: Blue Swirl <>
Signed-off-by: Isaku Yamahata <>
Acked-by: Gerd Hoffmann <>...

1d914fa0 05/15/2010 07:21 pm Isaku Yamahata

rtc: make rtc_xxx accept/return ISADevice instead of RTCState.

To match rtc_xxx with qdev, make rtc_xxx accept and return ISADevice
instead of RTCState.

Signed-off-by: Isaku Yamahata <>
Acked-by: Gerd Hoffmann <>
Signed-off-by: Blue Swirl <>

e1460e47 05/15/2010 07:20 pm Isaku Yamahata

pc: move rtc declarations from pc.h into a dedicated header file.

Move rtc_xxx declarations from pc.h into mc146818rtc.h.

Signed-off-by: Isaku Yamahata <>
Acked-by: Gerd Hoffmann <>
Signed-off-by: Blue Swirl <>

845773ab 05/15/2010 06:53 pm Isaku Yamahata

pc: split out piix specific part from pc.c into pc_piix.c

Finally, we can safely split out the piix specific part from pc.c
into pc_piix.c.

Signed-off-by: Isaku Yamahata <>
Acked-by: Gerd Hoffmann <>
Signed-off-by: Blue Swirl <>

8e78eb28 05/15/2010 06:42 pm Isaku Yamahata

pc: make pc_init1() not refer ferr_irq directly.

By introducing a registering function, make pc_init1() not refer to
ferr_irq directly in order to make ferr_irq piix independent.
Later pc_init1() will be split out into another file keeping ferr_irq
static....

f885f1ea 05/15/2010 06:33 pm Isaku Yamahata

pc, i440fx: Make smm enable/disable function i440fx independent.

make cpu_smm_update() generic to be independent on i440fx by
registering a callback.

Signed-off-by: Isaku Yamahata <>
Acked-by: Gerd Hoffmann <>
Signed-off-by: Blue Swirl <>

ec5f92ce 05/04/2010 12:03 am Bernhard M. Wiedemann

hw: better i440 emulation

updated version of an old patch
http://xenon.stanford.edu/~eswierk/misc/qemu-linuxbios/qemu-piix-ram-size.patch
that together with
http://www.mail-archive.com/linuxbios@linuxbios.org/msg02390.html
(which is already in coreboot trunk) allows coreboot to autodetect the amount of RAM within qemu/kvm from a register in i440 northbridge....

53b67b30 03/29/2010 10:23 pm Blue Swirl

Compile acpi only once

Use qemu_irqs to trigger CMOS S3 and SMI events.

Avoid using kvm.h, which uses CPUState.

Signed-off-by: Blue Swirl <>

2d48377a 03/21/2010 09:47 pm Blue Swirl

Compile serial only once

Push TARGET_WORDS_BIGENDIAN dependency to board level.

Signed-off-by: Blue Swirl <>

aa28b9bf 03/21/2010 09:46 pm Blue Swirl

Move x86 specific PC declarations to a separate file

x86 definitions (especially CPUState uses) prevent many files from
being compiled within libhw.

Move x86 specific declarations (APIC stuff) to a separate file.

Signed-off-by: Blue Swirl <>

35bed8ee 03/01/2010 05:29 am Paul Brook

Move ioport.h out of cpu-all.h

Only include ioport.h where it is actually needed.

Signed-off-by: Paul Brook <>

4c5b10b7 02/19/2010 11:53 pm Jes Sorensen

QEMU e820 reservation patch

Hi,

Kevin and I have agreed on the approach for this one now. So here is
the latest version of the patch for QEMU, submitting e820 reservation
entries via fw_cfg.

Cheers,
Jes

Use qemu-cfg to provide the BIOS with an optional table of e820 entries....

038eaf82 11/12/2009 07:23 pm Stefan Weil

serial: Add interface to set reference oscillator frequency

Many (most?) serial interfaces have a programmable
clock which provides the reference frequency ("baudbase").
So a fixed baudbase which is only set once can be wrong.

omap1.c is an example which could use the new interface...

73c595e1 10/27/2009 07:28 pm Juan Quintela

mc146818rtc: remove rtc_mm_init()

It was used for Acer Pica 61 emulation, removed in 2008
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

ac0be998 10/05/2009 05:32 pm Gerd Hoffmann

serial: convert isa to qdev

Everything using standard isa I/O ports and IRQ windup is considerd
being an actual isa device. That are all serial_init() users except
mips_mipssim() which seems to have a non-standard IRQ windup.

baud rate is fixed at 115200 now as no caller passed in something else....

3f84865a 10/05/2009 05:32 pm Gerd Hoffmann

pci: windup acpi-based hotplug

Switch over acpi-based PCI hotplug for pc over to the new
qdev-based pci hotplugging.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

021f0674 10/05/2009 05:32 pm Gerd Hoffmann

parallel: convert isa to qdev

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

c227f099 10/02/2009 12:12 am Anthony Liguori

Revert "Get rid of _t suffix"

In the very least, a change like this requires discussion on the list.

The naming convention is goofy and it causes a massive merge problem. Something
like this must be presented on the list first so people can provide input...

99a0949b 10/01/2009 09:45 pm malc

Get rid of _t suffix

Some not so obvious bits, slirp and Xen were left alone for the time
being.

Signed-off-by: malc <>

9453c5bc 09/10/2009 06:48 pm Gerd Hoffmann

qdev/isa: convert ne2000

Also split the isa bits into a separate source file, so we don't drag in
a dependency for isa-bus.o for machines which want ne2k_pci only.

Signed-off-by: Gerd Hoffmann <>

32e0c826 09/10/2009 06:48 pm Gerd Hoffmann

qdev/isa: convert real time clock

Signed-off-by: Gerd Hoffmann <>

85a750ca 09/04/2009 05:37 pm Juan Quintela

Fold piix3_init() intto i440fx_init

i440fx_init will now work properly if we don't setup piix3

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

0a3bacf3 09/04/2009 05:37 pm Juan Quintela

Use PCII440FXState instead of generic PCIDevice

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

823e675a 09/04/2009 05:37 pm Juan Quintela

Split piix4 support from piix_pci.c

Now mips_malta uses piix4 and pc's use piix_pci definitions

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

ec82026c 08/28/2009 04:43 am Gerd Hoffmann

ide: split away ide-isa.c

create ide-isa.c and place isa bus support there.
only build ide-isa support for platforms using it.
also create ide.h header file.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

977e1244 08/28/2009 04:43 am Gerd Hoffmann

ide: split away ide-pci.c

create ide-pci.c and place pci bus support there.
only build ide-pci support for platforms using it.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

Fix build (merge with isa mmio split)

1632dc6a 08/24/2009 04:01 pm Avi Kivity

Route IOAPIC interrupts via ISA bus

Instead of calling the IOAPIC from the PIC, raise IOAPIC irqs via the ISA bus.
As a side effect, IOAPIC lines 16-23 are enabled.

Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

802670e6 08/15/2009 05:27 pm Blue Swirl

PPC: clean up ppc405

Rely on the subpage system instead of the local version.
Make most functions "static".
Fix wrong parameter passed to ppc4xx_pob_reset.

Signed-off-by: Blue Swirl <>

9d5e77a2 06/22/2009 06:15 pm Isaku Yamahata

acpi.c: make qemu_system_device_hot_add piix independent.

introruce piix4_device_hot_add() for piix4 specific code
and make qemu_system_device_hot_add() generic.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Anthony Liguori <>

678e12cc 06/14/2009 03:19 am Gleb Natapov

Don't use cpu_index as apic_id.

(patch is on top of "Apic creation should not depend on pci" series)

Currently cpu_index is used as cpu apic id on x86. This is incorrect
since apic ids not have to be continuous (they can also encode cpu
hierarchy information). This patch uses cpuid_apic_id for initial apic id...

fbe1b595 05/13/2009 07:56 pm Paul Brook

Remove vga_ram_size

The vga_ram_size argument to machine init functions always has the same
value, and is ignored by many machines (including SPARC32 which has an
obsolete ifdef for VGA_RAM_SIZE).

Remove it and push VGA_RAM_SIZE into vga_int.h.

Signed-off-by: Paul Brook <>

22d83b14 05/12/2009 02:33 pm Paul Brook

Push AUD_init down to devices

Now we can safely call AUD_init multiple times we can push it down to
individual audio devices, rather than having to pass it from the board
init.

Signed-off-by: Paul Brook <>

b584726d 04/10/2009 05:24 am pbrook

Clean up VGA ram allocation.

Signed-off-by: Paul Brook <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7063 c046a42c-6fe2-441c-8c8c-71466251a162

100d9891 04/08/2009 01:28 am aurel32

mc146818: add square wave output support

This is necessary for es40 as the sqw output is directly connected to the
core chipset.

Signed-off-by: Tristan Gingold <>
Signed-off-by: Aurelien Jarno <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7031 c046a42c-6fe2-441c-8c8c-71466251a162

610626af 03/12/2009 10:25 pm aliguori

From 67e94ae77f8de4d5d822917f1723cefa7ebfb64d Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <>
Date: Tue, 3 Mar 2009 13:33:13 +0800
Subject: [PATCH] Split ioapic logic from the current apic.

Add a new ioapic.c to hold ioapic's logic, and also...

80deece2 03/07/2009 05:50 pm blueswir1

Sparse fixes: move ACPI table definitions to pc.h

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6738 c046a42c-6fe2-441c-8c8c-71466251a162

376253ec 03/06/2009 01:01 am aliguori

monitor: Rework API (Jan Kiszka)

Refactor the monitor API and prepare it for decoupled terminals:
term_print functions are renamed to monitor_* and all monitor services
gain a new parameter (mon) that will once refer to the monitor instance
the output is supposed to appear on. However, the argument remains...

8a92ea2f 02/27/2009 10:12 pm aliguori

Allow additions of ACPI tables from command line (Gleb Natapov)

This is needed to dynamically add SLIC tables with Windows
activation keys.

Signed-off-by: Gleb Natapov <>
Signed-off-by: Anthony Liguori <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6650 c046a42c-6fe2-441c-8c8c-71466251a162

17605071 02/12/2009 07:29 pm blueswir1

Fix Sparc64 VGA memory size bug exposed by r6604

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6618 c046a42c-6fe2-441c-8c8c-71466251a162

42fc73a1 01/24/2009 08:06 pm aurel32

Support epoch of 1980 in RTC emulation for MIPS Magnum

On the MIPS Magnum, the time that is held in the RTC's NVRAM should be
relative to midnight on 1980-01-01. This patch adds an extra parameter
to rtc_init(), allowing different epochs to be used. For the Magnum,...

3023f332 01/16/2009 09:04 pm aliguori

graphical_console_init change (Stefano Stabellini)

Patch 5/7

This patch changes the graphical_console_init function to return an
allocated DisplayState instead of a QEMUConsole.

This patch contains just the graphical_console_init change and few other
modifications mainly in console.c and vl.c....

73822ec8 01/15/2009 10:11 pm aliguori

Add -rtc-td-hack option to fix time drift with RTC on Windows (Gleb Natapov)

After my last patch to fix interrupt coalescing was rejected
on the basis that it is too intrusive we decided to make the
fix much more localized and only fix the problem for RTC time...

bf4f74c0 12/19/2008 12:42 am aurel32

Fix warnings introduced by commit 6081

Signed-off-by: Aurelien Jarno <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6084 c046a42c-6fe2-441c-8c8c-71466251a162

16b29ae1 12/18/2008 01:28 am aliguori

Add HPET emulation to qemu (Beth Kon)

This patch adds HPET emulation. It can be disabled with -disable-hpet. An hpet
provides a more finely granular clocksource than otherwise available on PC.
This means that latency-dependent applications (e.g. multimedia) will generally...

0bacd130 12/18/2008 12:32 am aliguori

Handle suspend in qemu (Gleb Natapov)

Reset a PC and tell BIOS that resume from ram is required on the next boot.

Signed-off-by: Gleb Natapov <>
Signed-off-by: Anthony Liguori <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6080 c046a42c-6fe2-441c-8c8c-71466251a162

4efbe58f 12/10/2008 05:02 pm aurel32

MIPS Magnum: fix memory-mapped i8042

Current implementation of memory-mapped i8042 controller is atm
implemented with an interface shift (it_shift) parameter, like most all
memory-mapped devices in Qemu.
However, this isn't suitable for MIPS Magnum, where i8042 controller is at...

4efe2755 11/24/2008 09:33 pm aliguori

better type checking for vga (Glauber Costa)

unsigned long is too bad of a type. Use ram_addr_t instead.

aligurori: fixed a compile warning in this patch

Signed-off-by: Glauber Costa <>
Signed-off-by: Anthony Liguori <>...

b1d8e52e 10/26/2008 03:43 pm blueswir1

Fix undeclared symbol warnings from sparse

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5539 c046a42c-6fe2-441c-8c8c-71466251a162

cb5a7aa8 09/28/2008 03:42 am malc

Optional "precise" VGA retrace support

Selected via: -vga <name>,retrace=precise

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5336 c046a42c-6fe2-441c-8c8c-71466251a162

1a7de94a 08/21/2008 06:14 am aurel32

De-assert PIC IRQs properly at APIC level

[ Taking latest isapc changes into account. ]

Ensure that PIC-delivered IRQs are properly de-asserted in case the APIC
is in EXTINT or FIXED mode (with level-triggering selected) on LINT0.
Fixes EFI-BIOS boot issues....

b6cd0ea1 05/05/2008 12:42 am aurel32

8250: Customized base baudrate

(Jan Kiszka)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4336 c046a42c-6fe2-441c-8c8c-71466251a162

a5b38b51 04/13/2008 07:08 pm aurel32

x86: Rework local IRQ delivery for APICs

(Jan Kiszka)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4207 c046a42c-6fe2-441c-8c8c-71466251a162

26fb5e48 04/07/2008 10:47 pm aurel32

Fix vmmouse with -smp

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4165 c046a42c-6fe2-441c-8c8c-71466251a162

cf7a2fe2 03/18/2008 08:53 am aurel32

SCI fixes

(Anthony Liguori)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4081 c046a42c-6fe2-441c-8c8c-71466251a162

87ecb68b 11/17/2007 07:14 pm pbrook

Break up vl.h.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3674 c046a42c-6fe2-441c-8c8c-71466251a162