public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] DEVIO table change
@ 2000-12-11  9:10 Grant Edwards
  2000-12-11  9:27 ` Bart Veer
  0 siblings, 1 reply; 3+ messages in thread
From: Grant Edwards @ 2000-12-11  9:10 UTC (permalink / raw)
  To: ecos-discuss

How do I determine (at compile time) with which version of the
kernel a driver is being used?

Maintaining parallel drivers for 1.3.1 and CVS would require a
lot of work, so I'd like my driver to work with both 1.3.1 and
CVS code. But the DEVIO table has changed.  I can't seem to
find a kernel version or devio version macro to test in my
driver sources to determine whether to include a select
function in the DEVIO macro.

It looks like I might be able to make the decision on whether
CHAR_DEVIO_TABLE is defined.

Would it be possible to include some sort of kernel version or
kernel API version macro in the one of the eCos kernel header
files so that a single driver can support multiple versions of
the kernel?

-- 
Grant Edwards
grante@visi.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-12-11 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-11  9:10 [ECOS] DEVIO table change Grant Edwards
2000-12-11  9:27 ` Bart Veer
2000-12-11 13:39   ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).