L4Re/departure

Change of libsystypes/idl/dataspace.idl

181:49d8e9637cdb
libsystypes/idl/dataspace.idl
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libsystypes/idl/dataspace.idl	Wed Aug 25 01:28:08 2021 +0200
     1.3 @@ -0,0 +1,44 @@
     1.4 +#include <l4/re/protocols.h>  /* L4RE_PROTO_DATASPACE */
     1.5 +#include <systypes/base.h>    /* address_t, offset_t */
     1.6 +
     1.7 +/* A dataspace interface. */
     1.8 +
     1.9 +[protocol(L4RE_PROTO_DATASPACE)]
    1.10 +interface Dataspace
    1.11 +{
    1.12 +  /* Map memory within a dataspace. */
    1.13 +
    1.14 +  [opcode(0)] void map(in offset_t offset, in address_t hot_spot,
    1.15 +                       in map_flags_t flags, out fpage region);
    1.16 +
    1.17 +  /* Clear a dataspace. */
    1.18 +
    1.19 +  [opcode(1)] void clear(in address_t offset, in offset_t size);
    1.20 +
    1.21 +  /* Obtain statistics about a dataspace. */
    1.22 +
    1.23 +  [opcode(2)] void info(out offset_t size, out map_flags_t flags);
    1.24 +
    1.25 +  /* Copy data between dataspaces. */
    1.26 +
    1.27 +  [opcode(3)] void copy_in(in address_t dest_offset, in cap source,
    1.28 +                           in address_t source_offset, in offset_t size);
    1.29 +
    1.30 +  /* Deprecated: take a reference to a dataspace. */
    1.31 +
    1.32 +  [opcode(4)] void take();
    1.33 +
    1.34 +  /* Deprecated: release a reference to a dataspace. */
    1.35 +
    1.36 +  [opcode(5)] void release();
    1.37 +
    1.38 +  /* Obtain the physical address of the given offset in a dataspace, along with
    1.39 +     the largest physically contiguous region at or after the address in the
    1.40 +     dataspace. */
    1.41 +
    1.42 +  [opcode(6)] void phys(in address_t offset, out address_t address, out l4_size_t size);
    1.43 +
    1.44 +  /* Allocate at least the given size at the given address in a dataspace. */
    1.45 +
    1.46 +  [opcode(7)] void allocate(in address_t offset, in l4_size_t size);
    1.47 +};