From: Matthew Wilcox <willy@debian.org>
To: Matthew Wilcox <willy@debian.org>
Cc: Greg KH <greg@kroah.com>,
pcihpd-discuss@lists.sourceforge.net,
linux-pci@atrey.karlin.mff.cuni.cz, linux-kernel@vger.kernel.org,
linux-ia64@vger.kernel.org
Subject: [PATCH] build acpiphp modular and on i386/x86_64 [6/5]
Date: Wed, 15 Sep 2004 18:01:23 +0000 [thread overview]
Message-ID: <20040915180123.GG642@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20040903193027.GO642@parcelfarce.linux.theplanet.co.uk>
After the first five patches I sent, in order to build acpiphp on
i386/x86_64 or as a module on ia64, we need these exports and defines
currently. I have a much better scheme in mind but it's not ready yet.
I promise I'll replace this with something much more portable.
diff -urpNX build-tools/dontdiff hotplug-2.6/arch/ia64/pci/pci.c modular-2.6/arch/ia64/pci/pci.c
--- hotplug-2.6/arch/ia64/pci/pci.c 2004-09-13 09:30:28.000000000 -0600
+++ modular-2.6/arch/ia64/pci/pci.c 2004-09-15 11:54:17.886305856 -0600
@@ -354,6 +354,7 @@ pcibios_fixup_device_resources (struct p
pci_claim_resource(dev, i);
}
}
+EXPORT_SYMBOL(pcibios_fixup_device_resources);
/*
* Called after each bus is probed, but before its children are examined.
diff -urpNX build-tools/dontdiff hotplug-2.6/include/asm-i386/pci.h modular-2.6/include/asm-i386/pci.h
--- hotplug-2.6/include/asm-i386/pci.h 2004-03-16 08:40:36.000000000 -0700
+++ modular-2.6/include/asm-i386/pci.h 2004-09-15 10:50:02.126390608 -0600
@@ -99,6 +99,9 @@ static inline void pcibios_add_platform_
{
}
+/* XXX: temporary hack for acpiphp */
+#define pcibios_fixup_device_resources() do { } while (0)
+
#endif /* __KERNEL__ */
/* implement the pci_ DMA API in terms of the generic device dma_ one */
diff -urpNX build-tools/dontdiff hotplug-2.6/include/asm-ia64/pci.h modular-2.6/include/asm-ia64/pci.h
--- hotplug-2.6/include/asm-ia64/pci.h 2004-09-02 13:56:21.000000000 -0600
+++ modular-2.6/include/asm-ia64/pci.h 2004-09-15 10:52:39.422526206 -0600
@@ -125,6 +125,9 @@ extern unsigned long pcibios_bus_address
#define pci_bus_address(busdev, addr, flags) \
pcibios_bus_address(PCI_CONTROLLER(busdev), (addr), (flags))
+/* XXX: temporary hack for acpiphp */
+extern void pcibios_fixup_device_resources(struct pci_dev *, struct pci_bus *);
+
/* generic pci stuff */
#include <asm-generic/pci.h>
diff -urpNX build-tools/dontdiff hotplug-2.6/include/asm-x86_64/pci.h modular-2.6/include/asm-x86_64/pci.h
--- hotplug-2.6/include/asm-x86_64/pci.h 2004-09-13 09:31:17.000000000 -0600
+++ modular-2.6/include/asm-x86_64/pci.h 2004-09-15 10:50:16.191929342 -0600
@@ -132,6 +132,9 @@ static inline void pcibios_add_platform_
{
}
+/* XXX: temporary hack for acpiphp */
+#define pcibios_fixup_device_resources() do { } while (0)
+
#endif /* __KERNEL__ */
/* generic pci stuff */
--
"Next the statesmen will invent cheap lies, putting the blame upon
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince
himself that the war is just, and will thank God for the better sleep
he enjoys after this process of grotesque self-deception." -- Mark Twain
prev parent reply other threads:[~2004-09-15 18:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-03 19:30 ACPI pci hotplug patch series Matthew Wilcox
2004-09-03 19:31 ` [PATCH] pci_bus_address [1/5] Matthew Wilcox
2004-09-03 19:32 ` [PATCH] ia64 misc fixes [2/5] Matthew Wilcox
2004-09-03 19:32 ` [PATCH] acpiphp domain support [3/5] Matthew Wilcox
2004-09-03 19:33 ` [PATCH] acpiphp resource usage [4/5] Matthew Wilcox
2004-09-03 19:33 ` [PATCH] acpiphp misc fixes [5/5] Matthew Wilcox
2004-09-15 18:01 ` Matthew Wilcox [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=20040915180123.GG642@parcelfarce.linux.theplanet.co.uk \
--to=willy@debian.org \
--cc=greg@kroah.com \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@atrey.karlin.mff.cuni.cz \
--cc=pcihpd-discuss@lists.sourceforge.net \
/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