login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
June
»
30
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andres Salomon
Subject:
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support
Date: Wednesday, June 30, 2010 - 2:32 pm
On Wed, 30 Jun 2010 15:13:26 -0600 Grant Likely <grant.likely@secretlab.ca> wrote:
quoted text
> On Tue, Jun 29, 2010 at 8:23 AM, Andres Salomon <dilinger@queued.net> > wrote: > > On Tue, 29 Jun 2010 01:12:36 -0700 > > Grant Likely <grant.likely@secretlab.ca> wrote:
[...]
quoted text
> >> > +extern void prom_build_devicetree(void); > >> > + > >> > +extern void *prom_early_alloc(unsigned long size); > >> > + > >> > +extern char *prom_firstprop(phandle node, char *buf); > >> > +extern char *prom_nextprop(phandle node, const char *prev, char > >> > *buf); +extern int prom_getproplen(phandle node, const char > >> > *prop); +extern int prom_getproperty(phandle node, const char > >> > *prop, > >> > + char *buffer, int bufsize); > >> > +extern phandle prom_getchild(phandle node); > >> > +extern phandle prom_getsibling(phandle node); > >> > + > >> > +#endif /* __KERNEL__ */ > >> > +#endif /* _X86_PROM_OLPC_H */ > >> > diff --git a/arch/x86/include/asm/prom.h > >> > b/arch/x86/include/asm/prom.h new file mode 100644 > >> > index 0000000..7b561b2 > >> > --- /dev/null > >> > +++ b/arch/x86/include/asm/prom.h > >> > @@ -0,0 +1,5 @@ > >> > +#ifdef CONFIG_OLPC_OPENFIRMWARE > >> > +# include <asm/olpc_prom.h> > >> > +#else > >> > +# error "No OFW prom defined for x86!" > >> > +#endif > >> > >> Personally, I wouldn't bother with the header file redirection. > > > > The reason for the header file redirection is because this is > > OLPC-only; the x86 folks don't want me claiming this to be the One > > True x86 OFW. > > However, the #ifdef/#elseif/#else/#endif approach also makes the > assumption that only one kind of OFW will be supported by any given > kernel. Or for that matter, both OFW and the flattened tree also > become mutually exclusive due to the default behaviour override. > > Besides, aren't the function declarations just the interface defined > by the prom extraction code? Is there any need to #ifdef that API? I > would think those function prototypes should be defined by the header > for the prom extraction code.
Mm, both are good points; I suppose for now it doesn't hurt to lose the #ifdefs, and deal w/ additional x86 proms support if it comes up. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/4] RFC: OLPC/x86 device tree code
, Andres Salomon
, (Mon Jun 28, 6:54 pm)
[PATCH 1/4] x86: OLPC: constify an olpc_ofw() arg
, Andres Salomon
, (Mon Jun 28, 7:00 pm)
[PATCH 2/4] sparc: break out some prom device-tree buildin ...
, Andres Salomon
, (Mon Jun 28, 7:00 pm)
[PATCH 3/4] proc: unify PROC_DEVICETREE config
, Andres Salomon
, (Mon Jun 28, 7:00 pm)
[PATCH 4/4] x86: OLPC: add OLPC device-tree support
, Andres Salomon
, (Mon Jun 28, 7:00 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, David Miller
, (Mon Jun 28, 8:11 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Stephen Rothwell
, (Mon Jun 28, 11:15 pm)
Re: [PATCH 3/4] proc: unify PROC_DEVICETREE config
, Grant Likely
, (Tue Jun 29, 12:33 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Tue Jun 29, 12:50 am)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support
, Grant Likely
, (Tue Jun 29, 1:12 am)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support
, Stephen Rothwell
, (Tue Jun 29, 1:33 am)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support
, Andres Salomon
, (Tue Jun 29, 7:23 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Andres Salomon
, (Tue Jun 29, 8:03 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Tue Jun 29, 2:42 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Andres Salomon
, (Tue Jun 29, 4:36 pm)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support
, Grant Likely
, (Wed Jun 30, 2:13 pm)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support
, Andres Salomon
, (Wed Jun 30, 2:32 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Wed Jun 30, 2:52 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, David Miller
, (Mon Jul 5, 7:22 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Tue Jul 6, 12:00 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, David Miller
, (Tue Jul 6, 12:16 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Tue Jul 6, 1:17 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Tue Jul 6, 1:17 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Tue Jul 6, 2:21 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Benjamin Herrenschmidt
, (Tue Jul 6, 3:17 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Andres Salomon
, (Tue Jul 6, 2:54 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Tue Jul 6, 3:06 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Andres Salomon
, (Tue Jul 6, 6:15 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Andres Salomon
, (Tue Jul 6, 9:07 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Andres Salomon
, (Tue Jul 6, 10:15 pm)
[tip:x86/olpc] x86, olpc: Constify an olpc_ofw() arg
, tip-bot for Andres S ...
, (Fri Jul 30, 6:10 pm)
[PATCH 0/9] add OLPC device-tree support
, Andres Salomon
, (Sun Aug 29, 8:51 pm)
[PATCH 1/9] of: move phandle/ihandle into types.h
, Andres Salomon
, (Sun Aug 29, 8:53 pm)
[PATCH 2/9] sparc: convert various prom_* functions to use ...
, Andres Salomon
, (Sun Aug 29, 8:55 pm)
[PATCH 3/9] sparc: break out some PROM device-tree buildin ...
, Andres Salomon
, (Sun Aug 29, 8:57 pm)
[PATCH 4/9] sparc: make drivers/of/pdt.c no longer sparc-only
, Andres Salomon
, (Sun Aug 29, 8:59 pm)
[PATCH 5/9] of: no longer call prom_ functions directly; u ...
, Andres Salomon
, (Sun Aug 29, 9:00 pm)
[PATCH 6/9] of: add of_pdt namespace to pdt code
, Andres Salomon
, (Sun Aug 29, 9:02 pm)
[PATCH 7/9] of: add package-to-path support to pdt
, Andres Salomon
, (Sun Aug 29, 9:04 pm)
[PATCH 8/9] x86: of: irq additions to make drivers/of/* bu ...
, Andres Salomon
, (Sun Aug 29, 9:06 pm)
[PATCH 9/9] x86: OLPC: add OLPC device-tree support
, Andres Salomon
, (Sun Aug 29, 9:07 pm)
Re: [PATCH 1/9] of: move phandle/ihandle into types.h
, Sam Ravnborg
, (Sun Aug 29, 10:06 pm)
RE: [PATCH 8/9] x86: of: irq additions to make drivers/of/ ...
, Stephen Neuendorffer
, (Mon Aug 30, 8:58 am)
Re: [PATCH 8/9] x86: of: irq additions to make drivers/of/ ...
, Grant Likely
, (Mon Aug 30, 10:31 am)
Re: [PATCH 0/9] add OLPC device-tree support
, Grant Likely
, (Mon Aug 30, 10:58 am)
Re: [PATCH 9/9] x86: OLPC: add OLPC device-tree support
, Grant Likely
, (Mon Aug 30, 11:14 am)
Re: [PATCH 9/9] x86: OLPC: add OLPC device-tree support
, Andres Salomon
, (Mon Aug 30, 11:49 am)
Re: [PATCH 9/9] x86: OLPC: add OLPC device-tree support
, Grant Likely
, (Mon Aug 30, 10:49 pm)
Re: [PATCH 1/9] of: move phandle/ihandle into types.h
, Andres Salomon
, (Fri Sep 3, 1:17 am)
Re: [PATCH 1/9] of: move phandle/ihandle into types.h
, Sam Ravnborg
, (Sat Sep 4, 11:22 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
Peter Zijlstra
Re: divide by zero bug in find_busiest_group
Tejun Heo
Re: [PATCH] block: use jiffies conversion functions in scsi_ioctl.c
Balbir Singh
Re: [RFC][PATCH] page reclaim throttle take2
David Miller
Re: [PATCHv2] uwb: use '%pM' format to print MAC address
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Christian Stimming
git-gui: Fix broken revert confirmation.
Junio C Hamano
Re: git-svnimport
Anuj Gakhar
Git Architecture Question
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
[ARM] dma: use new dmabounce_sync_for_xxx() for dma_sync_single_xxx()
Linux Kernel Mailing List
MIPS: Cavium: Remove unused watchdog code.
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
linux-netdev
:
Gerrit Renker
v2 [PATCH 1/4] dccp: Limit feature negotiation to connection setup phase
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
openbsd-misc
:
Christophe Rioux
Implementation example of snmp
Ryan McBride
Re: Packets Per Second Limit?
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
Jacob Yocom-Piatt
Re: Same shit all over again
Colocation donated by:
Syndicate