From owner-freebsd-ppc@FreeBSD.ORG Mon Aug 6 11:08:31 2007 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 81D6F16A419 for ; Mon, 6 Aug 2007 11:08:31 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5A67313C459 for ; Mon, 6 Aug 2007 11:08:31 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l76B8Vh1029970 for ; Mon, 6 Aug 2007 11:08:31 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l76B8Urx029966 for freebsd-ppc@FreeBSD.org; Mon, 6 Aug 2007 11:08:30 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 6 Aug 2007 11:08:30 GMT Message-Id: <200708061108.l76B8Urx029966@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ppc@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 06 Aug 2007 11:08:31 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o power/93203 ppc FreeBSD PPC Can't Write to Partitions. 1 problem total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o power/111296 ppc [kernel] [patch] Support IMISS, DLMISS an DSMISS inter o power/112435 ppc [nexus] [patch] Update nexus children to use ofw_bus f 2 problems total. From owner-freebsd-ppc@FreeBSD.ORG Tue Aug 7 16:55:18 2007 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 4D02116A418 for ; Tue, 7 Aug 2007 16:55:18 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.174]) by mx1.freebsd.org (Postfix) with ESMTP id 2E96713C45E for ; Tue, 7 Aug 2007 16:55:18 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin01-en2 [10.13.10.146]) by smtpout.mac.com (Xserve/smtpout04/MantshX 4.0) with ESMTP id l77GhQMN023845 for ; Tue, 7 Aug 2007 09:43:26 -0700 (PDT) Received: from [172.24.104.90] (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mac.com (Xserve/smtpin01/MantshX 4.0) with ESMTP id l77GhM6D007061 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 7 Aug 2007 09:43:26 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-ppc@freebsd.org From: Marcel Moolenaar Date: Tue, 7 Aug 2007 09:43:21 -0700 X-Mailer: Apple Mail (2.752.3) Subject: Revamp of interrupt code (INTR_FILTER support) 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: Tue, 07 Aug 2007 16:55:18 -0000 All, With INTR_FILTER likely going to me the default for FreeBSD 7.0, some work was necessary for PowerPC to support that. A rather large diff can be found here: http://www.xcllnt.net/~marcel/ppc.diff It contains changes necessary to support INTR_FILTER as well as some related and/or nearby improvements, such as: 1. Enable interrupts for traps() when interrupts were enabled at the time of the trap. This improves the interactive behaviour of the machine. It avoids that syscalls run with interrupts disabled for example. 2. Revamp the PIC interface to have it not deal with resources, but rather with access to the hardware. The resource handling is moved to nexus. This was necessary, because INTR_FILTER requires EOI and MASK+EOI calback functions. 3. With 2 in place, there's no need for early attach of PIC drivers anymore. The platform code delays programming the hardware until all hardware has been enumerated. This makes the openpic(4) and hrowpic(4) drivers much simpler. See powerpc_enable_intr() in configure_final(). 4. Interrupt handlers are passed the trapframe when they don't have an argument specified already. This allows the use of external interrupts for hardclock, statclock and/or profclock. The OpenPIC has 4 global timers, which seem very suitable. There are still some lose ends, such as interrupt counters and psim support, but I'd like to get the patch out for testing and review. I would especially appreciate it if someone with an older G3 that has the Heathrow PIC can test that I didn't break anything there. I can only test the OpenPIC driver myself. Thanks, -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Tue Aug 7 19:35:08 2007 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 E9E5716A41B for ; Tue, 7 Aug 2007 19:35:08 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.freebsd.org (Postfix) with ESMTP id 8E9D913C48D for ; Tue, 7 Aug 2007 19:35:08 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from excfreebsd.hq.netapp.com (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.7.5a-GA) with ESMTP id CZU34453 (AUTH peterg@ptree32.com.au); Wed, 8 Aug 2007 05:34:54 +1000 (EST) Message-ID: <46B8C952.2030303@freebsd.org> Date: Tue, 07 Aug 2007 12:34:42 -0700 From: Peter Grehan User-Agent: Thunderbird 2.0.0.0 (X11/20070525) MIME-Version: 1.0 To: Marcel Moolenaar References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Revamp of interrupt code (INTR_FILTER support) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grehan@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2007 19:35:09 -0000 Hi Marcel, This work looks excellent. I'll try and review/test asap. Mac G5s have 2 cascaded OpenPICs. The existing code needed a revamp to support that: would it be able to fit into your new model ? later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Tue Aug 7 20:57:44 2007 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 45AE216A420; Tue, 7 Aug 2007 20:57:44 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.173]) by mx1.freebsd.org (Postfix) with ESMTP id 3AD6B13C457; Tue, 7 Aug 2007 20:57:44 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (Xserve/smtpout03/MantshX 4.0) with ESMTP id l77KvtmI015039; Tue, 7 Aug 2007 13:57:55 -0700 (PDT) Received: from [172.24.104.90] (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 4.0) with ESMTP id l77KvhEH014248 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 7 Aug 2007 13:57:43 -0700 (PDT) In-Reply-To: <46B8C952.2030303@freebsd.org> References: <46B8C952.2030303@freebsd.org> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Tue, 7 Aug 2007 13:57:42 -0700 To: grehan@freebsd.org X-Mailer: Apple Mail (2.752.3) Cc: freebsd-ppc@freebsd.org Subject: Re: Revamp of interrupt code (INTR_FILTER support) 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: Tue, 07 Aug 2007 20:57:44 -0000 On Aug 7, 2007, at 12:34 PM, Peter Grehan wrote: > Hi Marcel, > > This work looks excellent. I'll try and review/test asap. > > Mac G5s have 2 cascaded OpenPICs. The existing code needed a > revamp to support that: would it be able to fit into your new model ? I don't know, but let's make sure we support that easily (if not right away). I already made sure there's a clear separation between IRQ and vector, so it should be possible to map the {PIC,IRQ} pair to an unique vector. The Heathrow PIC driver needs to maintain its own IRQ->vector mapping then, but that's trivial (we still have IRQ==vector to avoid such a mapping). FYI, -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Wed Aug 8 23:55:37 2007 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BE6316A417; Wed, 8 Aug 2007 23:55:37 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id 2F60213C428; Wed, 8 Aug 2007 23:55:37 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by smarthost2.sentex.ca (8.14.1/8.13.8) with ESMTP id l78Nta8T075969; Wed, 8 Aug 2007 19:55:36 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.1/8.14.1) with ESMTP id l78Ntaxm030536; Wed, 8 Aug 2007 19:55:36 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 8901B73039; Wed, 8 Aug 2007 19:54:30 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070808235430.8901B73039@freebsd-current.sentex.ca> Date: Wed, 8 Aug 2007 19:54:30 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.91.1, clamav-milter version 0.91.1 on news X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on powerpc/powerpc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Aug 2007 23:55:37 -0000 TB --- 2007-08-08 22:30:03 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-08-08 22:30:03 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2007-08-08 22:30:03 - cleaning the object tree TB --- 2007-08-08 22:30:25 - checking out the source tree TB --- 2007-08-08 22:30:25 - cd /tinderbox/HEAD/powerpc/powerpc TB --- 2007-08-08 22:30:25 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-08-08 22:37:04 - building world (CFLAGS=-O2 -pipe) TB --- 2007-08-08 22:37:04 - cd /src TB --- 2007-08-08 22:37:04 - /usr/bin/make -B buildworld >>> World build started on Wed Aug 8 22:37:05 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> World build completed on Wed Aug 8 23:51:47 UTC 2007 TB --- 2007-08-08 23:51:47 - generating LINT kernel config TB --- 2007-08-08 23:51:47 - cd /src/sys/powerpc/conf TB --- 2007-08-08 23:51:47 - /usr/bin/make -B LINT TB --- 2007-08-08 23:51:47 - building LINT kernel (COPTFLAGS=-O2 -pipe) TB --- 2007-08-08 23:51:47 - cd /src TB --- 2007-08-08 23:51:47 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Wed Aug 8 23:51:47 UTC 2007 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/contrib/ipfilter/netinet/ip_log.c -I/src/sys/contrib/ipfilter cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/contrib/ipfilter/netinet/ip_nat.c -I/src/sys/contrib/ipfilter cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/contrib/ipfilter/netinet/ip_proxy.c -I/src/sys/contrib/ipfilter cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/contrib/ipfilter/netinet/ip_state.c -I/src/sys/contrib/ipfilter cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/contrib/ipfilter/netinet/ip_lookup.c -I/src/sys/contrib/ipfilter cc1: warnings being treated as errors /src/sys/contrib/ipfilter/netinet/ip_lookup.c: In function 'ip_lookup_iterate': /src/sys/contrib/ipfilter/netinet/ip_lookup.c:581: warning: comparison is always false due to limited range of data type *** Error code 1 Stop in /obj/powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-08-08 23:54:30 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-08-08 23:54:30 - ERROR: failed to build lint kernel TB --- 2007-08-08 23:54:30 - tinderbox aborted TB --- 0.67 user 2.50 system 5067.03 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Fri Aug 10 06:28:47 2007 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 C814D16A419 for ; Fri, 10 Aug 2007 06:28:47 +0000 (UTC) (envelope-from ogautherot@vtr.net) Received: from vtr.net (mail.cgp.vtr.net [200.83.2.210]) by mx1.freebsd.org (Postfix) with ESMTP id 47EA013C457 for ; Fri, 10 Aug 2007 06:28:46 +0000 (UTC) (envelope-from ogautherot@vtr.net) Received: from [192.168.5.7] (HELO av6.vtr.cl) by fe2.vtr.net (CommuniGate Pro SMTP 5.0.12) with ESMTP id 167306495 for freebsd-ppc@freebsd.org; Fri, 10 Aug 2007 01:28:37 -0400 X-ASG-Debug-ID: 1186723716-6aaa0115000f-y3ynpe X-Barracuda-URL: http://192.168.5.7:8000/cgi-bin/mark.cgi X-Barracuda-Connect: mxfe4.cgp.vtr.net[192.168.6.5] X-Barracuda-Start-Time: 1186723716 Received: from vtr.net (mxfe4.cgp.vtr.net [192.168.6.5]) by av6.vtr.cl (Spam Firewall) with ESMTP id 18085430F5E for ; Fri, 10 Aug 2007 01:28:36 -0400 (CLT) Received: by fe4.vtr.net (CommuniGate Pro PIPE 5.0.12) with PIPE id 167334366; Fri, 10 Aug 2007 01:28:36 -0400 X-NHContentFiltered: yes Received: from [190.160.233.20] (account ogautherot@vtr.net HELO olivierbb) by fe4.vtr.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 167334223 for freebsd-ppc@freebsd.org; Fri, 10 Aug 2007 01:28:11 -0400 From: Olivier Gautherot To: freebsd-ppc@freebsd.org X-ASG-Orig-Subj: Model for an ATA driver Date: Fri, 10 Aug 2007 01:29:19 -0400 User-Agent: KMail/1.9.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708100129.20255.ogautherot@vtr.net> X-Barracuda-Virus-Scanned: by Barracuda6 at vtr.cl X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=6.7 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.25123 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Subject: Model for an ATA driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: olivier@gautherot.net List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 06:28:47 -0000 Hi folks! I started investigating how to generate a native ATA driver for the Efika as an alternative to the OFW-based Nexus emulation - the idea is to provide write access in the future to edit partitions. Does anyone have recommendations to approach this? I've found code in /usr/src/sys/dev/ata/ata-chipset.c (seems to be a pot-pourri of all architectures) but don't see the registers allocation... Any hint welcome Cheers -- Olivier Gautherot Email: olivier@gautherot.net LinkedIn: http://www.linkedin.com/in/ogautherot MSN: ogautherot@hotmail.com From owner-freebsd-ppc@FreeBSD.ORG Fri Aug 10 17:34:38 2007 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 E670916A419 for ; Fri, 10 Aug 2007 17:34:38 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.freebsd.org (Postfix) with ESMTP id 7C9F213C4A5 for ; Fri, 10 Aug 2007 17:34:38 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from excfreebsd.hq.netapp.com (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.7.5a-GA) with ESMTP id DAA85465 (AUTH peterg@ptree32.com.au); Sat, 11 Aug 2007 03:34:28 +1000 (EST) Message-ID: <46BCA19C.6070201@freebsd.org> Date: Fri, 10 Aug 2007 10:34:20 -0700 From: Peter Grehan User-Agent: Thunderbird 2.0.0.0 (X11/20070525) MIME-Version: 1.0 To: olivier@gautherot.net References: <200708100129.20255.ogautherot@vtr.net> In-Reply-To: <200708100129.20255.ogautherot@vtr.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Model for an ATA driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grehan@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 17:34:39 -0000 Hi Olivier, > I started investigating how to generate a native ATA driver for the Efika > as an alternative to the OFW-based Nexus emulation - the idea is to provide > write access in the future to edit partitions. > > Does anyone have recommendations to approach this? I've found code in > /usr/src/sys/dev/ata/ata-chipset.c (seems to be a pot-pourri of all > architectures) but don't see the registers allocation... Examples of ATA front-ends for non-standard chipsets are in powerpc/powermac/ata_macio.c & ata_kauai.c. later, Peter.