From: Wolfgang Denk Date: Sat, 10 Apr 2010 22:24:06 +0200 Subject: [U-Boot] [PATCH] fsl-diu: Using I/O accessor to CCSR space In-Reply-To: References: <1270623077-23603-1-git-send-email-daveliu@freescale.com> <20100408101103.001D81051E73@gemini.denx.de> <6D2EF892-333D-49A5-9927-F8576E85854F@kernel.crashing.org> Message-ID: <20100410202406.620FEE6D662@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Timur Tabi, In message you wrote: > On Thu, Apr 8, 2010 at 10:50 AM, Kumar Gala wro= > te: > > > Good point, I wasn't look at what the src info was. =A0We should probably= > fix the struct diu_ad, diu to use 'u32' etc. > > Or __be32. I think the consensus is that struct fields for hardware > registers should use endian-specific sized integers. Is there such consensus? Does this include chip designers? I mean, can we be sure that __be32 will also work if this IP core shows up in a little-endian ARM system? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Our business is run on trust. We trust you will pay in advance.