DVB ASI




DVB-ASI Driver for FreeBSD 4

This driver uses the Newbus and the bus_dma API. It means that it could be easily ported to FreeBSD5, NetBSD and OpenBSD.

Installation

 sh$ tar xvzf dvbasi_freebsd-1.xy.tgz
 sh$ cd dvbasi_freebsd-1.xy
 sh$ make
 sh$ su
 sh$ make install

Porting guide from Linux to FreeBSD

The DVB ASI Driver of FreeBSD is using the same IOCTLs and quite the same sysctls than the Linux ones. The main differences are: The other APIs of this driver are compatible with the asi-0.7.0 from Computer Modules. If they are not, it should be a bug. Thanks to report them to <vincent.jardin@6wind.com>

For example rxcfg.c becomes

  [...unchanged...]
#include <fcntl.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/sysctl.h>

#if defined(__FreeBSD__)
#include <dev/asi/asivar.h>
#include <dev/asi/asi_dvbm_fdureg.h>
#include <sys/sysctl.h>
#define CTL_DEV CTL_HW
#elif defined(linux)
#include "../asi.h"
#endif

#define TMP_BUFLEN 80

const char progname[] = "rxcfg";

void show_cap (unsigned int cap)
{
        char str[TMP_BUFLEN] = "[ ] ";
  [...unchanged...]

Tools ported to FreeBSD

Thanks

Special thanks to Tom Thorsteinson and Les Zoltan from Computer Modules who helped us to port this driver.
Copyright 2003 © Vincent Jardin <jardin@6WIND.com> , 6WIND