Rev 3938 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3938 | Rev 3941 | ||
---|---|---|---|
Line 154... | Line 154... | ||
154 | /* Called from getc(). */ |
154 | /* Called from getc(). */ |
155 | void ns16550_suspend(chardev_t *d) |
155 | void ns16550_suspend(chardev_t *d) |
156 | { |
156 | { |
157 | } |
157 | } |
158 | 158 | ||
159 | irq_ownership_t ns16550_claim(void *instance) |
159 | irq_ownership_t ns16550_claim(irq_t *irq) |
160 | { |
160 | { |
161 | ns16550_instance_t *ns16550_instance = instance; |
161 | ns16550_instance_t *ns16550_instance = irq->instance; |
162 | ns16550_t *dev = ns16550_instance->ns16550; |
162 | ns16550_t *dev = ns16550_instance->ns16550; |
163 | 163 | ||
164 | if (pio_read_8(&dev->lsr) & LSR_DATA_READY) |
164 | if (pio_read_8(&dev->lsr) & LSR_DATA_READY) |
165 | return IRQ_ACCEPT; |
165 | return IRQ_ACCEPT; |
166 | else |
166 | else |