Rev 3934 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3934 | Rev 3941 | ||
---|---|---|---|
Line 124... | Line 124... | ||
124 | spinlock_unlock(&i8042_mouse_irq.lock); |
124 | spinlock_unlock(&i8042_mouse_irq.lock); |
125 | 125 | ||
126 | interrupts_restore(ipl); |
126 | interrupts_restore(ipl); |
127 | } |
127 | } |
128 | 128 | ||
129 | static irq_ownership_t i8042_claim(void *instance) |
129 | static irq_ownership_t i8042_claim(irq_t *irq) |
130 | { |
130 | { |
131 | i8042_instance_t *i8042_instance = instance; |
131 | i8042_instance_t *i8042_instance = irq->instance; |
132 | i8042_t *dev = i8042_instance->i8042; |
132 | i8042_t *dev = i8042_instance->i8042; |
133 | if (pio_read_8(&dev->status) & i8042_BUFFER_FULL_MASK) |
133 | if (pio_read_8(&dev->status) & i8042_BUFFER_FULL_MASK) |
134 | return IRQ_ACCEPT; |
134 | return IRQ_ACCEPT; |
135 | else |
135 | else |
136 | return IRQ_DECLINE; |
136 | return IRQ_DECLINE; |