|
XenevaOS
|
#include <stdint.h>#include <Hal/AA64/aa64cpu.h>#include <Mm/kmalloc.h>#include <_null.h>#include <Hal/AA64/aa64lowlevel.h>#include <linux/build_bug.h>#include <linux/irqreturn.h>#include <linux/compiler.h>#include <linux/log2.h>#include <linux/math.h>#include <linux/minmax.h>#include <linux/string.h>#include <linux/sprintf.h>#include <linux/bitmap.h>#include <linux/list.h>#include <linux/module.h>#include <linux/printk.h>#include <linux/timer.h>#include <linux/workqueue.h>#include <linux/usb/ch9.h>#include <linux/usb/otg.h>#include <linux/virtio.h>#include <linux/kconfig.h>#include <linux/kstrtox.h>
Go to the source code of this file.
Classes | |
| struct | timespec64 |
Macros | |
| #define | udelay(us) AA64SleepUS(us) |
| #define | mdelay(ms) AA64SleepMS(ms) |
| #define | msleep(ms) mdelay(ms) |
| #define | usleep(us) AA64SleepUS(us) |
| #define | GFP_KERNEL 0 |
| #define | GFP_ATOMIC 1 |
| #define | GFP_DMA 2 |
| #define | GFP_NOWAIT 1 |
| #define | __GFP_ACCOUNT 0 |
| #define | __GFP_BITS_SHIFT 26 |
| #define | container_of(ptr, type, member) ((type*)((char*)(ptr)- offsetof(type,member))) |
| #define | offsetof(type, member) ((size_t)&((type*)0)->member) |
| #define | might_sleep() do {} while (0) |
| #define | spin_lock_init(l) do{} while(0) |
| #define | spin_lock_irqsave(l, f) do{(f) = 0;}while(0) |
| #define | spin_unlock_irqrestore(l, f) do{}while(0) |
| #define | mutex_init(m) do{} while(0) |
| #define | mutex_lock(m) do{}while(0) |
| #define | mutex_unlock(m) do{} while(0) |
| #define | __iomem |
| #define | __user |
| #define | __kernel |
| #define | __force |
| #define | __nocast |
| #define | __safe |
| #define | __aligned(x) __attribute__((aligned(x))) |
| #define | __chk_user_ptr(x) (void)0 |
| #define | __chk_io_ptr(x) (void)0 |
| #define | EPERM 1 |
| #define | ENOENT 2 |
| #define | EIO 5 |
| #define | ENOMEM 12 |
| #define | EBUSY 16 |
| #define | ENXIO 6 |
| #define | E2BIG 7 |
| #define | EPROBE_DEFER 517 |
| #define | EL3HLT 46 |
| #define | ENODEV 19 |
| #define | EINVAL 22 |
| #define | ENOSPC 28 |
| #define | ETIMEDOUT 110 |
| #define | ENOTSUPP 524 |
| #define | ERESTARTSYS 512 |
| #define | MAX_ERRNO 4095 |
| #define | IS_ERR_VALUE(x) ((x) >= (uintptr_t)-MAX_ERRNO) |
| #define | EDEADLK 35 |
| #define | ENAMETOOLONG 36 |
| #define | ENOLCK 37 |
| #define | ENOSYS 38 |
| #define | ENOTEMPTY 39 |
| #define | ELOOP 40 |
| #define | EAGAIN 11 |
| #define | EWOULDBLOCK EAGAIN |
| #define | ENOMSG 42 |
| #define | EIDRM 43 |
| #define | ENOSTR 60 |
| #define | ENODATA 61 |
| #define | ETIME 62 |
| #define | ENOSR 63 |
| #define | EREMOTE 66 |
| #define | ENOLINK 67 |
| #define | EPROTO 71 |
| #define | EMULTIHOP 72 |
| #define | EBADMSG 74 |
| #define | EOVERFLOW 75 |
| #define | EILSEQ 84 |
| #define | EUSERS 87 |
| #define | ENOTSOCK 88 |
| #define | EDESTADDRREQ 89 |
| #define | EMSGSIZE 90 |
| #define | ENOPROTOOPT 92 |
| #define | EPROTONOSUPPORT 93 |
| #define | ESOCKTNOSUPPORT 94 |
| #define | EOPNOTSUPP 95 |
| #define | EAFNOSUPPORT 97 |
| #define | EADDRINUSE 98 |
| #define | EADDRNOTAVAIL 99 |
| #define | ENETDOWN 100 |
| #define | ENETUNREACH 101 |
| #define | ENETRESET 102 |
| #define | ECONNABORTED 103 |
| #define | ECONNRESET 104 |
| #define | ENOBUFS 105 |
| #define | EISCONN 106 |
| #define | ENOTCONN 107 |
| #define | ESHUTDOWN 108 |
| #define | ETOOMANYREGS 109 |
| #define | ECONNREFUSED 111 |
| #define | EHOSTDOWN 112 |
| #define | readb(addr) (*(volatile u8*)((uint8_t*)addr)) |
| #define | readw(addr) (*(volatile u16*)((uint8_t*)addr)) |
| #define | readl(addr) (*(volatile u32*)((uint8_t*)addr)) |
| #define | writeb(v, addr) (*(volatile u8*)((uint8_t*)addr) = (v)) |
| #define | writew(v, addr) (*(volatile u16*)((uint8_t*)addr) = (v)) |
| #define | writel(v, addr) (*(volatile u32*)((uint8_t*)addr) = (v)) |
| #define | BITS_PER_BYTE 8 |
| #define | BITS_PER_LONG 32 |
| #define | BIT(n) (1UL << (n)) |
| #define | BIT_ULL(n) (1ULL << (n)) |
| #define | GENMASK(h, l) (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG-1-(h)))) |
| #define | GENMASK_ULL(h, l) (((~0ULL) << (l)) & (~0ULL >> (63-(h)))) |
| #define | NSEC_PER_USEC 1000LL |
| #define | NSEC_PER_MSEC 1000000LL |
| #define | NSEC_PER_SEC 1000000000LL |
| #define | USEC_PER_MSEC 1000LL |
| #define | USEC_PER_SEC 1000000LL |
| #define | MSEC_PER_SEC 1000LL |
| #define | KTIME_MAX ((ktime_t)~((uint64_t)1<<63)) |
| #define | KTIME_MIN (~KTIME_MAX - 1) |
| #define | KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC) |
| #define | TK_OFFS_BOOT 0 |
| #define | ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) |
| #define | DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) |
| #define | ALIGN(x, a) __ALIGN_KERNEL((x), (a)) |
| #define | __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) |
| #define | __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) |
| #define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
| #define | MAX(a, b) ((a) > (b) ? (a) : (b)) |
| #define | clamp(val, lo, hi) ((val) < (lo) ? (lo) : ((val) > (hi) ? (hi) : (val))) |
| #define | BUILD_BUG_ON(cond) ((void)sizeof(char[1 - 2 * !!(cond)])) |
| #define | upper_32_bits(n) ((uint32_t)((n) >> 32)) |
| #define | lower_32_bits(n) ((uint32_t)((n) & 0xFFFFFFFF)) |
| #define | READ_ONCE(x) __atomic_load_n(&(x), __ATOMIC_RELAXED) |
| #define | WRITE_ONCE(x, val) __atomic_store_n(&(x), (val), __ATOMIC_RELAXED) |
| #define | smp_load_acquire(p) __atomic_load_n((p), __ATOMIC_ACQUIRE) |
| #define | smp_store_release(p, v) __atomic_store_n((p), (v), __ATOMIC_RELEASE) |
| #define | smp_mb() __atomic_thread_fence(__ATOMIC_SEQ_CST) |
| #define | smp_rmb() __atomic_thread_fence(__ATOMIC_ACQUIRE) |
| #define | smp_wmb() __atomic_thread_fence(__ATOMIC_RELEASE) |
| #define | WARN(cond, fmt, ...) |
| #define | WARN_ON_ONCE(cond) |
| #define | __randomize_layout |
| #define | xchg(ptr, v) __atomic_exchange_n((ptr), (v), __ATOMIC_SEQ_CST) |
| #define | BUG() panic("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__) |
| #define | BUG_ON(condition) do { if (condition) { BUG(); } } while (0) |
| #define | __strscpy_2(dst, src, ...) sized_strscpy(dst, src, sizeof(dst)) |
| #define | __strscpy_3(dst, src, size) sized_strscpy(dst, src, size) |
| #define | __strscpy_sel(_1, N, ...) N |
| #define | __strscpy_args(...) __strscpy_sel(__VA_OPT__(__VA_ARGS__, __strscpy_3) , __strscpy_2) |
| #define | strscpy(dst, src, ...) __strscpy_args(__VA_ARGS__)(dst, src, __VA_ARGS__) |
Functions | |
| void | dump_stack (void) |
Variables | |
| int | oops_in_progress |
| #define __ALIGN_KERNEL | ( | x, | |
| a | |||
| ) | __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) |
| #define __ALIGN_KERNEL_MASK | ( | x, | |
| mask | |||
| ) | (((x) + (mask)) & ~(mask)) |
| #define __aligned | ( | x | ) | __attribute__((aligned(x))) |
| #define __chk_io_ptr | ( | x | ) | (void)0 |
| #define __chk_user_ptr | ( | x | ) | (void)0 |
| #define __force |
| #define __GFP_ACCOUNT 0 |
| #define __GFP_BITS_SHIFT 26 |
| #define __iomem |
| #define __kernel |
| #define __nocast |
| #define __randomize_layout |
| #define __safe |
| #define __strscpy_2 | ( | dst, | |
| src, | |||
| ... | |||
| ) | sized_strscpy(dst, src, sizeof(dst)) |
| #define __strscpy_args | ( | ... | ) | __strscpy_sel(__VA_OPT__(__VA_ARGS__, __strscpy_3) , __strscpy_2) |
| #define __strscpy_sel | ( | _1, | |
| N, | |||
| ... | |||
| ) | N |
| #define __user |
| #define ALIGN | ( | x, | |
| a | |||
| ) | __ALIGN_KERNEL((x), (a)) |
| #define BIT | ( | n | ) | (1UL << (n)) |
| #define BIT_ULL | ( | n | ) | (1ULL << (n)) |
| #define BITS_PER_BYTE 8 |
| #define BITS_PER_LONG 32 |
| #define BUG_ON | ( | condition | ) | do { if (condition) { BUG(); } } while (0) |
| #define BUILD_BUG_ON | ( | cond | ) | ((void)sizeof(char[1 - 2 * !!(cond)])) |
| #define clamp | ( | val, | |
| lo, | |||
| hi | |||
| ) | ((val) < (lo) ? (lo) : ((val) > (hi) ? (hi) : (val))) |
| #define container_of | ( | ptr, | |
| type, | |||
| member | |||
| ) | ((type*)((char*)(ptr)- offsetof(type,member))) |
| #define E2BIG 7 |
| #define EADDRINUSE 98 |
| #define EADDRNOTAVAIL 99 |
| #define EAFNOSUPPORT 97 |
| #define EAGAIN 11 |
| #define EBADMSG 74 |
| #define EBUSY 16 |
| #define ECONNABORTED 103 |
| #define ECONNREFUSED 111 |
| #define ECONNRESET 104 |
| #define EDEADLK 35 |
| #define EDESTADDRREQ 89 |
| #define EHOSTDOWN 112 |
| #define EIDRM 43 |
| #define EILSEQ 84 |
| #define EINVAL 22 |
| #define EIO 5 |
| #define EISCONN 106 |
| #define EL3HLT 46 |
| #define ELOOP 40 |
| #define EMSGSIZE 90 |
| #define EMULTIHOP 72 |
| #define ENAMETOOLONG 36 |
| #define ENETDOWN 100 |
| #define ENETRESET 102 |
| #define ENETUNREACH 101 |
| #define ENOBUFS 105 |
| #define ENODATA 61 |
| #define ENODEV 19 |
| #define ENOENT 2 |
| #define ENOLCK 37 |
| #define ENOLINK 67 |
| #define ENOMEM 12 |
| #define ENOMSG 42 |
| #define ENOPROTOOPT 92 |
| #define ENOSPC 28 |
| #define ENOSR 63 |
| #define ENOSTR 60 |
| #define ENOSYS 38 |
| #define ENOTCONN 107 |
| #define ENOTEMPTY 39 |
| #define ENOTSOCK 88 |
| #define ENOTSUPP 524 |
| #define ENXIO 6 |
| #define EOPNOTSUPP 95 |
| #define EOVERFLOW 75 |
| #define EPERM 1 |
| #define EPROBE_DEFER 517 |
| #define EPROTO 71 |
| #define EPROTONOSUPPORT 93 |
| #define EREMOTE 66 |
| #define ERESTARTSYS 512 |
| #define ESHUTDOWN 108 |
| #define ESOCKTNOSUPPORT 94 |
| #define ETIME 62 |
| #define ETIMEDOUT 110 |
| #define ETOOMANYREGS 109 |
| #define EUSERS 87 |
| #define EWOULDBLOCK EAGAIN |
| #define GENMASK | ( | h, | |
| l | |||
| ) | (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG-1-(h)))) |
| #define GFP_ATOMIC 1 |
| #define GFP_DMA 2 |
| #define GFP_KERNEL 0 |
| #define GFP_NOWAIT 1 |
| #define KTIME_MIN (~KTIME_MAX - 1) |
| #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC) |
| #define lower_32_bits | ( | n | ) | ((uint32_t)((n) & 0xFFFFFFFF)) |
| #define MAX_ERRNO 4095 |
| #define mdelay | ( | ms | ) | AA64SleepMS(ms) |
| #define might_sleep | ( | ) | do {} while (0) |
| #define MSEC_PER_SEC 1000LL |
| #define msleep | ( | ms | ) | mdelay(ms) |
| #define mutex_init | ( | m | ) | do{} while(0) |
| #define mutex_lock | ( | m | ) | do{}while(0) |
| #define mutex_unlock | ( | m | ) | do{} while(0) |
| #define NSEC_PER_MSEC 1000000LL |
| #define NSEC_PER_SEC 1000000000LL |
| #define NSEC_PER_USEC 1000LL |
| #define offsetof | ( | type, | |
| member | |||
| ) | ((size_t)&((type*)0)->member) |
| #define READ_ONCE | ( | x | ) | __atomic_load_n(&(x), __ATOMIC_RELAXED) |
| #define smp_load_acquire | ( | p | ) | __atomic_load_n((p), __ATOMIC_ACQUIRE) |
| #define smp_mb | ( | ) | __atomic_thread_fence(__ATOMIC_SEQ_CST) |
| #define smp_rmb | ( | ) | __atomic_thread_fence(__ATOMIC_ACQUIRE) |
| #define smp_store_release | ( | p, | |
| v | |||
| ) | __atomic_store_n((p), (v), __ATOMIC_RELEASE) |
| #define smp_wmb | ( | ) | __atomic_thread_fence(__ATOMIC_RELEASE) |
| #define spin_lock_init | ( | l | ) | do{} while(0) |
| #define spin_unlock_irqrestore | ( | l, | |
| f | |||
| ) | do{}while(0) |
| #define strscpy | ( | dst, | |
| src, | |||
| ... | |||
| ) | __strscpy_args(__VA_ARGS__)(dst, src, __VA_ARGS__) |
| #define TK_OFFS_BOOT 0 |
| #define udelay | ( | us | ) | AA64SleepUS(us) |
| #define upper_32_bits | ( | n | ) | ((uint32_t)((n) >> 32)) |
| #define USEC_PER_MSEC 1000LL |
| #define USEC_PER_SEC 1000000LL |
| #define usleep | ( | us | ) | AA64SleepUS(us) |
| #define WARN | ( | cond, | |
| fmt, | |||
| ... | |||
| ) |
| #define WARN_ON_ONCE | ( | cond | ) |
| #define WRITE_ONCE | ( | x, | |
| val | |||
| ) | __atomic_store_n(&(x), (val), __ATOMIC_RELAXED) |
| #define xchg | ( | ptr, | |
| v | |||
| ) | __atomic_exchange_n((ptr), (v), __ATOMIC_SEQ_CST) |
| typedef uintptr_t dma_addr_t |
| typedef unsigned int fmode_t |
| typedef unsigned int gfp_t |
| typedef unsigned long irq_hw_number_t |
| typedef unsigned long kernel_ulong_t |
| typedef int mutex |
| typedef unsigned long pgoff_t |
| typedef uintptr_t phys_addr_t |
| typedef uintptr_t resource_size_t |
| typedef int spinlock_t |
| typedef unsigned int umode_t |
| void dump_stack | ( | void | ) |
|
extern |