From owner-freebsd-hackers Sun Mar 9 12:44: 7 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9494E37B401 for ; Sun, 9 Mar 2003 12:44:06 -0800 (PST) Received: from mailout09.sul.t-online.com (mailout09.sul.t-online.com [194.25.134.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCBA743FBD for ; Sun, 9 Mar 2003 12:44:05 -0800 (PST) (envelope-from Robert.Eckardt@t-online.de) Received: from fwd11.sul.t-online.de by mailout09.sul.t-online.com with smtp id 18s7eN-0007kc-06; Sun, 09 Mar 2003 21:44:03 +0100 Received: from eckardt.org (320073016804-0001@[217.81.161.132]) by fwd11.sul.t-online.com with esmtp id 18s7eH-26qnuiC; Sun, 9 Mar 2003 21:43:57 +0100 Received: from roberte.no-ip.org (localhost [127.0.0.1]) by eckardt.org (8.11.6/8.11.6) with ESMTP id h29Ki0222222 for ; Sun, 9 Mar 2003 21:44:00 +0100 (CET) (envelope-from Robert.Eckardt@Robert-Eckardt.de) From: Robert.Eckardt@t-online.de (Robert Eckardt) To: hackers@freebsd.org Subject: Guide to writing device drivers sought Date: Sun, 9 Mar 2003 21:44:00 +0100 Message-Id: <20030309204400.M24984@Robert-Eckardt.de> X-Mailer: Open WebMail 1.71 20020827 X-OriginatingIP: 217.81.161.132 (roberte) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Sender: 320073016804-0001@t-dialin.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, long ago I used the joy-driver as an example to integrate my own device driver. I'm now trying (once again :-) to do the same in FreeBSD-4.7. Unfortunately, joy no longer functions correctly (since 4.1) and so it is an inappropriate example. My driver is going to create two devices with different minor device numbers (/dev/dcf and /dev/dcf100) (as joy should do too), which can be used simultaneously (both accessing the same I/O port e.g. 0x201). Where can I find an introduction to the currently used device framework? (Things seem to be spreaad out over numerous man pages.) How can I write a device driver that creates multiple devices with different minor device numbers for each given I/O port? Which driver is suited best as a simple example? Where can I find an introduction how to deal with PnP- and Non-PnP-hardware correctly? Thanks, Robert -- Dr. Robert Eckardt --- Robert.Eckardt@Robert-Eckardt.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message