Changeset 9426c1a3 in mainline
- Timestamp:
- 2006-04-14T09:08:45Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 523fad8
- Parents:
- 6a347b1e
- Location:
- libc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/generic/ddi.c
r6a347b1e r9426c1a3 49 49 { 50 50 task_id_t task_id; 51 ddi_ arg_t arg;51 ddi_memarg_t arg; 52 52 53 53 arg.task_id = id; … … 59 59 return __SYSCALL1(SYS_MAP_PHYSMEM, (sysarg_t) &arg); 60 60 } 61 62 /** Enable I/O space range to task. 63 * 64 * Caller of this function must have the IO_MEM_MANAGER capability. 65 * 66 * @param id Task ID. 67 * @param ioaddr Starting address of the I/O range. 68 * @param size Size of the range. 69 * 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 72 * was some problem in allocating memory. 73 */ 74 int enable_iospace(task_id_t id, void *ioaddr, unsigned long size) 75 { 76 task_id_t task_id; 77 ddi_ioarg_t arg; 78 79 arg.task_id = id; 80 arg.ioaddr = ioaddr; 81 arg.size = size; 82 83 return __SYSCALL1(SYS_ENABLE_IOSPACE, (sysarg_t) &arg); 84 } -
libc/include/ddi.h
r6a347b1e r9426c1a3 33 33 34 34 extern int map_physmem(task_id_t id, void *pf, void *vp, unsigned long pages, int writable); 35 extern int enable_iospace(task_id_t id, void *ioaddr, unsigned long size); 35 36 36 37 #endif
Note:
See TracChangeset
for help on using the changeset viewer.