Changeset 7f1c620 in mainline for generic/src/ddi/ddi.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/ddi/ddi.c
r991779c5 r7f1c620 63 63 * there was a problem in creating address space area. 64 64 */ 65 static int ddi_physmem_map( __address pf, __addressvp, count_t pages, int flags)65 static int ddi_physmem_map(uintptr_t pf, uintptr_t vp, count_t pages, int flags) 66 66 { 67 67 ipl_t ipl; … … 111 111 * ENOENT if there is no task matching the specified ID. 112 112 */ 113 static int ddi_iospace_enable(task_id_t id, __addressioaddr, size_t size)113 static int ddi_iospace_enable(task_id_t id, uintptr_t ioaddr, size_t size) 114 114 { 115 115 ipl_t ipl; … … 159 159 * @return 0 on success, otherwise it returns error code found in errno.h 160 160 */ 161 __native sys_physmem_map(__native phys_base, __native virt_base, __nativepages,162 __nativeflags)163 { 164 return ( __native) ddi_physmem_map(ALIGN_DOWN((__address) phys_base, FRAME_SIZE),165 ALIGN_DOWN(( __address) virt_base, PAGE_SIZE), (count_t) pages,161 unative_t sys_physmem_map(unative_t phys_base, unative_t virt_base, unative_t pages, 162 unative_t flags) 163 { 164 return (unative_t) ddi_physmem_map(ALIGN_DOWN((uintptr_t) phys_base, FRAME_SIZE), 165 ALIGN_DOWN((uintptr_t) virt_base, PAGE_SIZE), (count_t) pages, 166 166 (int) flags); 167 167 } … … 173 173 * @return 0 on success, otherwise it returns error code found in errno.h 174 174 */ 175 __nativesys_iospace_enable(ddi_ioarg_t *uspace_io_arg)175 unative_t sys_iospace_enable(ddi_ioarg_t *uspace_io_arg) 176 176 { 177 177 ddi_ioarg_t arg; … … 180 180 rc = copy_from_uspace(&arg, uspace_io_arg, sizeof(ddi_ioarg_t)); 181 181 if (rc != 0) 182 return ( __native) rc;182 return (unative_t) rc; 183 183 184 return ( __native) ddi_iospace_enable((task_id_t) arg.task_id, (__address) arg.ioaddr, (size_t) arg.size);184 return (unative_t) ddi_iospace_enable((task_id_t) arg.task_id, (uintptr_t) arg.ioaddr, (size_t) arg.size); 185 185 } 186 186 … … 193 193 * @return Zero on success or EPERM if callers capabilities are not sufficient. 194 194 */ 195 __nativesys_preempt_control(int enable)195 unative_t sys_preempt_control(int enable) 196 196 { 197 197 if (! cap_get(TASK) & CAP_PREEMPT_CONTROL)
Note:
See TracChangeset
for help on using the changeset viewer.