This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: device driver enquirey - c label
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Yi Tang <yitang at itee dot uq dot edu dot au>
- Cc: ecos-discuss at sourceware dot org
- Date: Sat, 16 Dec 2006 20:19:24 +0100
- Subject: Re: [ECOS] device driver enquirey - c label
- References: <001101c720ed$7d1514a0$82406682@itee.uq.edu.au>
On Sat, Dec 16, 2006 at 06:37:57PM +1000, Yi Tang wrote:
> Hello,
>
> It's the first time for me to write a device driver. I have got a simple,
> silly question, hope someone in this group can instruct me.
>
> In the eCos reference, I found that there is one item in nearly all io
> functions, the "C label".
>
> like this one:
>
> DEVTAB_ENTRY(l, name, dep_name, handlers, init, lookup, priv)
>
> l: The "C" label for this entry.
>
> also can be found in DEVIO_TABLE and other functions.
It is used to tell eCos about devices. You don't need to assign it to
anything. It causes an entry to be placed into the list of device.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss