Changes in uspace/drv/char/ns8250/ns8250.c [b9cc81c6:fafb8e5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ns8250/ns8250.c
rb9cc81c6 rfafb8e5 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda3 2 * Copyright (c) 2010 Lenka Trochtova 3 * Copyright (c) 2017 Jiri Svoboda 4 4 * All rights reserved. 5 5 * … … 157 157 /** Parent session */ 158 158 async_sess_t *parent_sess; 159 /** I/O registers * /159 /** I/O registers **/ 160 160 ns8250_regs_t *regs; 161 161 /** Are there any clients connected to the device? */ … … 327 327 328 328 static errno_t ns8250_dev_add(ddf_dev_t *dev); 329 static errno_t ns8250_dev_quiesce(ddf_dev_t *dev);330 329 static errno_t ns8250_dev_remove(ddf_dev_t *dev); 331 330 … … 333 332 static driver_ops_t ns8250_ops = { 334 333 .dev_add = &ns8250_dev_add, 335 .dev_remove = &ns8250_dev_remove, 336 .dev_quiesce = &ns8250_dev_quiesce 334 .dev_remove = &ns8250_dev_remove 337 335 }; 338 336 … … 785 783 * data and reading the line status register. 786 784 * 787 * @p ram icall IRQ event notificatoin788 * @param arg Argument (ns8250_t *)789 */ 790 static inline void ns8250_interrupt_handler(ipc_call_t *icall, void *arg)791 { 792 ns8250_t *ns = (ns8250_t *)arg;785 * @param dev The serial port device. 786 * 787 */ 788 static inline void ns8250_interrupt_handler(ipc_call_t *icall, ddf_dev_t *dev) 789 { 790 ns8250_t *ns = dev_ns8250(dev); 793 791 uint8_t iir = pio_read_8(&ns->regs->iid); 794 792 if ((iir & NS8250_IID_CAUSE_MASK) == NS8250_IID_CAUSE_RXSTATUS) { … … 811 809 { 812 810 return register_interrupt_handler(ns->dev, ns->irq, 813 ns8250_interrupt_handler, (void *)ns,NULL, ihandle);811 ns8250_interrupt_handler, NULL, ihandle); 814 812 } 815 813 … … 968 966 } 969 967 970 static errno_t ns8250_dev_quiesce(ddf_dev_t *dev)971 {972 ns8250_t *ns = dev_ns8250(dev);973 974 ns8250_port_interrupts_disable(ns->regs);975 return EOK;976 }977 978 968 /** Open the device. 979 969 *
Note:
See TracChangeset
for help on using the changeset viewer.