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