Re: Fwd: [RFC] IRQ type flags

Zwane Mwaikambo
2005-12-14T15:42:58Z

Hi Russell,

On Mon, 12 Dec 2005, Russell King wrote:

> * Move SA_TRIGGER into linux/signal.h

...

> @@ -705,6 +709,12 @@ int setup_irq(unsigned int irq, struct i
> desc->running = 0;
> desc->pending = 0;
> desc->disable_depth = 1;
> +
> + if (new->flags & SA_TRIGGER_MASK) {
> + unsigned int type = new->flags & SA_TRIGGER;

Hmm, where is SA_TRIGGER defined?

> +#define SA_TRIGGER_LOW 0x00000008
> +#define SA_TRIGGER_HIGH 0x00000004
> +#define SA_TRIGGER_FALLING 0x00000002
> +#define SA_TRIGGER_RISING 0x00000001
> +#define SA_TRIGGER_MASK (SA_TRIGGER_HIGH|SA_TRIGGER_LOW|\
> + SA_TRIGGER_RISING|SA_TRIGGER_FALLING)

Thanks