|
libxcoder 5.8.0
|
Read the firmware logs from BAR4 space. More...
#include <stdio.h>#include <stdint.h>#include <stddef.h>#include <stdlib.h>#include <string.h>#include <sys/stat.h>#include <unistd.h>#include <fcntl.h>#include <errno.h>#include <limits.h>#include <dirent.h>#include <sys/mman.h>#include <stdbool.h>#include <pwd.h>#include <time.h>#include <ctype.h>#include "ni_quadraprobe.h"#include "ni_util.h"Go to the source code of this file.
Macros | |
| #define | PCI_SYSFS_PATH "/sys/bus/pci/devices" |
| #define | QUADRA_VENDOR_ID 0x1d82 |
| #define | QUADRA_DEVICE_ID 0x0401 |
| #define | ARTIFACTS_BAR4_OFFSET 0xF920000 /* BAR4 offset to artifacts buffer in DDR */ |
| #define | BAR4_MIN_ADDRESS 0x840000000ULL |
| #define | NOR_FLASH_CMD_ADDRESS 0x84F8F5020ULL |
| #define | NOR_FLASH_CMD_OFFSET (NOR_FLASH_CMD_ADDRESS - BAR4_MIN_ADDRESS) |
| #define | NOR_READ_WAIT_SECONDS 100 |
| #define | CORE_LOG_PTR_TABLE_OFFSET 0xF8F5000 |
| #define | CORE_RESET_LOG_PTR_TABLE_OFFSET 0xF8FD0C0 |
| #define | CORE_LOG_SIZE ((size_t)1024 * 1024) /* 1 MB per-core normal log buffer */ |
| #define | CORE_RESET_LOG_SIZE ((size_t)64 * 1024) /* 64 KB per-core reset log buffer */ |
| #define | FL_LOG_ENTRY_SIZE 128 /* bytes per FL log record */ |
| #define | FL_CORE_IDX 5 |
| #define ARTIFACTS_BAR4_OFFSET 0xF920000 /* BAR4 offset to artifacts buffer in DDR */ |
Definition at line 54 of file ni_quadraprobe.c.
| #define BAR4_MIN_ADDRESS 0x840000000ULL |
Definition at line 56 of file ni_quadraprobe.c.
| #define CORE_LOG_PTR_TABLE_OFFSET 0xF8F5000 |
Definition at line 61 of file ni_quadraprobe.c.
| #define CORE_LOG_SIZE ((size_t)1024 * 1024) /* 1 MB per-core normal log buffer */ |
Definition at line 63 of file ni_quadraprobe.c.
| #define CORE_RESET_LOG_PTR_TABLE_OFFSET 0xF8FD0C0 |
Definition at line 62 of file ni_quadraprobe.c.
| #define CORE_RESET_LOG_SIZE ((size_t)64 * 1024) /* 64 KB per-core reset log buffer */ |
Definition at line 64 of file ni_quadraprobe.c.
| #define FL_CORE_IDX 5 |
Definition at line 67 of file ni_quadraprobe.c.
| #define FL_LOG_ENTRY_SIZE 128 /* bytes per FL log record */ |
Definition at line 66 of file ni_quadraprobe.c.
| #define NOR_FLASH_CMD_ADDRESS 0x84F8F5020ULL |
Definition at line 57 of file ni_quadraprobe.c.
| #define NOR_FLASH_CMD_OFFSET (NOR_FLASH_CMD_ADDRESS - BAR4_MIN_ADDRESS) |
Definition at line 58 of file ni_quadraprobe.c.
| #define NOR_READ_WAIT_SECONDS 100 |
Definition at line 59 of file ni_quadraprobe.c.
| #define PCI_SYSFS_PATH "/sys/bus/pci/devices" |
Definition at line 49 of file ni_quadraprobe.c.
| #define QUADRA_DEVICE_ID 0x0401 |
Definition at line 51 of file ni_quadraprobe.c.
| #define QUADRA_VENDOR_ID 0x1d82 |
Definition at line 50 of file ni_quadraprobe.c.