Changeset eadaeae8 in mainline for uspace/drv/char/ns8250
- Timestamp:
- 2018-03-21T20:58:49Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3be9d10
- Parents:
- 874381a
- File:
-
- 1 edited
-
uspace/drv/char/ns8250/ns8250.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ns8250/ns8250.c
r874381a readaeae8 165 165 int irq; 166 166 /** IRQ capability handle */ 167 int irq_cap;167 cap_irq_handle_t irq_handle; 168 168 /** The base i/o address of the devices registers. */ 169 169 uintptr_t io_addr; … … 804 804 */ 805 805 static inline errno_t ns8250_register_interrupt_handler(ns8250_t *ns, 806 cap_ handle_t *handle)806 cap_irq_handle_t *ihandle) 807 807 { 808 808 return register_interrupt_handler(ns->dev, ns->irq, 809 ns8250_interrupt_handler, NULL, handle);809 ns8250_interrupt_handler, NULL, ihandle); 810 810 } 811 811 … … 816 816 static inline errno_t ns8250_unregister_interrupt_handler(ns8250_t *ns) 817 817 { 818 return unregister_interrupt_handler(ns->dev, ns->irq_ cap);818 return unregister_interrupt_handler(ns->dev, ns->irq_handle); 819 819 } 820 820 … … 876 876 877 877 /* Register interrupt handler. */ 878 rc = ns8250_register_interrupt_handler(ns, &ns->irq_cap); 878 ns->irq_handle = CAP_NIL; 879 rc = ns8250_register_interrupt_handler(ns, &ns->irq_handle); 879 880 if (rc != EOK) { 880 881 ddf_msg(LVL_ERROR, "Failed to register interrupt handler.");
Note:
See TracChangeset
for help on using the changeset viewer.
