[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/3] PCI: define max devices number on PCIBus as PCI
From: |
Ken CC |
Subject: |
[Qemu-devel] [PATCH 1/3] PCI: define max devices number on PCIBus as PCIBUS_MAX_DEVICES in pci.h |
Date: |
Tue, 24 Aug 2010 14:33:07 +0800 |
User-agent: |
StGit/0.15-97-g9680 |
Signed-off-by: Ken CC <address@hidden>
---
hw/pci.c | 2 +-
hw/pci.h | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index 70dbace..02019a1 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -47,7 +47,7 @@ struct PCIBus {
pci_hotplug_fn hotplug;
DeviceState *hotplug_qdev;
void *irq_opaque;
- PCIDevice *devices[256];
+ PCIDevice *devices[PCIBUS_MAX_DEVICES];
PCIDevice *parent_dev;
target_phys_addr_t mem_base;
diff --git a/hw/pci.h b/hw/pci.h
index ccb99d0..f90840c 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -100,6 +100,7 @@ typedef struct PCIIORegion {
#define PCI_ROM_SLOT 6
#define PCI_NUM_REGIONS 7
+#define PCIBUS_MAX_DEVICES 256
#include "pci_regs.h"
- [Qemu-devel] [PATCH 1/3] PCI: define max devices number on PCIBus as PCIBUS_MAX_DEVICES in pci.h,
Ken CC <=
- [Qemu-devel] [PATCH 2/3] pci init: fail qemu if devfn exceeding the max devices number supported on bus, Ken CC, 2010/08/24
- [Qemu-devel] [PATCH 3/3] Check pci slot number in parse_pci_devfn, Ken CC, 2010/08/24
- Re: [Qemu-devel] [PATCH 3/3] Check pci slot number in parse_pci_devfn, Isaku Yamahata, 2010/08/24
- Re: [Qemu-devel] [PATCH 3/3] Check pci slot number in parse_pci_devfn, Avi Kivity, 2010/08/24
- Re: [Qemu-devel] [PATCH 3/3] Check pci slot number in parse_pci_devfn, Isaku Yamahata, 2010/08/24
- Re: [Qemu-devel] [PATCH 3/3] Check pci slot number in parse_pci_devfn, Avi Kivity, 2010/08/24
- Re: [Qemu-devel] [PATCH 3/3] Check pci slot number in parse_pci_devfn, Isaku Yamahata, 2010/08/24
- Re: [Qemu-devel] [PATCH 3/3] Check pci slot number in parse_pci_devfn, Avi Kivity, 2010/08/24
- Re: [Qemu-devel] [PATCH 3/3] Check pci slot number in parse_pci_devfn, Chen Cao, 2010/08/24
- Re: [Qemu-devel] [PATCH 3/3] Check pci slot number in parse_pci_devfn, Avi Kivity, 2010/08/24