Changeset b9cc81c6 in mainline
- Timestamp:
- 2025-03-06T17:35:07Z (2 days ago)
- Branches:
- master
- Children:
- 797ab95
- Parents:
- 870841cf
- Location:
- uspace/drv/char
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ns8250/ns8250.c
r870841cf rb9cc81c6 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda 2 3 * Copyright (c) 2010 Lenka Trochtova 3 * Copyright (c) 2017 Jiri Svoboda4 4 * All rights reserved. 5 5 * … … 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); 329 330 static errno_t ns8250_dev_remove(ddf_dev_t *dev); 330 331 … … 332 333 static driver_ops_t ns8250_ops = { 333 334 .dev_add = &ns8250_dev_add, 334 .dev_remove = &ns8250_dev_remove 335 .dev_remove = &ns8250_dev_remove, 336 .dev_quiesce = &ns8250_dev_quiesce 335 337 }; 336 338 … … 966 968 } 967 969 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 968 978 /** Open the device. 969 979 * -
uspace/drv/char/pc-lpt/main.c
r870841cf rb9cc81c6 1 1 /* 2 * Copyright (c) 20 18Jiri Svoboda2 * Copyright (c) 2025 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 46 46 static errno_t pc_lpt_dev_remove(ddf_dev_t *dev); 47 47 static errno_t pc_lpt_dev_gone(ddf_dev_t *dev); 48 static errno_t pc_lpt_dev_quiesce(ddf_dev_t *dev); 48 49 static errno_t pc_lpt_fun_online(ddf_fun_t *fun); 49 50 static errno_t pc_lpt_fun_offline(ddf_fun_t *fun); … … 53 54 .dev_remove = pc_lpt_dev_remove, 54 55 .dev_gone = pc_lpt_dev_gone, 56 .dev_quiesce = pc_lpt_dev_quiesce, 55 57 .fun_online = pc_lpt_fun_online, 56 58 .fun_offline = pc_lpt_fun_offline … … 140 142 } 141 143 144 static errno_t pc_lpt_dev_quiesce(ddf_dev_t *dev) 145 { 146 pc_lpt_t *pc_lpt = (pc_lpt_t *)ddf_dev_data_get(dev); 147 148 ddf_msg(LVL_DEBUG, "pc_lpt_dev_quiesce(%p)", dev); 149 150 pc_lpt_quiesce(pc_lpt); 151 return EOK; 152 } 153 142 154 static errno_t pc_lpt_fun_online(ddf_fun_t *fun) 143 155 { -
uspace/drv/char/pc-lpt/pc-lpt.c
r870841cf rb9cc81c6 1 1 /* 2 * Copyright (c) 20 18Jiri Svoboda2 * Copyright (c) 2025 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 196 196 } 197 197 198 /** Quiesce pc-lpt device */ 199 void pc_lpt_quiesce(pc_lpt_t *lpt) 200 { 201 uint8_t control; 202 203 control = 0; /* nINIT=0, IRQ_ENABLE=0 */ 204 pio_write_8(&lpt->regs->control, control); 205 } 206 198 207 /** Write a single byte to the parallel port. 199 208 * -
uspace/drv/char/pc-lpt/pc-lpt.h
r870841cf rb9cc81c6 1 1 /* 2 * Copyright (c) 20 18Jiri Svoboda2 * Copyright (c) 2025 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 74 74 extern errno_t pc_lpt_remove(pc_lpt_t *); 75 75 extern errno_t pc_lpt_gone(pc_lpt_t *); 76 extern void pc_lpt_quiesce(pc_lpt_t *); 76 77 77 78 #endif
Note:
See TracChangeset
for help on using the changeset viewer.