Re: Multiproto API/Driver Update

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- On Sun, 9/14/08, Markus Rechberger <mrechberger@xxxxxxxxx> wrote:

> >>> (Also to be noted is that, some BSD chaps also have shown interest in

Does BSD == NetBSD here?  Or are there other developments
as well that I'm not aware of?


> As for the em28xx driver I agreed with pushing all my code

Do you want to have patches for your repository, like the
following (just an example, based on the NetBSD SOC source)

--- em2880-dvb.c-LINUX  2008-09-03 06:47:08.000000000 +0200
+++ em2880-dvb.c        2008-09-14 12:35:49.000000000 +0200
@@ -18,6 +18,7 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#if defined(__linux__)
 #include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
@@ -29,6 +30,7 @@
 #include <linux/dvb/frontend.h>
 #include <linux/usb.h>
 #include <linux/version.h>
+#endif
 
 #include "em28xx.h"
 
@@ -60,9 +62,11 @@ DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr
 #define xc3028_offset_atsc 1750000;
 
 
+#if defined(__linux__)
 MODULE_DESCRIPTION("Empiatech em2880 DVB-T extension");
 MODULE_AUTHOR("Markus Rechberger <mrechberger@xxxxxxxxx>");
 MODULE_LICENSE("GPL");
+#endif
 
 
 DRX3973DData_t DRX3973DData_g = {
@@ -209,7 +213,11 @@ module_param(debug, int, 0644);
 MODULE_PARM_DESC(debug, "em2880-dvb debug level (default off)");
 
 #define dprintk(lvl, fmt, args...) if (debug >= lvl) do {\
+#if defined(__linux__)
        printk(fmt, ##args); } while (0)
+#elif defined(__NetBSD__)
+       printf(fmt, ##args); } while (0)
+#endif
 
 
 static int em2880_set_alternate(struct em2880_dvb *dvb_dev);


I think I've found something to play with...  (waits patiently
for kernel panic, to have an excuse to reboot)


thanks,
barry bouwsma


      


_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux