Changeset 07cb0108 in mainline for uspace/lib/c/generic/irc.c
- Timestamp:
- 2017-10-08T20:55:13Z (6 years ago)
- Branches:
- lfn, master, serial
- Children:
- b08941d
- Parents:
- 53a309e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/irc.c
r53a309e r07cb0108 61 61 /** Enable interrupt. 62 62 * 63 * Allow interrupt delivery. 64 * 63 65 * @param irq IRQ number 64 66 */ … … 80 82 } 81 83 82 83 84 /** Disable interrupt. 85 * 86 * Disallow interrupt delivery. 84 87 * 85 88 * @param irq IRQ number 86 89 */ 87 90 int irc_disable_interrupt(int irq) 91 { 92 int rc; 93 94 if (irc_sess == NULL) { 95 rc = irc_init(); 96 if (rc != EOK) 97 return rc; 98 } 99 100 async_exch_t *exch = async_exchange_begin(irc_sess); 101 rc = async_req_1_0(exch, IRC_DISABLE_INTERRUPT, irq); 102 async_exchange_end(exch); 103 104 return rc; 105 } 106 107 /** Clear interrupt. 108 * 109 * Clear/acknowledge interrupt in interrupt controller so that 110 * another interrupt can be delivered. 111 * 112 * @param irq IRQ number 113 */ 114 int irc_clear_interrupt(int irq) 88 115 { 89 116 int rc;
Note: See TracChangeset
for help on using the changeset viewer.