From owner-freebsd-current@FreeBSD.ORG Tue Dec 9 18:13:32 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11B1F106564A for ; Tue, 9 Dec 2008 18:13:32 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout022.mac.com (asmtpout022.mac.com [17.148.16.97]) by mx1.freebsd.org (Postfix) with ESMTP id EED958FC16 for ; Tue, 9 Dec 2008 18:13:31 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from [192.168.1.94] (209-128-86-226.bayarea.net [209.128.86.226]) by asmtp022.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KBM009ADFYIP690@asmtp022.mac.com> for freebsd-current@freebsd.org; Tue, 09 Dec 2008 10:13:31 -0800 (PST) Message-id: <0E8F5AD4-A139-413E-A760-A1BEDDF44BAA@mac.com> From: Marcel Moolenaar To: Scott Long In-reply-to: <493EA759.4000504@samsco.org> Date: Tue, 09 Dec 2008 10:13:30 -0800 References: <200812081621.mB8GLMxB041498@lava.sentex.ca> <200812081906.mB8J6oha042222@lava.sentex.ca> <200812082049.mB8KnHSN042710@lava.sentex.ca> <84A7F176-5A74-48AC-859A-C0D4C7CBCB48@mac.com> <7.1.0.9.0.20081208173515.13f62e88@sentex.net> <200812091457.mB9EvLSD047534@lava.sentex.ca> <493EA759.4000504@samsco.org> X-Mailer: Apple Mail (2.929.2) Cc: freebsd-current@freebsd.org, Mike Tancsa Subject: Re: uart vs sio differences ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2008 18:13:32 -0000 On Dec 9, 2008, at 9:14 AM, Scott Long wrote: > That aside, I think what needs to happen is for the driver to use the > interrupt handler to pull the bytes out of the hardware and into an > internal lockless ring buffer, then schedule the swi to process the > ring > buffer. The uart(4) driver is exactly doing what you describe. -- Marcel Moolenaar xcllnt@mac.com