Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jan 2015 09:41:17 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        Warner Losh <imp@freebsd.org>, Ian Lepore <ian@freebsd.org>, John Baldwin <jhb@freebsd.org>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: interrupt muxes, bus memory space and other fun amusing things
Message-ID:  <5F7CBB50-6C91-49C9-BF69-301496DDE792@bsdimp.com>
In-Reply-To: <CAJ-Vmo=LqZ6Z9oYU5Usv4rHY4AffZPy4QBqwN4onr2STq5OfMg@mail.gmail.com>
References:  <CAJ-Vmo=LqZ6Z9oYU5Usv4rHY4AffZPy4QBqwN4onr2STq5OfMg@mail.gmail.com>

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

--Apple-Mail=_2A0DCA3C-28BD-4620-8D80-8CC4E9EB79BE
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> So if I were Linux, I'd just implement a mux that pretends to trigger
> interrupts in a much bigger IRQ space. Ie, they map IP0..IP7 to
> irq0..7, then they pick another IRQ range for the AHB interrupts, and
> another IRQ range for the IP2/IP3 interrupt mux. They have a
> hard-coded mux that takes care of triggering the software IRQ based on
> the hardware interrupt and mux register contents.
>=20
> So, how should I approach this?

Same way. You=E2=80=99d create an interrupt device that registers an =
interrupt
for the mux, then farms it out based on the contents of the registers.
The MIPS interrupt handler might need some work (arm did) to
allow this to happen, but it isn=E2=80=99t super difficult (though IIRc =
it is tedious).

Warner



--Apple-Mail=_2A0DCA3C-28BD-4620-8D80-8CC4E9EB79BE
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJUqr6uAAoJEGwc0Sh9sBEADiUP/0E+HHna+qJYtDDPXDK+4VcA
LZizeR3Eg1MOs58i4vBvkw4DUbJSKFQV2d3eowfh5bcZ9C7GxPin53Re0ckCG9zq
W4VJgF2Pb7taZ1wEQH9R/djdX07/JGBiHE9lkVt/Z1mS4TFcQTjRXpHL29BZMO7k
atswBinLFXKH0P6rTUlTNIylYaOJPWw3RkRpMMD/Li4LPQBxkBSgml86FP79oh6N
h71kX3qeJSy1egzUxs2pfO6H6ksqQu7tL05hqhFcCB7KVctfKvuqVKHpDdMaZ37h
HHvaq18cUl8QGsrlSrgZ1krhLvX+O9kIO0cIGqDBZctZpJO76opQfD55/YwlD0uy
HGaRwzrCHnvoaI5j3uUprEF2GwfEpkS5VdY7FkjunYRjFEVLGCEwTWzgVFJ19fer
ofz/PFFLF1ebby7AAlLi0e2lXYKj17d+lTJfzLD68FYHvwLILKV1/e9425ZxVeEt
R60qe3iozSyMqcnfwnLF0x9N+tmZmyxLa3H/ybPg31W0y4JXwKyvMOxYoektRuXM
Ne5X/7LOCj72if8pls+Ko3QJ9wEMj+VlFUUF8HnSkz/z3PELpwRONpszu3dUBHiG
qc47nqPgyNP/9JHYZ+Bag919dTDnGMGUSP7lzwYKJjpAHNSdIgUAR7CEuntFlEUm
TJCXMTGKOwRyk3BqtxNI
=vqwO
-----END PGP SIGNATURE-----

--Apple-Mail=_2A0DCA3C-28BD-4620-8D80-8CC4E9EB79BE--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5F7CBB50-6C91-49C9-BF69-301496DDE792>