[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/4] pci: add config space struct (from qemu-xen).
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 2/4] pci: add config space struct (from qemu-xen). |
Date: |
Wed, 1 Oct 2008 16:12:53 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/pci.h | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/hw/pci.h b/hw/pci.h
index e870987..f518e5e 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -6,6 +6,32 @@
/* PCI bus */
+struct pci_config_header {
+ le16 vendor_id;
+ le16 device_id;
+ le16 command;
+ le16 status;
+ uint8_t revision;
+ uint8_t api;
+ uint8_t subclass;
+ uint8_t class;
+ uint8_t cache_line_size; /* Units of 32 bit words */
+ uint8_t latency_timer; /* In units of bus cycles */
+ uint8_t header_type; /* Should be 0 */
+ uint8_t bist; /* Built in self test */
+ le32 base_address_regs[6];
+ le32 reserved1;
+ le16 sub_vendor_id;
+ le16 sub_device_id;
+ le32 rom_addr;
+ le32 reserved3;
+ le32 reserved4;
+ uint8_t interrupt_line;
+ uint8_t interrupt_pin;
+ uint8_t min_gnt;
+ uint8_t max_lat;
+};
+
extern target_phys_addr_t pci_mem_base;
typedef void PCIConfigWriteFunc(PCIDevice *pci_dev,
--
1.5.5.1
- [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Gerd Hoffmann, 2008/10/01
- [Qemu-devel] [PATCH 4/4] pci: use pci_config_header in pci.c, Gerd Hoffmann, 2008/10/01
- Re: [Qemu-devel] [PATCH 4/4] pci: use pci_config_header in pci.c, Anthony Liguori, 2008/10/01
- Re: [Qemu-devel] [PATCH 4/4] pci: use pci_config_header in pci.c, Gerd Hoffmann, 2008/10/01
- Re: [Qemu-devel] [PATCH 4/4] pci: use pci_config_header in pci.c, Anthony Liguori, 2008/10/01
- Re: [Qemu-devel] [PATCH 4/4] pci: use pci_config_header in pci.c, Gerd Hoffmann, 2008/10/02
- Re: [Qemu-devel] [PATCH 4/4] pci: use pci_config_header in pci.c, Anthony Liguori, 2008/10/02
- Re: [Qemu-devel] [PATCH 4/4] pci: use pci_config_header in pci.c, Gerd Hoffmann, 2008/10/06
[Qemu-devel] [PATCH 2/4] pci: add config space struct (from qemu-xen).,
Gerd Hoffmann <=
[Qemu-devel] [PATCH 3/4] pci: add default pci subsystem id for all devices., Gerd Hoffmann, 2008/10/01
Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Christoph Hellwig, 2008/10/02
- Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Gerd Hoffmann, 2008/10/02
- Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Christoph Hellwig, 2008/10/02
- Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Gerd Hoffmann, 2008/10/02
- Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Christoph Hellwig, 2008/10/02
- Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Gerd Hoffmann, 2008/10/02
- Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Anthony Liguori, 2008/10/02
- Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Gerd Hoffmann, 2008/10/06