From owner-freebsd-mips@FreeBSD.ORG Fri Nov 16 18:03:24 2012 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9674924A for ; Fri, 16 Nov 2012 18:03:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-da0-f54.google.com (mail-da0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 64F788FC12 for ; Fri, 16 Nov 2012 18:03:24 +0000 (UTC) Received: by mail-da0-f54.google.com with SMTP id z9so1332825dad.13 for ; Fri, 16 Nov 2012 10:03:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=/q6ZeIrAOvPjldZruI7cDxBxVaQgdU/AlDN1hdIGdXU=; b=kKA0Ca/ZQtvssJr5nc6Lu+EvlV0UpucbKHony1mHc46qO1JzTpDqtVnR0sVk2GBrrS hNFRdwxjBfCmHTLjeY0kSXJ9qmEaqjVH/q6QzBZv7p/K4bZkq+QQyW9cekEsdvaeCCKW V78W6N/hzlUVc4hH6HsEN/MMsazW+FlhB+eymnL2xl2Bx3E4eCCoCKgYpbMPCbKGSwG8 jRCU/cew2OpbVYh9Esn+Lz6KKTS2+CWj/ZR+ieyqYda1mAddPPsNNZryI4PWvYTV/ylp 5XTV+uoICDF1Ug5E50xXFSgn68Dsc2VzFXiF7IbAndHvxWwyrBVCGIQcb1CcMltwTj+B kBEw== MIME-Version: 1.0 Received: by 10.68.251.197 with SMTP id zm5mr17282629pbc.30.1353088998038; Fri, 16 Nov 2012 10:03:18 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.68.124.130 with HTTP; Fri, 16 Nov 2012 10:03:17 -0800 (PST) In-Reply-To: <6FC455B0-EBF6-4160-A491-A818003262A6@bsdimp.com> References: <201211161735.qAGHZb0j070251@pdx.rh.CN85.ChatUSA.com> <6FC455B0-EBF6-4160-A491-A818003262A6@bsdimp.com> Date: Fri, 16 Nov 2012 10:03:17 -0800 X-Google-Sender-Auth: KOP7DY8s6xxG_jYOL1L2X7W44z8 Message-ID: Subject: Re: heads up - changing uart -> uart_ar71xx From: Adrian Chadd To: Warner Losh Content-Type: text/plain; charset=ISO-8859-1 Cc: "Rodney W. Grimes" , freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 18:03:24 -0000 On 16 November 2012 10:01, Warner Losh wrote: > > On Nov 16, 2012, at 10:35 AM, Rodney W. Grimes wrote: > >> This should be cleaned up better than that, what -kind- of uart is it? >> There should be things called >> uart_8250 (should be able to drive everything from 8250 to 16950) >> uart_8530 (this is probalby the second most common uart in the world) >> uart_6850 (we would probably never see one of these) >> etc... >> >> Please do not lock this to a specific Mips chip if at all possible > > uart already services a dozen of other UARTs. It isn't tied to MIPS at all. All Adrian seems to be doing is making what was automatic configuration a little more manual. Well, strictly speaking yes. But what I'll do later is make a 'uart_core' and then allow my MIPS platforms to only register the uart(s) they need. Right now it includes all of the uarts in sys/dev/uart/. They're not separate devices. Adrian