From owner-freebsd-multimedia@FreeBSD.ORG Sun Apr 13 01:46:03 2003 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 674BB37B401 for ; Sun, 13 Apr 2003 01:46:03 -0700 (PDT) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7EA343FDD for ; Sun, 13 Apr 2003 01:46:02 -0700 (PDT) (envelope-from gurney_j@resnet.uoregon.edu) Received: by resnet.uoregon.edu (Postfix, from userid 1001) id 92E141930E; Sun, 13 Apr 2003 01:45:46 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by resnet.uoregon.edu (Postfix) with ESMTP id 7362A1D113; Sun, 13 Apr 2003 15:45:46 +0700 (ICT) Date: Sun, 13 Apr 2003 15:45:46 +0700 (ICT) From: John-Mark Gurney To: multimedia@freebsd.org Message-ID: <20030413152931.T32380-100000@resnet.uoregon.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: common multimedia interface (aka zoran MJPEG driver) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2003 08:46:03 -0000 Hello, I have been working on a Zoran MJPEG driver (ZF36067 + ZR36060) for FreeBSD, and have the overlay part working, but I was wondering if anyone has started to standardize the ioctl interface for Multimedia devices? I have defined a few internal interfaces to make talking with encoder/decoder chips completely transparent. So far the driver is completely newbus'ifed, but still under work for the busdma part of it. The ioctl interface is pretty poor, such as having the user pass the physical address of the video frame buffer to the driver. I decided that it would be best to require the user to map the memory, and then use the user space mappings (yes, converting the userspace mapping to physical address is possible)... This helps for when I want to support users passing in buffers for the MJPEG part of the card to fill up. So, is this pretty stagnant? or is there ongoing work that I should try to adopt? Thanks for your comments. P.s. I'm not subscribed to the list, so make sure you cc me! John-Mark Gurney