From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 11 15:42:23 2011 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4AA7106566B for ; Tue, 11 Jan 2011 15:42:23 +0000 (UTC) (envelope-from gallatin@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7BF4C8FC1B for ; Tue, 11 Jan 2011 15:42:23 +0000 (UTC) Received: by ywp6 with SMTP id 6so8585629ywp.13 for ; Tue, 11 Jan 2011 07:42:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=GmIz+DK+IUG2zjk/SsKFK0688461cBFd7AdvW74ekY8=; b=exCoQgjBU8KIZDDqN7oU+oWjejG+zehTdWGc5sFYOtTDGm2uf6po7bwX/MxJluVdus VLHufeHnXTTx8VM6UxPZ9yrYt7YVyVGyvybAuSp2p8e9yZJE5dVzmpRz3g3IkEImg9bg 5l/LseoaugLrHxsXHBiKwl267oJNmH0ULmFbI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=s+/kfeogGqygIlTB4fzO/KRsPvUz9aRZxc5B7/yHUGvRNKo/g7S2F8yEIzHIMxhhvX r0wwLcH3Oz178g3AmtD5Vt5ux3usJGGIEyy4w6f2VSdJXsRSDoBA5LmmaIYCkRCVLJv1 lZPJbv75QTDIF2EePlyG5v13GWjv9LPtWks2I= MIME-Version: 1.0 Received: by 10.100.144.11 with SMTP id r11mr3583002and.24.1294759077329; Tue, 11 Jan 2011 07:17:57 -0800 (PST) Received: by 10.100.248.15 with HTTP; Tue, 11 Jan 2011 07:17:57 -0800 (PST) In-Reply-To: <20110111092609.7bf82016@shibato.opal.com> References: <20091204223126.00005392@unknown> <201001081650.14189.hselasky@c2i.net> <20100108114130.1cfe88c5@shibato.opal.com> <201101110947.46399.hselasky@c2i.net> <20110111092609.7bf82016@shibato.opal.com> Date: Tue, 11 Jan 2011 10:17:57 -0500 Message-ID: From: Andrew Gallatin To: "J.R. Oldroyd" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-multimedia@freebsd.org, emulation@freebsd.org, Alexander Leidinger , Hans Petter Selasky Subject: Re: FYI: v4l-linuxulator support in FreeBSD-current now X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2011 15:42:23 -0000 On Tue, Jan 11, 2011 at 9:26 AM, J.R. Oldroyd wrote: > This patch merely flips the cmd bits. > > I'm not familiar with the Linux DVB ioctls... is it really the case > that none of the data structures have 32/64-bit architecture dependent > field sizes? =A0Great if that's the case, but if not, we need to do > data structure conversions here too, as we did for V4L. I looked for a compat_ioctl for DVB, but came up with nothing. From a 2.6.37 kernel: $ pwd /usr/src/kernels/linux-2.6.37/drivers/media $ find . -name '*.c' | xargs grep compat_ioctl ./video/v4l2-dev.c: .compat_ioctl =3D v4l2_compat_ioctl32, ./video/v4l2-compat-ioctl32.c: printk(KERN_INFO "compat_ioctl32: unexpected VIDIOC_FMT type %d\n", ./video/v4l2-compat-ioctl32.c: printk(KERN_INFO "compat_ioctl32: unexpected VIDIOC_FMT type %d\n", ./video/v4l2-compat-ioctl32.c:long v4l2_compat_ioctl32(struct file *file, unsigned int cmd, unsigned long arg) ./video/v4l2-compat-ioctl32.c: printk(KERN_WARNING "compat_ioctl32= : " ./video/v4l2-compat-ioctl32.c:EXPORT_SYMBOL_GPL(v4l2_compat_ioctl32); ./IR/ir-lirc-codec.c: .compat_ioctl =3D ir_lirc_ioctl, ./IR/lirc_dev.c: .compat_ioctl =3D lirc_dev_fop_ioctl, Also, the DVB ioctls I've looked at seem to be explictly sized (no "long" used, u32 or u64 everywhere). I tested the patch last night on amd64. I was able to successfully run ia32 linux azap, dvbtraffic and test_dvr utils to tune a channel, find the active PIDs, and record the stream to a file. Drew