From owner-freebsd-ppc@FreeBSD.ORG Thu Apr 3 14:53:38 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCA89106564A for ; Thu, 3 Apr 2008 14:53:38 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.68]) by mx1.freebsd.org (Postfix) with ESMTP id BB5FE8FC1B for ; Thu, 3 Apr 2008 14:53:38 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp005-s [10.150.69.68]) by smtpoutm.mac.com (Xserve/smtpout005/MantshX 4.0) with ESMTP id m33ErcD6004189; Thu, 3 Apr 2008 07:53:38 -0700 (PDT) Received: from [192.168.1.100] (209-128-86-226.bayarea.net [209.128.86.226]) (authenticated bits=0) by mac.com (Xserve/asmtp005/MantshX 4.0) with ESMTP id m33ErR0g018330 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 3 Apr 2008 07:53:29 -0700 (PDT) Message-Id: <3B02E59E-5399-40B6-9747-2F49200FD708@mac.com> From: Marcel Moolenaar To: Nathan Whitehorn In-Reply-To: <47F4E007.90802@uchicago.edu> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Thu, 3 Apr 2008 07:53:26 -0700 References: <47E06B23.7060400@uchicago.edu> <20080325023040.ab0daa19.stas@FreeBSD.org> <47E8527B.2050002@uchicago.edu> <47F39EF4.8040800@uchicago.edu> <47F3D2BC.7060001@uchicago.edu> <47F422A0.9080907@uchicago.edu> <47F4E007.90802@uchicago.edu> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-ppc@freebsd.org Subject: Re: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 14:53:38 -0000 On Apr 3, 2008, at 6:47 AM, Nathan Whitehorn wrote: > Since bm depends on those DBDMA interrupts, like any DBDMA device, > we shouldn't filter them out globally, and I'm hesitant to add a > bunch of SCC-specific hacks to macio. We will also need them if we > want to support DMA on the onboard ATA controller or want to support > the AWACS sound chip. See below. >> I guess on your machine, interrupts use only 1 cell. This means we >> need >> to fix macio(4) to interpret the "#interrupt-cells" property of the >> interrupt controller in the "interrupt-parent" property... > > So it would seem: > Node 0xff860a58: mac-io > Node 0xff861220: interrupt-controller > #interrupt-cells: > 00 00 00 01 > > This sounds like a good solution. Do you want to make the patch, or > do you want me to give it a try? Let's split the work. If you could fix macio(4) to use #interrupt-cells, I'll fix scc(4) to deal with the DBDMA interrupts... Thoughts? -- Marcel Moolenaar xcllnt@mac.com