Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2008 08:46:01 -0700
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        grehan@freebsd.org
Cc:        freebsd-ppc@freebsd.org
Subject:   Re: BMAC Ethernet Driver
Message-ID:  <D2568EBD-AED9-4685-9EE7-297286AA3046@mac.com>
In-Reply-To: <47FC65AF.4080409@freebsd.org>
References:  <C83E8810-B68B-49B5-A7F4-8B72A4FFFFDA@mac.com> <47F3D2BC.7060001@uchicago.edu> <47F422A0.9080907@uchicago.edu> <CB59240D-E385-4D4C-9372-E9D418502F61@mac.com> <EB224547-BCC9-4467-98E5-1D8EC0352349@mac.com> <Pine.GSO.4.62.0804022152590.20081@harper.uchicago.edu> <C1AB89FF-C466-46B0-BA83-2AD2989E73F9@mac.com> <47F4E007.90802@uchicago.edu> <3B02E59E-5399-40B6-9747-2F49200FD708@mac.com> <47F59C13.9030705@uchicago.edu> <20080404061224.GB11845@FreeBSD.org> <47FC0F9B.6070902@uchicago.edu> <CA0871A0-FE0D-4E5D-B1FB-8336D594341B@mac.com> <47FC30AF.2060204@uchicago.edu> <47FC65AF.4080409@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Apr 8, 2008, at 11:43 PM, Peter Grehan wrote:
> Hi Nathan,
>
>> Apple PMU and SMU devices, probably among others, use macio gpio  
>> lines for interrupts instead of the IRQs listed in the OF  
>> interrupts property. These lines aren't children of the devices,  
>> and so their interrupts are not associated with them by the regular  
>> probes.
>> Is the correct way to handle this:
> ...
>> b) Having a macgpio device like NetBSD has that collects these and  
>> forwards them to the appropriate handlers?
>
> This would get my vote. I would think the gpio device would register  
> itself, perhaps with it's macio parent, and clients would access it  
> through kobj methods. These would include interrupt forwarding, and  
> GPIO toggling.

On the MPC85xxCDS there's a second PIC. The way I'm approaching
it now is to have the interrupt infrastructure work with the
second PIC, but it seems that we just need to make it a bit
more generic: have the interrupt intrastructure work with
multiple PICs, possibly nested. A gpio driver could register
itself as a PIC and all it needs to do is implement the PIC
KOBJ interface.

Would that work?

-- 
Marcel Moolenaar
xcllnt@mac.com





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D2568EBD-AED9-4685-9EE7-297286AA3046>