| /* |
| * Copyright (c) 2012-2018 LK Trusty Authors. All Rights Reserved. |
| * |
| * Permission is hereby granted, free of charge, to any person obtaining |
| * a copy of this software and associated documentation files |
| * (the "Software"), to deal in the Software without restriction, |
| * including without limitation the rights to use, copy, modify, merge, |
| * publish, distribute, sublicense, and/or sell copies of the Software, |
| * and to permit persons to whom the Software is furnished to do so, |
| * subject to the following conditions: |
| * |
| * The above copyright notice and this permission notice shall be |
| * included in all copies or substantial portions of the Software. |
| * |
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| */ |
| |
| /* This file is auto-generated. !!! DO NOT EDIT !!! */ |
| |
| /* clang-format off */ |
| |
| #define __NR_writev 0x1 |
| #define __NR_brk 0x2 |
| #define __NR_exit_etc 0x3 |
| #define __NR_readv 0x4 |
| #define __NR_ioctl 0x5 |
| #define __NR_nanosleep 0x6 |
| #define __NR_gettime 0x7 |
| #define __NR_mmap 0x8 |
| #define __NR_munmap 0x9 |
| #define __NR_prepare_dma 0xa |
| #define __NR_finish_dma 0xb |
| #define __NR_set_user_tls 0xc |
| #define __NR_dup 0xd |
| #define __NR_port_create 0x10 |
| #define __NR_connect 0x11 |
| #define __NR_accept 0x12 |
| #define __NR_close 0x13 |
| #define __NR_set_cookie 0x14 |
| #define __NR_handle_set_create 0x15 |
| #define __NR_handle_set_ctrl 0x16 |
| #define __NR_wait 0x18 |
| #define __NR_wait_any 0x19 |
| #define __NR_get_msg 0x20 |
| #define __NR_read_msg 0x21 |
| #define __NR_put_msg 0x22 |
| #define __NR_send_msg 0x23 |
| #define __NR_memref_create 0x40 |
| |
| #ifndef ASSEMBLY |
| |
| #include <lk/compiler.h> |
| #include <stdint.h> |
| |
| __BEGIN_CDECLS |
| |
| struct dma_pmem; |
| struct iovec; |
| struct ipc_msg; |
| struct ipc_msg_info; |
| struct uevent; |
| struct uuid; |
| |
| long _trusty_writev(uint32_t fd, const struct iovec *iov, uint32_t iovcnt); |
| void* _trusty_brk(void* brk); |
| long _trusty_exit_etc(int32_t status, uint32_t flags); |
| long _trusty_readv(uint32_t fd, const struct iovec *iov, uint32_t iovcnt); |
| long _trusty_ioctl(uint32_t fd, uint32_t req, void *buf); |
| long _trusty_nanosleep(uint32_t clock_id, uint32_t flags, uint64_t sleep_time); |
| long _trusty_gettime(uint32_t clock_id, uint32_t flags, int64_t *time); |
| long _trusty_mmap(void *uaddr, uint32_t size, uint32_t flags, int32_t handle); |
| long _trusty_munmap(void *uaddr, uint32_t size); |
| long _trusty_prepare_dma(void *uaddr, uint32_t size, uint32_t flags, struct dma_pmem *pmem); |
| long _trusty_finish_dma(void *uaddr, uint32_t size, uint32_t flags); |
| long _trusty_set_user_tls(void *uaddr); |
| long _trusty_dup(int32_t handle); |
| long _trusty_port_create(const char *path, uint32_t num_recv_bufs, uint32_t recv_buf_size, uint32_t flags); |
| long _trusty_connect(const char *path, uint32_t flags); |
| long _trusty_accept(int32_t handle, struct uuid *peer_uuid); |
| long _trusty_close(int32_t handle); |
| long _trusty_set_cookie(int32_t handle, void *cookie); |
| long _trusty_handle_set_create(void); |
| long _trusty_handle_set_ctrl(int32_t handle, uint32_t cmd, struct uevent *evt); |
| long _trusty_wait(int32_t handle, struct uevent *event, uint32_t timeout_msecs); |
| long _trusty_wait_any(struct uevent *event, uint32_t timeout_msecs); |
| long _trusty_get_msg(int32_t handle, struct ipc_msg_info *msg_info); |
| long _trusty_read_msg(int32_t handle, uint32_t msg_id, uint32_t offset, struct ipc_msg *msg); |
| long _trusty_put_msg(int32_t handle, uint32_t msg_id); |
| long _trusty_send_msg(int32_t handle, struct ipc_msg *msg); |
| long _trusty_memref_create(void *uaddr, uint32_t size, uint32_t mmap_prot); |
| |
| __END_CDECLS |
| |
| #endif |