|
|
|
|
|
|
| Author |
Message |
M. Warner Losh *nix forums Guru
Joined: 22 Mar 2002
Posts: 365
|
Posted: Sat Jul 08, 2006 7:58 am Post subject:
EEPROMs
|
|
|
Greetings,
I have an embedded arm board that has about 4 different kinds of
EEPROMs on it. These EEPROMs and flash parts are connected in various
and wonderful ways (spi, i2c, parallel bus, and mabye a custom fpga
thing). There's also a number of add-in boards that have a few
different eeproms on them as appropriate for the board. Not all of
these technologies will be in our final product, but I need to develop
drivers to talk to many of them for at least experimental purposes.
There's a desire to have all these eeproms available as real devices
to the system, some of them even GEOM providers (I think that's the
right term). Some of these drivers may be on multiple busses (the
AT45DB642, for example, lives on either a SPI bus or a parallel bus).
Most of them will be tiny because the 'heavy lifting' for the devices
is done in the upper layer (initiating the i2c transfer, doing the spi
transaction, etc). Sadly, these devices are all somewhat different in
the niggling little details that make them work, so separate drivers
will likely be needed for at least some of them.
Normally, we'd just create a src/sys/dev directory for each device.
We've done it with all the drivers in the system, except for really
old legacy jobs, usb (since it was ported from an os that doesn't
share quite the same world-view when it comes to drivers (ours is
driver centric, theirs is bus centric),and sound (which has a boatload
of supported drivers, all living under dev/sound subdirectories).
I'm thinking seriously of putting them under dev/eeprom or dev/flash
or something like that, and then creating subdirectories under than to
help the clutter in src/sys/dev.
Before I do such a radical thing, I thought I'd tell people my plans
so they don't freak when it hits the tree.
Comments?
Warner
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" |
|
| Back to top |
|
 |
Poul-Henning Kamp *nix forums Guru
Joined: 21 Mar 2002
Posts: 436
|
Posted: Sat Jul 08, 2006 8:09 am Post subject:
Re: EEPROMs
|
|
|
In message <20060708.015801.-1303463244.imp@bsdimp.com>, "M. Warner Losh" write
s:
| Quote: | I'm thinking seriously of putting them under dev/eeprom or dev/flash
or something like that, and then creating subdirectories under than to
help the clutter in src/sys/dev.
|
I'm seriously for a more scalable /dev directory.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" |
|
| Back to top |
|
 |
M. Warner Losh *nix forums Guru
Joined: 22 Mar 2002
Posts: 365
|
Posted: Sat Jul 08, 2006 8:17 am Post subject:
Re: EEPROMs
|
|
|
In message: <48462.1152346157@critter.freebsd.dk>
"Poul-Henning Kamp" <phk@phk.freebsd.dk> writes:
: In message <20060708.015801.-1303463244.imp@bsdimp.com>, "M. Warner Losh" write
: s:
:
: >I'm thinking seriously of putting them under dev/eeprom or dev/flash
: >or something like that, and then creating subdirectories under than to
: >help the clutter in src/sys/dev.
:
: I'm seriously for a more scalable /dev directory.
/dev or src/sys/dev? I'd rather avoid a whole-sale driver rename, and
the resulting MFC chaos that would cause. I'm just looking to add
something in a scalable way.
Warner
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" |
|
| Back to top |
|
 |
Poul-Henning Kamp *nix forums Guru
Joined: 21 Mar 2002
Posts: 436
|
Posted: Sat Jul 08, 2006 8:51 am Post subject:
Re: EEPROMs
|
|
|
In message <20060708.021748.-457441564.imp@bsdimp.com>, "M. Warner Losh" writes
:
| Quote: | : >I'm thinking seriously of putting them under dev/eeprom or dev/flash
: >or something like that, and then creating subdirectories under than to
: >help the clutter in src/sys/dev.
:
: I'm seriously for a more scalable /dev directory.
/dev or src/sys/dev? [...]
|
/dev
Poul-Henning
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sat Nov 22, 2008 4:46 am | All times are GMT
|
|
Mobile Phone | Loans | Credit Cards | Mortgage Calculator | Mortgages
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|