Date: Tue, 08 Apr 2008 21:57:51 -0500 From: Nathan Whitehorn <nathanw@uchicago.edu> To: freebsd-ppc@freebsd.org Subject: Re: BMAC Ethernet Driver Message-ID: <47FC30AF.2060204@uchicago.edu> In-Reply-To: <CA0871A0-FE0D-4E5D-B1FB-8336D594341B@mac.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
While I'm on the subject of style/architectural questions -- 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: a) Reaching out across the OF tree for the GPU line, looking up its interrupt, then having the device assign it to itself in device_attach()? In the case of SMU (and the onboard audio in G5-era machines), we actually need to use GPIO pins for data transfer, and we should probably have a generic mechanism for this. Without knowledge in a generic GPIO driver that some interrupts belong to other devices, however, they will then be bound here and unavailable to PMU/SMU by other methods. b) Having a macgpio device like NetBSD has that collects these and forwards them to the appropriate handlers? This would involve the gpio device and remote interrupt handler knowing about one another. c) Remapping the interrupts in the bus probe with a quirks table like the way SCC interrupts are collated? SMU, unlike PMU, is not a child of macio, so we would need several versions of this quirk. This sounds like the worst choice. -Nathan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47FC30AF.2060204>