Server IP : 104.21.38.3 / Your IP : 162.158.108.42 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-143/include/uapi/linux/misc/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright 2018-2020 Broadcom. */ #ifndef __UAPI_LINUX_MISC_BCM_VK_H #define __UAPI_LINUX_MISC_BCM_VK_H #include <linux/ioctl.h> #include <linux/types.h> #define BCM_VK_MAX_FILENAME 64 struct vk_image { __u32 type; /* Type of image */ #define VK_IMAGE_TYPE_BOOT1 1 /* 1st stage (load to SRAM) */ #define VK_IMAGE_TYPE_BOOT2 2 /* 2nd stage (load to DDR) */ __u8 filename[BCM_VK_MAX_FILENAME]; /* Filename of image */ }; struct vk_reset { __u32 arg1; __u32 arg2; }; #define VK_MAGIC 0x5e /* Load image to Valkyrie */ #define VK_IOCTL_LOAD_IMAGE _IOW(VK_MAGIC, 0x2, struct vk_image) /* Send Reset to Valkyrie */ #define VK_IOCTL_RESET _IOW(VK_MAGIC, 0x4, struct vk_reset) /* * Firmware Status accessed directly via BAR space */ #define VK_BAR_FWSTS 0x41c #define VK_BAR_COP_FWSTS 0x428 /* VK_FWSTS definitions */ #define VK_FWSTS_RELOCATION_ENTRY (1UL << 0) #define VK_FWSTS_RELOCATION_EXIT (1UL << 1) #define VK_FWSTS_INIT_START (1UL << 2) #define VK_FWSTS_ARCH_INIT_DONE (1UL << 3) #define VK_FWSTS_PRE_KNL1_INIT_DONE (1UL << 4) #define VK_FWSTS_PRE_KNL2_INIT_DONE (1UL << 5) #define VK_FWSTS_POST_KNL_INIT_DONE (1UL << 6) #define VK_FWSTS_INIT_DONE (1UL << 7) #define VK_FWSTS_APP_INIT_START (1UL << 8) #define VK_FWSTS_APP_INIT_DONE (1UL << 9) #define VK_FWSTS_MASK 0xffffffff #define VK_FWSTS_READY (VK_FWSTS_INIT_START | \ VK_FWSTS_ARCH_INIT_DONE | \ VK_FWSTS_PRE_KNL1_INIT_DONE | \ VK_FWSTS_PRE_KNL2_INIT_DONE | \ VK_FWSTS_POST_KNL_INIT_DONE | \ VK_FWSTS_INIT_DONE | \ VK_FWSTS_APP_INIT_START | \ VK_FWSTS_APP_INIT_DONE) /* Deinit */ #define VK_FWSTS_APP_DEINIT_START (1UL << 23) #define VK_FWSTS_APP_DEINIT_DONE (1UL << 24) #define VK_FWSTS_DRV_DEINIT_START (1UL << 25) #define VK_FWSTS_DRV_DEINIT_DONE (1UL << 26) #define VK_FWSTS_RESET_DONE (1UL << 27) #define VK_FWSTS_DEINIT_TRIGGERED (VK_FWSTS_APP_DEINIT_START | \ VK_FWSTS_APP_DEINIT_DONE | \ VK_FWSTS_DRV_DEINIT_START | \ VK_FWSTS_DRV_DEINIT_DONE) /* Last nibble for reboot reason */ #define VK_FWSTS_RESET_REASON_SHIFT 28 #define VK_FWSTS_RESET_REASON_MASK (0xf << VK_FWSTS_RESET_REASON_SHIFT) #define VK_FWSTS_RESET_SYS_PWRUP (0x0 << VK_FWSTS_RESET_REASON_SHIFT) #define VK_FWSTS_RESET_MBOX_DB (0x1 << VK_FWSTS_RESET_REASON_SHIFT) #define VK_FWSTS_RESET_M7_WDOG (0x2 << VK_FWSTS_RESET_REASON_SHIFT) #define VK_FWSTS_RESET_TEMP (0x3 << VK_FWSTS_RESET_REASON_SHIFT) #define VK_FWSTS_RESET_PCI_FLR (0x4 << VK_FWSTS_RESET_REASON_SHIFT) #define VK_FWSTS_RESET_PCI_HOT (0x5 << VK_FWSTS_RESET_REASON_SHIFT) #define VK_FWSTS_RESET_PCI_WARM (0x6 << VK_FWSTS_RESET_REASON_SHIFT) #define VK_FWSTS_RESET_PCI_COLD (0x7 << VK_FWSTS_RESET_REASON_SHIFT) #define VK_FWSTS_RESET_L1 (0x8 << VK_FWSTS_RESET_REASON_SHIFT) #define VK_FWSTS_RESET_L0 (0x9 << VK_FWSTS_RESET_REASON_SHIFT) #define VK_FWSTS_RESET_UNKNOWN (0xf << VK_FWSTS_RESET_REASON_SHIFT) #endif /* __UAPI_LINUX_MISC_BCM_VK_H */