From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 19 Jun 2006 15:11:21 -0500 To: "Mark A. Greer" Subject: Re: [PATCH] mpic: add support for serial mode interrupts Message-ID: <20060619201121.GC4845@pb15.lixom.net> References: <20060619200811.GA15524@mag.az.mvista.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20060619200811.GA15524@mag.az.mvista.com> From: Olof Johansson Cc: linuxppc-dev , Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi, On Mon, Jun 19, 2006 at 01:08:11PM -0700, Mark A. Greer wrote: > MPC10x-style interrupt controllers have a serial mode that allows > several interrupts to be clocked in through one INT signal. [...] > + /* 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? MPIC_GREG_GLOBAL_CONF_0 already does so; you can copy the style from there. Thanks, -Olof