[lkml]   [1999]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectDriver Programming Interface for Linux/RTLinux
Finally, after messing with the usual 3 times as many silly bugs as you
can imagine, here it is, the first DPI release: dpi-0.1.0 Download from

This code will NOT work with the original RTL POSIX I/O module that
with RTL beta12, and if the DPI module and the included es1370 driver
loads with it, you'll likely have a bad kernel crash...

It's not very well tested, but /dev/dsp works from RTL, ioctl()
included. /dev/dsp, /dev/dac (the synth/rear outputs), and /dev/mixer
works from user space, but I haven't got /dev/midi to work at all with
my card, not even with the original driver... (SB PCI128 without the
stupid combined line in/rear line out.) Haven't tried that hard really,
but if anyone knows about something about AudioPCI cards and MIDI...?
I'll want the MIDI in for cool test hacks soon. :-)

Everything *should* work from both Linux and RTL, but it's mostly
untested, and as always, the kernel panic is close when messing around
with the inner workings... ;-)

Known problems:

* I get bad crashed if I screw up the buffer fragment settings. Did I
break the driver, or is there a problem with the original version as
well? (Will check...)

* My RTL POSIX I/O module uses structures physically compatible with
standard Linux ones, but there's still some cleaning up to do. The
Thing (TM) that's still visible to the driver hacker is the lack of
inode struct, and the minor number is in rtl_file.f_minor. (That last
int being the only difference from the real struct file.)

* There is of course more cleaning up to do in the DPI layer, and I
intend to split the code into headers with macros and inline funcs,
that drivers can be configured "Linux only", "RTLinux only" or
context sensitive" at compile time. (The last alternative is
in the current release.)

So, get RTL beta12 and have fun... :-)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:53    [W:0.098 / U:13.452 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site