This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
PHY's and generic PHY's and CDL
- From: Chuck McManis <ecos at mcmanis dot com>
- To: ECOS Discussion Group <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 13 Feb 2006 11:15:03 -0800
- Subject: [ECOS] PHY's and generic PHY's and CDL
Gary, (and anyone else who wants to comment)
per Andrew's suggestion I've been putting developing my changes for the
Epia MII ethernet driver as a separate PHY driver and MAC driver. To that
end I created a VT6103.c in the phy/src directory and added it to the CDL
file.
But when I read the data sheet on this PHY it says it implements the 803.3u
standard which has a number of pre-defined bits and registers. Some of
those defines are in the eth_phy_dev.h file.
So it seems the only customization in the phy specific C file, if the PHY
implements the standard, is the "description" of the PHY and the
manufacturer's ID. With that being the case it seems like a generic PHY
support routine could be written where the description and ID for the phy
were provided by CDL constructs.
I'm digging into how CDL generates files with ecosconfig so that I can see
if this is a reasonable thing to do.
--Chuck
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss