Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/om/platform-linux/gen/plat_wait.h # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / om / platform-linux / gen / plat_wait.h` 113 lines · 6381 bytes Raw Blame History 1 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ 2 /* Generated by om/platform-linux/gen_effects.sh; do not edit. */ 3 #ifndef CUDAPP_PLAT_plat_wait_H 4 #define CUDAPP_PLAT_plat_wait_H 5 #include 6 #if defined(__aarch64__) 7 /* Generated by omega-bridge src/native.om: native call ABI v1 (docs/NATIVE-ABI.md). 8 * C and C++ declarations for libomega_native. Regenerate it; do not edit it. 9 * Status: 0 done; 1..14 the Omega trap code; 32 argument refused (null, wrong length, misaligned, 10 * overlap); 33 reentry; 34 bad runtime entry; 35 no stack. The result is written only on status 0. 11 * A long is its two's-complement bits; an array is its address then its element count. 12 * Parameter names carry o_ so no language's reserved words collide. */ 13 #ifndef OMEGA_NATIVE_H 14 #define OMEGA_NATIVE_H 15 #include 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 #define OMEGA_OK 0u 20 #define OMEGA_BAD_ARG 32u 21 #define OMEGA_REENTRY 33u 22 #define OMEGA_BAD_RT 34u 23 #define OMEGA_NO_STACK 35u 24 #ifndef OMEGA_NATIVE_CONTEXT_DECL 25 #define OMEGA_NATIVE_CONTEXT_DECL 26 #define OMEGA_CONTEXT_BUSY 36u 27 typedef struct omega_native_context omega_native_context; 28 uint32_t omega_native_context_create(uint64_t capacity, omega_native_context **out); 29 uint32_t omega_native_context_destroy(omega_native_context *context); 30 #endif 31 #define OMEGA2_IDENT_plat_wait "omega-ident 1 unit=plat_wait abi=2 profile=OM-2 src=`fd83645cd4f9e32c5777ebff47f64ea0f7bc288844d1946176cc24a5455ed91d` omc=`d1a3047153e14676c4baf9248fa2b88bb1b68c37cfeb71d76f30f5230c7d2765` host=mapdrop,mapget,maphold,mapbind" 32 const char *omega2_ident_plat_wait(void); 33 /* export fn plat_wait_budget ms ulong to ulong */ 34 uint32_t omega2_plat_wait_budget(uint64_t *result, uint64_t o_ms); 35 /* export fn plat_wait_budget ms ulong to ulong */ 36 uint32_t omega2_ctx_plat_wait_budget(omega_native_context *context, uint64_t *result, uint64_t o_ms); 37 /* export fn plat_wait_hold addr ulong n ulong to long */ 38 uint32_t omega2_plat_wait_hold(uint64_t *result, uint64_t o_addr, uint64_t o_n); 39 /* export fn plat_wait_hold addr ulong n ulong to long */ 40 uint32_t omega2_ctx_plat_wait_hold(omega_native_context *context, uint64_t *result, uint64_t o_addr, uint64_t o_n); 41 /* export fn plat_wait_bind handle long fd long to long */ 42 uint32_t omega2_plat_wait_bind(uint64_t *result, uint64_t o_handle, uint64_t o_fd); 43 /* export fn plat_wait_bind handle long fd long to long */ 44 uint32_t omega2_ctx_plat_wait_bind(omega_native_context *context, uint64_t *result, uint64_t o_handle, uint64_t o_fd); 45 /* export fn plat_wait_drop handle long to long */ 46 uint32_t omega2_plat_wait_drop(uint64_t *result, uint64_t o_handle); 47 /* export fn plat_wait_drop handle long to long */ 48 uint32_t omega2_ctx_plat_wait_drop(omega_native_context *context, uint64_t *result, uint64_t o_handle); 49 /* export fn plat_wait_ge handle long off ulong want ulong polls ulong to long */ 50 uint32_t omega2_plat_wait_ge(uint64_t *result, uint64_t o_handle, uint64_t o_off, uint64_t o_want, uint64_t o_polls); 51 /* export fn plat_wait_ge handle long off ulong want ulong polls ulong to long */ 52 uint32_t omega2_ctx_plat_wait_ge(omega_native_context *context, uint64_t *result, uint64_t o_handle, uint64_t o_off, uint64_t o_want, uint64_t o_polls); 53 #ifdef __cplusplus 54 } 55 #endif 56 #endif 57 58 #elif defined(__x86_64__) 59 /* Generated by omega-bridge src/native.om: native call ABI v1 (docs/NATIVE-ABI.md). 60 * C and C++ declarations for libomega_native. Regenerate it; do not edit it. 61 * Status: 0 done; 1..14 the Omega trap code; 32 argument refused (null, wrong length, misaligned, 62 * overlap); 33 reentry; 34 bad runtime entry; 35 no stack. The result is written only on status 0. 63 * A long is its two's-complement bits; an array is its address then its element count. 64 * Parameter names carry o_ so no language's reserved words collide. */ 65 #ifndef OMEGA_NATIVE_H 66 #define OMEGA_NATIVE_H 67 #include 68 #ifdef __cplusplus 69 extern "C" { 70 #endif 71 #define OMEGA_OK 0u 72 #define OMEGA_BAD_ARG 32u 73 #define OMEGA_REENTRY 33u 74 #define OMEGA_BAD_RT 34u 75 #define OMEGA_NO_STACK 35u 76 #ifndef OMEGA_NATIVE_CONTEXT_DECL 77 #define OMEGA_NATIVE_CONTEXT_DECL 78 #define OMEGA_CONTEXT_BUSY 36u 79 typedef struct omega_native_context omega_native_context; 80 uint32_t omega_native_context_create(uint64_t capacity, omega_native_context **out); 81 uint32_t omega_native_context_destroy(omega_native_context *context); 82 #endif 83 #define OMEGA2_IDENT_plat_wait "omega-ident 1 unit=plat_wait abi=2 profile=OM-2 src=`fd83645cd4f9e32c5777ebff47f64ea0f7bc288844d1946176cc24a5455ed91d` omc=`cf4fcbbb4752c5dd0652b426c0f2d08f82e380e8fc6f5114acf51a4c077bb579` host=mapdrop,mapget,maphold,mapbind" 84 const char *omega2_ident_plat_wait(void); 85 /* export fn plat_wait_budget ms ulong to ulong */ 86 uint32_t omega2_plat_wait_budget(uint64_t *result, uint64_t o_ms); 87 /* export fn plat_wait_budget ms ulong to ulong */ 88 uint32_t omega2_ctx_plat_wait_budget(omega_native_context *context, uint64_t *result, uint64_t o_ms); 89 /* export fn plat_wait_hold addr ulong n ulong to long */ 90 uint32_t omega2_plat_wait_hold(uint64_t *result, uint64_t o_addr, uint64_t o_n); 91 /* export fn plat_wait_hold addr ulong n ulong to long */ 92 uint32_t omega2_ctx_plat_wait_hold(omega_native_context *context, uint64_t *result, uint64_t o_addr, uint64_t o_n); 93 /* export fn plat_wait_bind handle long fd long to long */ 94 uint32_t omega2_plat_wait_bind(uint64_t *result, uint64_t o_handle, uint64_t o_fd); 95 /* export fn plat_wait_bind handle long fd long to long */ 96 uint32_t omega2_ctx_plat_wait_bind(omega_native_context *context, uint64_t *result, uint64_t o_handle, uint64_t o_fd); 97 /* export fn plat_wait_drop handle long to long */ 98 uint32_t omega2_plat_wait_drop(uint64_t *result, uint64_t o_handle); 99 /* export fn plat_wait_drop handle long to long */ 100 uint32_t omega2_ctx_plat_wait_drop(omega_native_context *context, uint64_t *result, uint64_t o_handle); 101 /* export fn plat_wait_ge handle long off ulong want ulong polls ulong to long */ 102 uint32_t omega2_plat_wait_ge(uint64_t *result, uint64_t o_handle, uint64_t o_off, uint64_t o_want, uint64_t o_polls); 103 /* export fn plat_wait_ge handle long off ulong want ulong polls ulong to long */ 104 uint32_t omega2_ctx_plat_wait_ge(omega_native_context *context, uint64_t *result, uint64_t o_handle, uint64_t o_off, uint64_t o_want, uint64_t o_polls); 105 #ifdef __cplusplus 106 } 107 #endif 108 #endif 109 110 #else 111 #error "platform omega units require Linux AArch64 or x86-64" 112 #endif 113 #endif