From owner-freebsd-hardware Mon Sep 22 23:57:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA24470 for hardware-outgoing; Mon, 22 Sep 1997 23:57:10 -0700 (PDT) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA24462 for ; Mon, 22 Sep 1997 23:57:06 -0700 (PDT) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by Campino.Informatik.RWTH-Aachen.DE (8.8.7/RBI-Z13) with ESMTP id IAA09582 for ; Tue, 23 Sep 1997 08:57:03 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id JAA05426 for freebsd-hardware@freebsd.org; Tue, 23 Sep 1997 09:03:50 +0200 (MEST) Date: Tue, 23 Sep 1997 09:03:50 +0200 (MEST) From: Christoph Kukulies Message-Id: <199709230703.JAA05426@gil.physik.rwth-aachen.de> To: freebsd-hardware@freebsd.org Subject: major/minor for industrial hw required Sender: owner-freebsd-hardware@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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