Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jan 2011 21:30:05 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: em28xx?
Message-ID:  <201101082130.05180.hselasky@c2i.net>
In-Reply-To: <AANLkTimOtABnMgkNn9jAiThWmZ9Ec3pNQ%2Bq_GR_1Ae4h@mail.gmail.com>
References:  <AANLkTimhh9qt1mwMk0NJ0_XP2W14azixpKD=fZYYpOpi@mail.gmail.com> <AANLkTimOtABnMgkNn9jAiThWmZ9Ec3pNQ%2Bq_GR_1Ae4h@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-00=_NlMKNn+ypYWmYKI
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: 7bit

On Saturday 08 January 2011 20:49:59 Andrew Gallatin wrote:
> On Sat, Jan 8, 2011 at 2:11 PM, Andrew Gallatin <gallatin@gmail.com> wrote:
> > (see appended output).  Has anybody tried  this before?  What are the
> > general steps for porting a driver?
> 
> So I hacked on it for a while (see attached dirty patch) and I've got

Try the attached patch.

--HPS

--Boundary-00=_NlMKNn+ypYWmYKI
Content-Type: text/x-patch; charset="iso-8859-15"; name="linux_usb.c.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
	filename="linux_usb.c.patch"

Index: kernel/linux_usb.c
===================================================================
--- kernel/linux_usb.c	(revision 1678)
+++ kernel/linux_usb.c	(working copy)
@@ -1,5 +1,5 @@
 /*-
- * Copyright (c) 2009 Hans Petter Selasky. All rights reserved.
+ * Copyright (c) 2009-2011 Hans Petter Selasky. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -1077,6 +1077,8 @@
 	}
 
 	p_ud->parent = sc;
+	p_ud->dev.driver_static.name = "webcamd";
+	p_ud->dev.driver = &p_ud->dev.driver_static;
 
 	get_device(&p_ud->dev);		/* make sure we don't get freed */
 

--Boundary-00=_NlMKNn+ypYWmYKI--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101082130.05180.hselasky>