From: Anthony Liguori <anthony@codemonkey.ws>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Izik Eidus <ieidus@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] adding helper pci functions
Date: Tue, 09 Mar 2010 08:24:38 -0600 [thread overview]
Message-ID: <4B965A26.5020302@codemonkey.ws> (raw)
In-Reply-To: <1267087285-15582-1-git-send-email-kraxel@redhat.com>
On 02/25/2010 02:41 AM, Gerd Hoffmann wrote:
> From: Izik Eidus<ieidus@redhat.com>
>
> Signed-off-by: Izik Eidus<ieidus@redhat.com>
> Signed-off-by: Gerd Hoffmann<kraxel@redhat.com>
>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
> hw/pci.h | 18 ++++++++++++++++++
> 1 files changed, 18 insertions(+), 0 deletions(-)
>
> diff --git a/hw/pci.h b/hw/pci.h
> index 37ebdc4..20c670e 100644
> --- a/hw/pci.h
> +++ b/hw/pci.h
> @@ -301,11 +301,29 @@ pci_config_set_device_id(uint8_t *pci_config, uint16_t val)
> }
>
> static inline void
> +pci_config_set_revision(uint8_t *pci_config, uint8_t val)
> +{
> + pci_set_byte(&pci_config[PCI_REVISION_ID], val);
> +}
> +
> +static inline void
> pci_config_set_class(uint8_t *pci_config, uint16_t val)
> {
> pci_set_word(&pci_config[PCI_CLASS_DEVICE], val);
> }
>
> +static inline void
> +pci_config_set_prog_interface(uint8_t *pci_config, uint8_t val)
> +{
> + pci_set_byte(&pci_config[PCI_CLASS_PROG], val);
> +}
> +
> +static inline void
> +pci_config_set_interrupt_pin(uint8_t *pci_config, uint8_t val)
> +{
> + pci_set_byte(&pci_config[PCI_INTERRUPT_PIN], val);
> +}
> +
> typedef int (*pci_qdev_initfn)(PCIDevice *dev);
> typedef struct {
> DeviceInfo qdev;
>
prev parent reply other threads:[~2010-03-09 14:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-25 8:41 [Qemu-devel] [PATCH] adding helper pci functions Gerd Hoffmann
2010-02-25 10:55 ` [Qemu-devel] " Juan Quintela
2010-02-25 11:30 ` Michael S. Tsirkin
2010-02-25 11:20 ` Izik Eidus
2010-03-09 14:24 ` [Qemu-devel] " Anthony Liguori
2010-03-09 14: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=4B965A26.5020302@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=ieidus@redhat.com \
--cc=kraxel@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).