Changeset f52e54da in mainline for generic/include/ddi


Ignore:
Timestamp:
2006-04-14T09:08:10Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9e1b581
Parents:
9c1ecf9
Message:

Kernel support for SYS_ENABLE_IOSPACE.
amd64 and ia32 provide dummy implementation thereof.

Location:
generic/include/ddi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • generic/include/ddi/ddi.h

    r9c1ecf9 rf52e54da  
    3232#include <ddi/ddi_arg.h>
    3333#include <arch/types.h>
     34#include <typedefs.h>
    3435
    35 extern __native sys_map_physmem(ddi_arg_t *uspace_ddi_arg);
     36extern __native sys_map_physmem(ddi_memarg_t *uspace_mem_arg);
     37extern __native sys_enable_iospace(ddi_ioarg_t *uspace_io_arg);
     38
     39/*
     40 * Interface to be implemented by all architectures.
     41 */
     42extern int ddi_enable_iospace_arch(task_t *task, __address ioaddr, size_t size);
    3643
    3744#endif
  • generic/include/ddi/ddi_arg.h

    r9c1ecf9 rf52e54da  
    3737        unsigned long pages;            /** Number of pages to map. */
    3838        int writable;                   /** True if the mapping should be writable. */
    39 } ddi_arg_t;
     39} ddi_memarg_t;
     40
     41/** Structure encapsulating arguments for SYS_ENABLE_IOSPACE syscall. */
     42typedef struct {
     43        unsigned long long task_id;     /** ID of the destination task. */
     44        void *ioaddr;                   /** Starting I/O space address. */
     45        unsigned long size;             /** Number of bytes. */
     46} ddi_ioarg_t;
    4047
    4148#endif
Note: See TracChangeset for help on using the changeset viewer.