From owner-freebsd-hardware Tue Oct 31 12:58:26 2000 Delivered-To: freebsd-hardware@freebsd.org Received: from mail.sfo.geocast.com (unknown [209.125.100.13]) by hub.freebsd.org (Postfix) with ESMTP id D9C3037B4CF for ; Tue, 31 Oct 2000 12:58:23 -0800 (PST) Received: from swamp.sfo.geocast.com ([209.125.100.45]) by mail.sfo.geocast.com (Netscape Messaging Server 3.6) with ESMTP id AAAD8A; Tue, 31 Oct 2000 12:58:23 -0800 Date: Tue, 31 Oct 2000 12:58:19 -0800 (PST) From: "Castor Fu" X-Sender: castor@swamp.sfo.geocast.com To: Adam Szeliga Cc: freebsd-hardware@FreeBSD.ORG Subject: Re: Lava driver In-Reply-To: <39FF29F8.5D595911@internet.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org You might want to look at the 'puc' driver in NetBSD. I made the Lava Quattro work under that fairly easily. In that, the card ends up detecting child devices which are serial ports, and so the numbers end up being allocated sequentially. > Does somebody could help me ? > > I have to write driver for pci serial card: Lava Quattro. > It has 4 serial ports working on single interrupt. I'm tring to use > driver sio for this. > > In kernel config file I have: > > device sio0 at isa? port IO_COM1 flags 0x10 irq 4 > device sio1 at isa? port IO_COM2 irq 3 > > and Lava port I want configure: > > device sio4 at pci? > device sio5 at pci? > device sio6 at pci? > device sio7 at pci? > > But in my attach function for Lava I receive unit number 0. > I have no idea how and where to change it. > I would like to use flags options. I don't known how I can read them. > > Best Regards > Adam Szeliga > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hardware" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message