linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* I don't understand #size-cells = <0>
@ 2007-02-01  0:22 Andrew Klossner
  2007-02-01  0:25 ` David Gibson
  2007-02-04 23:43 ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 4+ messages in thread
From: Andrew Klossner @ 2007-02-01  0:22 UTC (permalink / raw)
  To: linuxppc-dev

I'm porting the kernel to an 8548-based board whose boot loader does
not provide a device tree, so I'm rolling my own.

Rev 0.5 of booting-without-of.txt says:

	"reg" properties are always a tuple of the type "address size"
	where the number of cells of address and size is specified by
	the bus #address-cells and #size-cells.

but in the examples, we see

		reg = <22000 1000>;
		#address-cells = <1>;
		#size-cells = <0>;

The number of cells of address is 1.  The number of cells of size is 0.
1+0=1, so how can the reg property have a tuple of size 2?

I saw Ben's mention last June of a "degenerate range", but I can't
find that term used anywhere else.

What are the real semantics of #size-cells = <0> ?

Thanks,
Andrew Klossner

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-02-04 23:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-01  0:22 I don't understand #size-cells = <0> Andrew Klossner
2007-02-01  0:25 ` David Gibson
2007-02-01 15:08   ` Yoder Stuart-B08248
2007-02-04 23:43 ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).