[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 22/23] hpet: add API to find it
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v4 22/23] hpet: add API to find it |
Date: |
Sun, 22 Sep 2013 21:22:09 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 |
Il 22/09/2013 15:38, Michael S. Tsirkin ha scritto:
> Add API to find HPET using QOM.
>
> Signed-off-by: Michael S. Tsirkin <address@hidden>
> ---
> include/hw/timer/hpet.h | 2 ++
> hw/timer/hpet.c | 5 +++++
> 2 files changed, 7 insertions(+)
>
> diff --git a/include/hw/timer/hpet.h b/include/hw/timer/hpet.h
> index 757f79f..ab44bd3 100644
> --- a/include/hw/timer/hpet.h
> +++ b/include/hw/timer/hpet.h
> @@ -71,4 +71,6 @@ struct hpet_fw_config
> } QEMU_PACKED;
>
> extern struct hpet_fw_config hpet_cfg;
> +
> +bool hpet_find(void);
> #endif
> diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c
> index fcd22ae..676bd7d 100644
> --- a/hw/timer/hpet.c
> +++ b/hw/timer/hpet.c
> @@ -757,6 +757,11 @@ static void hpet_device_class_init(ObjectClass *klass,
> void *data)
> dc->props = hpet_device_properties;
> }
>
> +bool hpet_find(void)
> +{
> + return object_resolve_path_type("", "hpet", NULL);
s/"hpet"/TYPE_HPET/
Paolo
> +}
> +
> static const TypeInfo hpet_device_info = {
> .name = TYPE_HPET,
> .parent = TYPE_SYS_BUS_DEVICE,
>
- [Qemu-devel] [PATCH v4 16/23] loader: allow adding ROMs in done callbacks, (continued)
[Qemu-devel] [PATCH v4 20/23] ich9: APIs for pc guest info, Michael S. Tsirkin, 2013/09/22
[Qemu-devel] [PATCH v4 22/23] hpet: add API to find it, Michael S. Tsirkin, 2013/09/22
- Re: [Qemu-devel] [PATCH v4 22/23] hpet: add API to find it,
Paolo Bonzini <=
[Qemu-devel] [PATCH v4 23/23] i386: ACPI table generation code from seabios, Michael S. Tsirkin, 2013/09/22
[Qemu-devel] [PATCH v4 21/23] pvpanic: add API to access io port, Michael S. Tsirkin, 2013/09/22
Re: [Qemu-devel] [PATCH v4 00/23] qemu: generate acpi tables for the guest, Gerd Hoffmann, 2013/09/24