[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 1/6] spapr_pci: remove duplicate macros
From: |
Nikunj A Dadhania |
Subject: |
[Qemu-devel] [PATCH v3 1/6] spapr_pci: remove duplicate macros |
Date: |
Tue, 5 May 2015 14:13:10 +0530 |
Signed-off-by: Nikunj A Dadhania <address@hidden>
---
hw/ppc/spapr_pci.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c
index 2e7590c..4df3a33 100644
--- a/hw/ppc/spapr_pci.c
+++ b/hw/ppc/spapr_pci.c
@@ -1475,17 +1475,6 @@ PCIHostState *spapr_create_phb(sPAPREnvironment *spapr,
int index)
return PCI_HOST_BRIDGE(dev);
}
-/* Macros to operate with address in OF binding to PCI */
-#define b_x(x, p, l) (((x) & ((1<<(l))-1)) << (p))
-#define b_n(x) b_x((x), 31, 1) /* 0 if relocatable */
-#define b_p(x) b_x((x), 30, 1) /* 1 if prefetchable */
-#define b_t(x) b_x((x), 29, 1) /* 1 if the address is aliased */
-#define b_ss(x) b_x((x), 24, 2) /* the space code */
-#define b_bbbbbbbb(x) b_x((x), 16, 8) /* bus number */
-#define b_ddddd(x) b_x((x), 11, 5) /* device number */
-#define b_fff(x) b_x((x), 8, 3) /* function number */
-#define b_rrrrrrrr(x) b_x((x), 0, 8) /* register number */
-
int spapr_populate_pci_dt(sPAPRPHBState *phb,
uint32_t xics_phandle,
void *fdt)
--
1.8.3.1
- Re: [Qemu-devel] [PATCH v3 5/6] spapr_pci: fix boot-time device tree fields for pci hotplug, (continued)
[Qemu-devel] [PATCH v3 0/6] spapr_pci: DT field fixes and PCI DT node creation in QEMU, Nikunj A Dadhania, 2015/05/05
- Re: [Qemu-devel] [PATCH v3 0/6] spapr_pci: DT field fixes and PCI DT node creation in QEMU, Nikunj A Dadhania, 2015/05/05
- [Qemu-devel] [PATCH v3 3/4] spapr: enumerate and add PCI device tree, Nikunj A Dadhania, 2015/05/05
- [Qemu-devel] [PATCH v3 1/6] spapr_pci: remove duplicate macros,
Nikunj A Dadhania <=
- [Qemu-devel] [PATCH v3 3/6] spapr_pci: encode class code including Prog IF register, Nikunj A Dadhania, 2015/05/05
- [Qemu-devel] [PATCH v3 2/6] spapr_pci: encode missing 64-bit memory address space, Nikunj A Dadhania, 2015/05/05
- [Qemu-devel] [PATCH v3 1/4] spapr_pci: encode missing 64-bit memory address space, Nikunj A Dadhania, 2015/05/05
- [Qemu-devel] [PATCH v3 6/6] spapr_pci: populate ibm,loc-code, Nikunj A Dadhania, 2015/05/05
- [Qemu-devel] [PATCH v3 2/4] spapr_pci: encode class code including Prog IF register, Nikunj A Dadhania, 2015/05/05
- [Qemu-devel] [PATCH v3 4/6] spapr_pci: enumerate and add PCI device tree, Nikunj A Dadhania, 2015/05/05
- [Qemu-devel] [PATCH v3 5/6] spapr_pci: fix boot-time device tree fields for pci hotplug, Nikunj A Dadhania, 2015/05/05
- [Qemu-devel] [PATCH v3 4/4] spapr: populate ibm,loc-code, Nikunj A Dadhania, 2015/05/05