Changeset 646849b3 in mainline for uspace/lib
- Timestamp:
- 2024-05-17T12:25:26Z (18 months ago)
- Branches:
- master
- Children:
- 60744cb
- Parents:
- 59c0f478
- git-author:
- Jiri Svoboda <jiri@…> (2024-05-16 19:25:07)
- git-committer:
- Jiri Svoboda <jiri@…> (2024-05-17 12:25:26)
- Location:
- uspace/lib
- Files:
-
- 3 edited
-
ata/src/ata.c (modified) (2 diffs)
-
drv/generic/interrupt.c (modified) (2 diffs)
-
drv/include/ddf/interrupt.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ata/src/ata.c
r59c0f478 r646849b3 446 446 static errno_t ata_bd_init_irq(ata_channel_t *chan) 447 447 { 448 if (!chan->params.have_irq) 449 return EOK; 450 448 451 return chan->params.irq_enable(chan->params.arg); 449 452 } … … 452 455 static void ata_bd_fini_irq(ata_channel_t *chan) 453 456 { 457 if (!chan->params.have_irq) 458 return; 459 454 460 (void)chan->params.irq_disable(chan->params.arg); 455 461 } -
uspace/lib/drv/generic/interrupt.c
r59c0f478 r646849b3 1 1 /* 2 * Copyright (c) 2024 Jiri Svoboda 2 3 * Copyright (c) 2010 Lenka Trochtova 3 4 * All rights reserved. … … 50 51 } 51 52 53 errno_t register_interrupt_handler_arg(ddf_dev_t *dev, int irq, 54 interrupt_handler_t *handler, void *arg, const irq_code_t *irq_code, 55 cap_irq_handle_t *handle) 56 { 57 (void)dev; 58 return async_irq_subscribe(irq, (async_notification_handler_t) handler, 59 arg, irq_code, handle); 60 } 61 52 62 errno_t unregister_interrupt_handler(ddf_dev_t *dev, cap_irq_handle_t handle) 53 63 { -
uspace/lib/drv/include/ddf/interrupt.h
r59c0f478 r646849b3 1 1 /* 2 * Copyright (c) 2024 Jiri Svoboda 2 3 * Copyright (c) 2010 Lenka Trochtova 3 4 * All rights reserved. … … 52 53 extern errno_t register_interrupt_handler(ddf_dev_t *, int, interrupt_handler_t *, 53 54 const irq_code_t *, cap_irq_handle_t *); 55 extern errno_t register_interrupt_handler_arg(ddf_dev_t *, int, 56 interrupt_handler_t *, void *, const irq_code_t *, cap_irq_handle_t *); 54 57 extern errno_t unregister_interrupt_handler(ddf_dev_t *, cap_irq_handle_t); 55 58
Note:
See TracChangeset
for help on using the changeset viewer.
