From owner-freebsd-hackers Tue Jan 25 9:54:45 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp01.wxs.nl (smtp01.wxs.nl [195.121.6.61]) by hub.freebsd.org (Postfix) with ESMTP id B8161152E0 for ; Tue, 25 Jan 2000 09:54:28 -0800 (PST) (envelope-from asmodai@wxs.nl) Received: from daemon.ninth-circle.org ([195.121.196.192]) by smtp01.wxs.nl (Netscape Messaging Server 3.61) with ESMTP id AAA17CF; Tue, 25 Jan 2000 18:54:25 +0100 Received: (from asmodai@localhost) by daemon.ninth-circle.org (8.9.3/8.9.3) id SAA06478; Tue, 25 Jan 2000 18:54:15 +0100 (CET) (envelope-from asmodai) Date: Tue, 25 Jan 2000 18:54:15 +0100 From: Jeroen Ruigrok/Asmodai To: =?iso-8859-1?Q?Joachim_J=E4ckel?= Cc: nox@jelal.kn-bremen.de, "freebsd-hackers@freebsd.org" Subject: Re: How to write a device-driver? Message-ID: <20000125185415.C290@daemon.ninth-circle.org> References: <388B8724.D3B9707C@d.kamp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0i In-Reply-To: <388B8724.D3B9707C@d.kamp.net>; from Joachim.Jaeckel@d.kamp.net on Sun, Jan 23, 2000 at 11:56:36PM +0100 Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -On [20000124 00:00], Joachim Jäckel (Joachim.Jaeckel@d.kamp.net) wrote: > >Here´s some information to the card I'd like to support: > >It's a Miro DC10+ Video Grabber Card for Non-Linear Video-Editing. >It uses a Siemens SAA7110, a Zoran 36060+36067 and a ADV???? chip to en- >and decode the video-information. I got the specifications for the chips >from Siemens and Zoran's Web-Sites and a first driver-skeleton was >generated through the /usr/share/examples/drivers/make_pci... script for >me. Did you contact Miro? And /usr/share/examples/drivers/make_pci is pre 4.0. >Currently I get a boot-message from my kernel, that he has found the >card.(I read the pci_id and send a text-message :-) That's a good start. >Additionally I found a linux-driver for this card (an early one...) but >it is not fully compatible with the documentation, I got. It can make certain things clear. >Maybe you would allow me one question? (To get a little faster to the >information than browsing through the source.) Asking questions is free. =) >But how get's the zoran36067_regs structure the information from the >chip? If you were using newbus (on FreeBSD 4.0) I'd say bus_space_read_#() to get the info in the registers our of your chip. >If I change the content of the structure, which function would change >the registers on the chip accordingly? (Or is it done through the call >of pci_map_mem? And is everything I change to the structure >automatically changed on the card?) I have to show my lack of 2.2.x and 3.x driver programming. I am spoiled due to 4.x. I think someone else needs to answer this. Juergen appears to know 3.x driver programming. >Sorry, if these questions are real dumb ones! Not at all. -- Jeroen Ruigrok vd W/Asmodai asmodai@[wxs.nl|bart.nl|freebsd.org] Documentation nutter/B-rated Coder BSD: Technical excellence at its best The BSD Programmer's Documentation Project How the gods kill... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message