All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@redhat.com>
To: kvm@vger.kernel.org
Cc: ddutile@redhat.com, chrisw@redhat.com
Subject: [PATCH 1/2] PCI: Export pci_map_option_rom()
Date: Mon, 04 Oct 2010 15:26:24 -0600	[thread overview]
Message-ID: <20101004212624.11167.33032.stgit@s20.home> (raw)
In-Reply-To: <20101004212311.11167.40425.stgit@s20.home>

Allow it to be referenced outside of hw/pci.c so we can register
option ROM BARs using the default mapping routine.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
---

 hw/pci.c |    2 +-
 hw/pci.h |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/hw/pci.c b/hw/pci.c
index e75f226..36ca571 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -1968,7 +1968,7 @@ static uint8_t pci_find_capability_list(PCIDevice *pdev, uint8_t cap_id,
     return next;
 }
 
-static void pci_map_option_rom(PCIDevice *pdev, int region_num, pcibus_t addr, pcibus_t size, int type)
+void pci_map_option_rom(PCIDevice *pdev, int region_num, pcibus_t addr, pcibus_t size, int type)
 {
     cpu_register_physical_memory(addr, size, pdev->rom_offset);
 }
diff --git a/hw/pci.h b/hw/pci.h
index ed86c57..825ccbe 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -219,6 +219,9 @@ void pci_register_bar(PCIDevice *pci_dev, int region_num,
                             pcibus_t size, int type,
                             PCIMapIORegionFunc *map_func);
 
+void pci_map_option_rom(PCIDevice *pdev, int region_num, pcibus_t addr,
+                        pcibus_t size, int type);
+
 int pci_enable_capability_support(PCIDevice *pci_dev,
                                   uint32_t config_start,
                                   PCICapConfigReadFunc *config_read,


  reply	other threads:[~2010-10-04 21:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-04 21:26 [PATCH 0/2] device-assignment: Re-work PCI option ROM support Alex Williamson
2010-10-04 21:26 ` Alex Williamson [this message]
2010-10-05 16:03   ` [PATCH 1/2] PCI: Export pci_map_option_rom() Chris Wright
2010-10-04 21:26 ` [PATCH 2/2] device-assignment: Allow PCI to manage the option ROM Alex Williamson
2010-10-07 17:18   ` Michael S. Tsirkin
2010-10-07 17:34     ` Alex Williamson
2010-10-07 22:45       ` Michael S. Tsirkin
2010-10-08  4:02         ` Alex Williamson
2010-10-08  8:40           ` Michael S. Tsirkin
2010-10-08 15:12             ` Alex Williamson
2010-10-09 21:44               ` Michael S. Tsirkin
2010-10-11 15:15                 ` Alex Williamson
2010-10-11 15:21                   ` Michael S. Tsirkin
2010-10-11 15:43                     ` Alex Williamson
2010-10-06 20:43 ` [PATCH 0/2] device-assignment: Re-work PCI option ROM support Marcelo Tosatti

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=20101004212624.11167.33032.stgit@s20.home \
    --to=alex.williamson@redhat.com \
    --cc=chrisw@redhat.com \
    --cc=ddutile@redhat.com \
    --cc=kvm@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.