From: Paul M. <pm...@mv...> - 2002-01-27 06:53:37
|
On Sat, Jan 26, 2002 at 10:42:39PM -0800, Fredrik Hubinette wrote: > > Right. Maple is stupid. If we could have raw access to the device and j= ust > > map the whole region directly, it wouldn't be a problem.. the problem i= s that > > the only kind of access to the device that we have is in full blocks. I= f we > > don't want to read in a whole block, we still need to do the math to fi= nd out > > where the end of our read sits, read that block, and then deal with mas= king > > off only that which we're interested in, and handing it all back.. it's= not a > > very fun system, but the driver is documented and does outline all of t= his.. > > so it shouldn't be of much surprise to anyone. > >=20 > I do not see block access as a problem. IDE, SCSI, floppy and most > other storage devices deals in blocks only. I don't see why VMUs > should be any different. >=20 Block access is fine if you have some form of useless subsystem dealing with it.. as is the case with IDE and SCSI. Things like flash on the other hand where you generally need to have raw access to the device through useful me= ans like proper addresses, become somewhat of an oddity to deal with through bl= ock access.. especially through a subsystem that isn't too particularly friendly with it (ie, MTD). Though doing a workaround for this (as is the case with = my driver) isn't that big of a deal .. and is definately the optimal solution = for this problem that I can think of anyways.. Regards, --=20 Paul Mundt <pm...@mv...> MontaVista Software, Inc. |