Changes in uspace/drv/bus/isa/isa.c [b7fd2a0:f77c1c9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/isa/isa.c
rb7fd2a0 rf77c1c9 130 130 } 131 131 132 static errno_t isa_fun_enable_interrupt(ddf_fun_t *fnode, int irq)132 static int isa_fun_enable_interrupt(ddf_fun_t *fnode, int irq) 133 133 { 134 134 isa_fun_t *fun = isa_fun(fnode); … … 140 140 } 141 141 142 static errno_t isa_fun_disable_interrupt(ddf_fun_t *fnode, int irq)142 static int isa_fun_disable_interrupt(ddf_fun_t *fnode, int irq) 143 143 { 144 144 isa_fun_t *fun = isa_fun(fnode); … … 150 150 } 151 151 152 static errno_t isa_fun_clear_interrupt(ddf_fun_t *fnode, int irq)152 static int isa_fun_clear_interrupt(ddf_fun_t *fnode, int irq) 153 153 { 154 154 isa_fun_t *fun = isa_fun(fnode); … … 160 160 } 161 161 162 static errno_t isa_fun_setup_dma(ddf_fun_t *fnode,162 static int isa_fun_setup_dma(ddf_fun_t *fnode, 163 163 unsigned int channel, uint32_t pa, uint32_t size, uint8_t mode) 164 164 { … … 182 182 } 183 183 184 static errno_t isa_fun_remain_dma(ddf_fun_t *fnode,184 static int isa_fun_remain_dma(ddf_fun_t *fnode, 185 185 unsigned channel, size_t *size) 186 186 { … … 232 232 }; 233 233 234 static errno_t isa_dev_add(ddf_dev_t *dev);235 static errno_t isa_dev_remove(ddf_dev_t *dev);236 static errno_t isa_fun_online(ddf_fun_t *fun);237 static errno_t isa_fun_offline(ddf_fun_t *fun);234 static int isa_dev_add(ddf_dev_t *dev); 235 static int isa_dev_remove(ddf_dev_t *dev); 236 static int isa_fun_online(ddf_fun_t *fun); 237 static int isa_fun_offline(ddf_fun_t *fun); 238 238 239 239 /** The isa device driver's standard operations */ … … 277 277 int fd; 278 278 size_t len; 279 errno_t rc;279 int rc; 280 280 size_t nread; 281 281 struct stat st; … … 578 578 "function %s", id, score, ddf_fun_get_name(fun->fnode)); 579 579 580 errno_t rc = ddf_fun_add_match_id(fun->fnode, id, score);580 int rc = ddf_fun_add_match_id(fun->fnode, id, score); 581 581 if (rc != EOK) { 582 582 ddf_msg(LVL_ERROR, "Failed adding match ID: %s", … … 698 698 } 699 699 700 static errno_t isa_dev_add(ddf_dev_t *dev)700 static int isa_dev_add(ddf_dev_t *dev) 701 701 { 702 702 async_sess_t *sess; 703 errno_t rc;703 int rc; 704 704 705 705 ddf_msg(LVL_DEBUG, "isa_dev_add, device handle = %d", … … 767 767 } 768 768 769 static errno_t isa_dev_remove(ddf_dev_t *dev)769 static int isa_dev_remove(ddf_dev_t *dev) 770 770 { 771 771 isa_bus_t *isa = isa_bus(dev); … … 777 777 isa_fun_t, bus_link); 778 778 779 errno_t rc = ddf_fun_offline(fun->fnode);779 int rc = ddf_fun_offline(fun->fnode); 780 780 if (rc != EOK) { 781 781 fibril_mutex_unlock(&isa->mutex); … … 807 807 } 808 808 809 static errno_t isa_fun_online(ddf_fun_t *fun)809 static int isa_fun_online(ddf_fun_t *fun) 810 810 { 811 811 ddf_msg(LVL_DEBUG, "isa_fun_online()"); … … 813 813 } 814 814 815 static errno_t isa_fun_offline(ddf_fun_t *fun)815 static int isa_fun_offline(ddf_fun_t *fun) 816 816 { 817 817 ddf_msg(LVL_DEBUG, "isa_fun_offline()");
Note:
See TracChangeset
for help on using the changeset viewer.