Thread (10 messages) flat view 10 messages, 4 authors, 2006-06-21

Re: [PATCH] mpic: add support for serial mode interrupts

From: Mark A. Greer <hidden>
Date: 2006-06-19 20:19:59

On Mon, Jun 19, 2006 at 03:11:21PM -0500, Olof Johansson wrote:
Hi,

On Mon, Jun 19, 2006 at 01:08:11PM -0700, Mark A. Greer wrote:
quoted
MPC10x-style interrupt controllers have a serial mode that allows
several interrupts to be clocked in through one INT signal.
[...]
quoted
+	/* For serial interrupts & set clock ratio */
+	if (flags & MPIC_SERIAL_MODE)
+		mpic_write(mpic->gregs, MPIC_GREG_GLOBAL_CONF_1,
+			mpic_read(mpic->gregs, MPIC_GREG_GLOBAL_CONF_1)
+				| (1<<27) | (0x7<<28));
Can you define some constants so others can see just what the bits mean
without digging up documentation, instead of just doing magic numbers?
Yeah, I can probably do that...  :)

Mark
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help