[ECOS] Setting tty device interrupt priority, spltty()
Arif.Abbas@combitechsystems.com
Arif.Abbas@combitechsystems.com
Fri Sep 7 02:20:00 GMT 2001
Hi everyone!
I want to be able to set a priority to the tty level
priority.
I saw that spl's such as splnet, splimp etc etc are defined in
tcpip/current/include/sys/param.h
as
#define splimp() cyg_splimp(__FUNCTION__, __LINE__)
#define splnet() cyg_splnet(__FUNCTION__, __LINE__)
#define splclock() cyg_splclock(__FUNCTION__, __LINE__)
#define splsoftnet() cyg_splsoftnet(__FUNCTION__, __LINE__)
#define splx(x) cyg_splx(x, __FUNCTION__, __LINE__)
I also find the cyg_splxxx() functions in the file synch.c as
cyg_uint32
cyg_splxxx(SPLXARGS)
{
SPLXTRACE;
return spl_any( SPL_XXX );
}
where
SPL_XXX is defined as
#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??
Best Regards,
Arif Abbas
More information about the Ecos-discuss
mailing list