Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Apr 2008 23:43:59 -0700
From:      Peter Grehan <grehan@freebsd.org>
To:        Nathan Whitehorn <nathanw@uchicago.edu>
Cc:        freebsd-ppc@freebsd.org
Subject:   Re: BMAC Ethernet Driver
Message-ID:  <47FC65AF.4080409@freebsd.org>
In-Reply-To: <47FC30AF.2060204@uchicago.edu>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

  How does the SMU use the GPIO's ? Just toggling ?

> This would involve the gpio device and remote interrupt handler
> knowing about one another.

  Hopefully it is a one-way path with the gpio device knowing nothing 
about the users that call it.

later,

Peter.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47FC65AF.4080409>