From owner-freebsd-hardware Tue Sep 23 01:20:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA28315 for hardware-outgoing; Tue, 23 Sep 1997 01:20:49 -0700 (PDT) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA28307 for ; Tue, 23 Sep 1997 01:20:46 -0700 (PDT) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id AAA01095; Tue, 23 Sep 1997 00:30:41 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd001093; Tue Sep 23 07:30:40 1997 Date: Tue, 23 Sep 1997 01:10:08 -0700 (PDT) From: Julian Elischer To: Christoph Kukulies cc: freebsd-hardware@FreeBSD.ORG Subject: Re: major/minor for industrial hw required In-Reply-To: <199709230703.JAA05426@gil.physik.rwth-aachen.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hardware@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Are you sure it wouldn't be better suited to being a networking device? That way you could write a dumb protocol statck for the appropriate link-layer, and do it all with sockets etc. sendto() and rcvfrom() would sound useful for that sort of thing. ? network drivers don't require major/minro numbers, and they need not run IP. On Tue, 23 Sep 1997, Christoph Kukulies wrote: > I need to get assigned a major/minor number > for the following HW which I want to write a driver for: > > Type: w-ie-ner CAN16-2 CAN-PC Interface > Mfgr: Plein&Baus GmbH Muellersbaum 20 D-51399 Burscheid Germany > Desc: CAN-BUS is being used as a medium speed serial bus in the > automobil and automotive industrie for addressing > various sensors and small peripheral devices in > an ethernet like manner. The protocol is collision detect > based. > > The device has two channels, so I suspect it would require two minor > numbers (myself though owning the book 'Writing Device Drivers' > currently not being very familar with the matter). There maybe > approaches using one minor and doing it in the ioctl - maybe that's > better since the two channels are in one device. > > The device doesn't have an i/o register. It just has a 16K memory > mapped region and is producing one interrupt. I think I would > start with something like the ed driver as a skeleton. > > Who is responsible for the Maj/Min device numbering disposal > in FreeBSD? > > -- > Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de >