Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Importing Flash and NAND subsystem for NetBSD
On Sun, 13 Feb 2011 10:44:45 -0800
Matt Thomas <matt%3am-software.com@localhost> wrote:
>
> On Feb 13, 2011, at 7:30 AM, Adam Hoka wrote:
>
> > On Sun, 13 Feb 2011 15:23:19 +0100
> > Adam Hoka <adam.hoka%gmail.com@localhost> wrote:
> >
> >> Hi!
> >>
> >> The University of Szeged, Hungary developed a Flash and NAND subsystem for
> >> NetBSD, which I would like to import into src. Most of the code was written
> >> by me so direct any questions and suggestions to me. A sample driver is
> >> provided for OMAP NAND controllers as found in BeagleBoard and DEVKIT8000.
> >>
> >> Here is the full patch set against NetBSD current:
> >>
> >> http://www.netbsd.org/~ahoka/patches/flash_3.diff
> >>
> >> A file system is also in development, but It's still work in progress,
> >> after the inclusion of the Flash driver we will provide code snapshots.
> >>
> >> I plan to commit this next week if there is no strong argument against it.
> >>
> >> PS.: Hardware or any other type of contributions would be very much
> >> appreciated to extend the number of supported devices.
> >
> >
> > Updated patch (it was missing one file):
> >
> > http://www.netbsd.org/~ahoka/patches/flash_4.diff
>
> Why is <dev/flash> exported to userland? There doesn't
> seem to be anything userland needs.
>
> Please get rid of StudlyCaps in hamming.c.
> CountBitsInByte should be replaced by __builtin_popcount so that
> machines with a popcount instruction can use it.
Will do. Thanks.
> consider implementing nand_crc16 via a nibble lookup table.
> See ether_crc32_le in sys/net/if_ethersubr.c for an example.
It doesnt need to be fast, it's used once on attachment, so a naive
implementation fits IMHO.
> Use
> struct name {
> please (in flashio.h)
I will look into this too.
--
Adam Hoka <adam.hoka%gmail.com@localhost>
Home |
Main Index |
Thread Index |
Old Index