From owner-freebsd-hackers Tue Jul 4 23:56:17 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id XAA05518 for hackers-outgoing; Tue, 4 Jul 1995 23:56:17 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id XAA05512 for ; Tue, 4 Jul 1995 23:56:08 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id QAA19621; Wed, 5 Jul 1995 16:34:47 +1000 Date: Wed, 5 Jul 1995 16:34:47 +1000 From: Bruce Evans Message-Id: <199507050634.QAA19621@godzilla.zeta.org.au> To: babkin@hq.icb.chel.su, bde@zeta.org.au Subject: Re: Minor for Digiboard driver Cc: hackers@freebsd.org Sender: hackers-owner@freebsd.org Precedence: bulk >I took the scheme for minor numbers from sio, the only thing I added >is 2 bits of card number : > not_used{14} card_number{2} major{8} sio_like_minor{8} >The only problem is that I don't know how to name the special files to >be consistent with existing conventions. I know Peter Wemm who wrote >Specialix card driver had the same problem and I'll ask him about his >decision. There doesn't seem to be a good way. In the cyclades driver I squeezed everything into `major{8} sio_like_minor{8}'. This allows only 2 cards of 8 or 16 ports each and there is a gap in the numbering if the first card has only 8 ports. Eventually we'll have to support either ttyd0-ttyd999... (common namespace for all drivers; card number doesn't show) and the corresponding cua's and control devices, or tty{driver_name}d{device_number_as_in_config}{optional_subdevice_number}. I guess we need devfs and both. Bruce