From: Anthony Liguori <anthony@codemonkey.ws>
To: Gleb Natapov <gleb@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/2] Use defines instead of numbers for pci hotplug sts bit
Date: Wed, 20 Oct 2010 17:24:04 -0500 [thread overview]
Message-ID: <4CBF6C04.3020502@codemonkey.ws> (raw)
In-Reply-To: <1287308725-30811-1-git-send-email-gleb@redhat.com>
On 10/17/2010 04:45 AM, Gleb Natapov wrote:
> Signed-off-by: Gleb Natapov<gleb@redhat.com>
>
Applied both. Thanks.
Regards,
Anthony Liguori
> ---
> hw/acpi_piix4.c | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c
> index c8733e5..bec42b4 100644
> --- a/hw/acpi_piix4.c
> +++ b/hw/acpi_piix4.c
> @@ -38,6 +38,8 @@
> #define PCI_BASE 0xae00
> #define PCI_EJ_BASE 0xae08
>
> +#define PIIX4_PCI_HOTPLUG_STATUS 2
> +
> struct gpe_regs {
> uint16_t sts; /* status */
> uint16_t en; /* enabled */
> @@ -596,13 +598,13 @@ static void piix4_acpi_system_hot_add_init(PCIBus *bus, PIIX4PMState *s)
>
> static void enable_device(PIIX4PMState *s, int slot)
> {
> - s->gpe.sts |= 2;
> + s->gpe.sts |= PIIX4_PCI_HOTPLUG_STATUS;
> s->pci0_status.up |= (1<< slot);
> }
>
> static void disable_device(PIIX4PMState *s, int slot)
> {
> - s->gpe.sts |= 2;
> + s->gpe.sts |= PIIX4_PCI_HOTPLUG_STATUS;
> s->pci0_status.down |= (1<< slot);
> }
>
>
prev parent reply other threads:[~2010-10-20 22:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-17 9:45 [Qemu-devel] [PATCH 1/2] Use defines instead of numbers for pci hotplug sts bit Gleb Natapov
2010-10-17 9:45 ` [Qemu-devel] [PATCH 2/2] Fix pci hotplug to generate level triggered interrupt Gleb Natapov
2010-10-20 22:24 ` Anthony Liguori [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CBF6C04.3020502@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=gleb@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).