vague
little
uses,
making
Well in that case I don't see that there's much option other than a
multiplication. If there were an odd number of eraseblocks (i.e., 3
chips) you could still do the shifting operations. But if someone has
come up with a flash part that has a non-power of two sector/erasesize,
then there's no way to do it by shift. I supose I could just change
erasesize to size64, make it a 64-bit type and do this:
return a->num_eraseblocks == 0 ? a->size : a->size64
Doesn't seem quite as elegant, but it is simpler. What ever I do, I can't
change the meaning or type of size. That's an kernel <=> userspace ABI
change, and we know what happens when I try to do that ;).
Bruce
------------------------------------------------
This e-mail may contain SEL confidential information. The opinions
expressed are not necessarily those of SEL. Any unauthorized disclosure,
distribution or other use is prohibited. If you received this e-mail in
error, please notify the sender, permanently delete it, and destroy any
printout.
Thank you.
------------------------------------------------
--