From: Wolfgang Denk Date: Mon, 05 Sep 2011 10:00:08 +0200 Subject: [U-Boot] [PATCH v3] net: ll_temac: Add LL TEMAC driver to u-boot In-Reply-To: <4E647722.9080602@monstr.eu> References: <1314877154-14536-1-git-send-email-monstr@monstr.eu> <20110901130605.A31D2166C886@gemini.denx.de> <4E5F85DA.4080403@monstr.eu> <20110901140904.3334B18C46FE@gemini.denx.de> <4E607A0B.3040608@monstr.eu> <20110902081901.AC090137213A@gemini.denx.de> <4E609682.8030701@monstr.eu> <20110902092459.857E7203630@gemini.denx.de> <4E60B220.6010309@monstr.eu> <20110902125301.CB96D203630@gemini.denx.de> <4E60DA47.4070301@monstr.eu> <20110902140817.7E19211F9E69@gemini.denx.de> <4E647722.9080602@monstr.eu> Message-ID: <20110905080008.477F7140ABDF@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 Michal Simek, In message <4E647722.9080602@monstr.eu> you wrote: > > > I can only offer you a solution that seems acceptable to me. > > seems? Well, yes. As mentioned, I'm not happy with the propsal myself, but as long as I cannot come up with any better one it would be unjust to demand it from you. > >> This obviously doesn't mix well. If there is no better way > >>> of doing this, I'd still prefer deriving the index from the offset in > >>> a struct than deriving the address from an offset - the intention is > >>> to enable the compiler to perform type checking, which is impossible > >>> with a typeless base+offset address. > >> I understand the reasons for that but I can't see any elegant way how to do so. > > > > Well, I just proposed one way - not elegant indeed, but I'd be willing > > to swallow that. > > You mean that array of structs, right? No. I mean the text above: I'd rather derive the index from the offset in a struct instead of deriving the address from an offset (but I have to admit that I don't see an elegant way to implement this yet). 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 Why can you only have two doors on a chicken coop? If it had four it would be a chicken sedan.