OmniMedia Talisman driver for FreeBSD 2.1.0-Development

By Brian E. Litzinger  <brian@easynet.com>

Copyright 1995 By Brian E. Litzinger

--------------------------------------------------------------------

In your i386/conf/LOCAL or whatever file you must add the following line:

device tm0 at isa? port 0x700 bio vector tm_intr

***
*** At this time the board must be set to 0x700. And you must make sure
*** that no devices are at 0x300-0x303 also!
***

Add this near the end of i386/conf/files.i386:

i386/isa/tm.c                  optional        tm     device-driver

somewhere in i386/i386/conf.c add:

#include "tm.h"
#if NTM > 0
d_open_t        tm_open;
d_close_t       tm_close;
d_ioctl_t       tm_ioctl;
d_rdwr_t        tm_read, tm_write;
#define tm_select   (d_select_t *)enxio
#define tm_stop     (d_stop_t *)enxio
#define tm_reset        nxreset
#define tm_mmap         nxmmap
#define tm_strategy     nxstrategy
#define tm_devtotty     nxdevtotty
#else
#define tm_open     (d_open_t *)enxio
#define tm_close    (d_close_t *)enxio
#define tm_ioctl    (d_ioctl_t *)enxio
#define tm_read     (d_rdwr_t *)enxio
#define tm_write    (d_rdwr_t *)enxio
#define tm_select   (d_select_t *)enxio
#define tm_stop     (d_stop_t *)enxio
#define tm_devtotty     nxdevtotty
#define tm_reset        nxreset
#define tm_mmap         nxmmap  
#define tm_strategy     nxstrategy
#endif

then in i386/i386/conf.c add to the cdevsw structure

        { tm_open,      tm_close,       tm_read,        tm_write,       /*64*/
          tm_ioctl,     tm_stop,        tm_reset,       tm_devtotty, /* tm */
          seltrue,      tm_mmap,        tm_strategy },
 
Major device number 64 is reserved for the Talisman Device driver in
FreeBSD 2.1.  If an entry already exists for major device 64, replace
it with this one.

Lastly, copy the files in the driver subdirectory to i386/isa

    cp tm0.04/drivers/* /usr/src/sys/i386/isa

Then do a config and make depend and make and install and boot the new
kernel.

You should see the following in the boot text or from dmesg:

tm0 at 0x700-0x703 on isa 

Now mknod the device entry:

mknod /dev/tm0 c 64 0 

You'll also want to make sure the access permissions are appropriate.
chmod 666 /dev/tm0 seems like a good start.

Next get and/or compile tmmgr and mplay  using the following steps:

    cd utils
    make

You can play a stream by issuing the following comands:

    ./tmmgr init 700
    ./tmmgr mac init.mac
    ./tmmgr loadpal
    ./mplay mpegstream
    

Best of luck.  

Brian Litzinger <brian@easynet.com>
P.O. Box 82
Boulder Creek, CA 95006
