Rev 1213 | Rev 1279 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1213 | Rev 1254 | ||
|---|---|---|---|
| Line 69... | Line 69... | ||
| 69 | * |
69 | * |
| 70 | * @return 0 on success, EPERM if the caller lacks the CAP_IO_MANAGER capability, |
70 | * @return 0 on success, EPERM if the caller lacks the CAP_IO_MANAGER capability, |
| 71 | * ENOENT if there is no task with specified ID and ENOMEM if there |
71 | * ENOENT if there is no task with specified ID and ENOMEM if there |
| 72 | * was some problem in allocating memory. |
72 | * was some problem in allocating memory. |
| 73 | */ |
73 | */ |
| 74 | int enable_iospace(task_id_t id, void *ioaddr, unsigned long size) |
74 | int iospace_enable(task_id_t id, void *ioaddr, unsigned long size) |
| 75 | { |
75 | { |
| 76 | task_id_t task_id; |
76 | task_id_t task_id; |
| 77 | ddi_ioarg_t arg; |
77 | ddi_ioarg_t arg; |
| 78 | 78 | ||
| 79 | arg.task_id = id; |
79 | arg.task_id = id; |
| 80 | arg.ioaddr = ioaddr; |
80 | arg.ioaddr = ioaddr; |
| 81 | arg.size = size; |
81 | arg.size = size; |
| 82 | 82 | ||
| 83 | return __SYSCALL1(SYS_ENABLE_IOSPACE, (sysarg_t) &arg); |
83 | return __SYSCALL1(SYS_IOSPACE_ENABLE, (sysarg_t) &arg); |
| 84 | } |
84 | } |
| 85 | 85 | ||
| 86 | /** Interrupt control |
86 | /** Interrupt control |
| 87 | * |
87 | * |
| 88 | * @param enable 1 - enable interrupts, 0 - disable interrupts |
88 | * @param enable 1 - enable interrupts, 0 - disable interrupts |