From owner-freebsd-arch@FreeBSD.ORG Sun Jun 20 18:23:56 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D304616A4CE for ; Sun, 20 Jun 2004 18:23:56 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68C7043D39 for ; Sun, 20 Jun 2004 18:23:56 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i5KIKsND006619; Sun, 20 Jun 2004 12:20:54 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 20 Jun 2004 12:20:57 -0600 (MDT) Message-Id: <20040620.122057.84501606.imp@bsdimp.com> To: marcel@xcllnt.net From: "M. Warner Losh" In-Reply-To: <20040620175711.GA1823@dhcp50.pn.xcllnt.net> References: <82937.1087721102@critter.freebsd.dk> <20040620.105000.106880101.imp@bsdimp.com> <20040620175711.GA1823@dhcp50.pn.xcllnt.net> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: arch@freebsd.org cc: phk@phk.freebsd.dk Subject: Re: [REVIEW] move tty lock/initial up in the stack X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jun 2004 18:23:56 -0000 In message: <20040620175711.GA1823@dhcp50.pn.xcllnt.net> Marcel Moolenaar writes: : On Sun, Jun 20, 2004 at 10:50:00AM -0600, M. Warner Losh wrote: : > : > Of course I'm reimplementing the Cyclades Z driver to try to use : > uart, which is why I'm getting curious. I don't know if this will : > wind up working or not, but since 95% of the hardware interface is two : > circular buffers in memory, which does seem to map mostly onto : > Marcel's model. Time will tell... I also have porting the stallion : > driver to current. I can do this by a simple hack on the old driver, : > or a rewrite. I'll use my Z experience to decide. : : You probably want to review my uart(4) notes WRT multiport cards: : http://wiki.daemon.li/index.pl?Uart(4) : : This may or may not align with your thinking. If not, maybe we : should quickly touch bases... : : PS: I just added cyclades to the list of references there. Feel free : to add more or replace this with a better one. OK. I've added a few of my own notes to the mix. I think that fleshing out the notes a little more might be useful. It looks like there are many granularities for the knowning about which uarts generated. It looks like on stallion cards, for example, you know which pannel generated an interrupt, but that the pannel might have 4 different multi-port uarts you have to then go query. Warner