This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Setting tty device interrupt priority, spltty()
- To: Arif dot Abbas at combitechsystems dot com
- Subject: Re: [ECOS] Setting tty device interrupt priority, spltty()
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Date: Fri, 7 Sep 2001 11:32:43 +0200
- Cc: ecos-discuss at sources dot redhat dot com
- References: <2253171AF143D21185A60000F8FA748B0379B247@pluto.combitech.se>
> #define SPL_IMP 0x01
> #define SPL_NET 0x02
> #define SPL_CLOCK 0x04
> #define SPL_SOFTNET 0x08
> #define SPL_INTERNAL 0x10
>
> I am not sure on which priority to the tty device (the choices are 0x03 or
> 0x05-0x07 or to simply
> rearrange the prioritys)
> Any suggestions??
The OpenBSD stack uses priorites. The eCos implementation there is no
prioritisation. These are just bits in a flag and are used in
combination of a mutex to provide mutual exclusion. So define you
SPL_TTY as 0x20 and add all the other function/macros as needed.
Andrew