From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 18 06:59:23 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CC8D216A400 for ; Mon, 18 Jun 2007 06:59:23 +0000 (UTC) (envelope-from christian.kandeler@hob.de) Received: from mailgate.hob.de (mailgate.hob.de [212.185.199.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4C5B313C465 for ; Mon, 18 Jun 2007 06:59:23 +0000 (UTC) (envelope-from christian.kandeler@hob.de) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate.hob.de (Postfix) with ESMTP id 3F9882802D for ; Mon, 18 Jun 2007 08:59:21 +0200 (CEST) Received: from mailgate.hob.de ([127.0.0.1]) by localhost (mailgate.hob.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22256-08 for ; Mon, 18 Jun 2007 08:59:20 +0200 (CEST) Received: from imap.hob.de (mail2.hob.de [172.25.1.102]) by mailgate.hob.de (Postfix) with ESMTP id 686482804C for ; Mon, 18 Jun 2007 08:59:20 +0200 (CEST) Received: from [172.22.0.190] (linux03.hob.de [172.22.0.190]) by imap.hob.de (Postfix on SuSE eMail Server 2.0) with ESMTP id A1AA5C5474 for ; Mon, 18 Jun 2007 08:59:19 +0200 (CEST) From: Christian Kandeler Organization: HOB To: freebsd-hackers@freebsd.org Date: Mon, 18 Jun 2007 08:59:15 +0200 User-Agent: KMail/1.6.2 References: <200706151541.51913.christian.kandeler@hob.de> <8D1F83C2-C7A6-4C86-88BE-17DD516DA4D9@mac.com> In-Reply-To: <8D1F83C2-C7A6-4C86-88BE-17DD516DA4D9@mac.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200706180859.15865.christian.kandeler@hob.de> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at hob.de Subject: Re: Question about serial console code X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 06:59:23 -0000 On Friday 15 June 2007 18:03, Marcel Moolenaar wrote: > The loop is formed by the transmit interrupt of the UART. > When UART_TRANSMIT() is called, the FIFO of the UART is > written and transmission starts. Eventually the UART will > raise a "transmission done" interrupt, which will trigger > the next iteration. I see. However: > If the UART has no FIFO (in the 16550-sense), then sc_txfifosz > is still 1. But where is this set? The ns8250_bus_probe() function returns early when it detects a FIFO-less device, leaving sc_txfifosz at its pre-initialized value (i.e. zero). And it doesn't seem to get set anywhere else, either. Regards, Christian Kandeler