Changeset 82122f3 in mainline for kernel/generic/src/ddi/ddi.c
- Timestamp:
- 2010-12-17T14:51:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1f383dde
- Parents:
- 692f13e4 (diff), 11658b64 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ddi/ddi.c
r692f13e4 r82122f3 232 232 * 233 233 */ 234 unative_t sys_physmem_map(unative_t phys_base, unative_t virt_base,235 unative_t pages, unative_t flags)236 { 237 return ( unative_t) ddi_physmem_map(ALIGN_DOWN((uintptr_t) phys_base,234 sysarg_t sys_physmem_map(sysarg_t phys_base, sysarg_t virt_base, 235 sysarg_t pages, sysarg_t flags) 236 { 237 return (sysarg_t) ddi_physmem_map(ALIGN_DOWN((uintptr_t) phys_base, 238 238 FRAME_SIZE), ALIGN_DOWN((uintptr_t) virt_base, PAGE_SIZE), 239 239 (size_t) pages, (int) flags); … … 247 247 * 248 248 */ 249 unative_t sys_iospace_enable(ddi_ioarg_t *uspace_io_arg)249 sysarg_t sys_iospace_enable(ddi_ioarg_t *uspace_io_arg) 250 250 { 251 251 ddi_ioarg_t arg; 252 252 int rc = copy_from_uspace(&arg, uspace_io_arg, sizeof(ddi_ioarg_t)); 253 253 if (rc != 0) 254 return ( unative_t) rc;255 256 return ( unative_t) ddi_iospace_enable((task_id_t) arg.task_id,254 return (sysarg_t) rc; 255 256 return (sysarg_t) ddi_iospace_enable((task_id_t) arg.task_id, 257 257 (uintptr_t) arg.ioaddr, (size_t) arg.size); 258 258 } … … 265 265 * @retutn Zero on success, error code otherwise. 266 266 */ 267 unative_t sys_interrupt_enable(int irq, int enable)267 sysarg_t sys_interrupt_enable(int irq, int enable) 268 268 { 269 269 /* FIXME: this needs to be generic code, or better not be in kernel at all. */
Note:
See TracChangeset
for help on using the changeset viewer.