From: Wolfgang Denk Date: Tue, 22 Jun 2010 23:04:32 +0200 Subject: [U-Boot] [PATCH] [PATCH V4]Save environment data to mmc. In-Reply-To: <1AE74F652ECB1440B73DD7C2C20842D1B3A663@zch01exm27.fsl.freescale.net> References: <12730401491046-git-send-email-r65388@freescale.com> <20100506222213.B620DE8AAC9@gemini.denx.de> <1AE74F652ECB1440B73DD7C2C20842D1B3A663@zch01exm27.fsl.freescale.net> Message-ID: <20100622210432.E60491524EE@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 "Lv Terry-R65388", Please stop top posting / full quoting. This style of replying to messages ios a major PITA to deal with :-( In message <1AE74F652ECB1440B73DD7C2C20842D1B3A663@zch01exm27.fsl.freescale.net> you wrote: > > Though a block offset macros is more suitable for a block device, > block size can be changed. > Thus I think a size offset is better to describe the offset. > > What do you think? I think you either did not read or understand what I wrote: > Hm... I see a tendency to add more and more such files that all deal > with one sort of a block oriented storage device or another. Should > we not try to generalize this? I was talking about a more generic support layer for block oriented storage devices. In Unix, this is typically called a "block device", but we probably don't have to go that far. What are all these env_*.c files doing? Reading or writing one or several blocks of data from a storage device and handing it over to the environment code. Maybe we can use a single generic file where each used driver registers it's block read / block write functions? 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 In the strict scientific sense we all feed on death -- even vegetarians. -- Spock, "Wolf in the Fold", stardate 3615.4