FreeBSD kernel BXE device code
bxe_dump.h File Reference
#include <sys/cdefs.h>
Include dependency graph for bxe_dump.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dump_header
 
struct  reg_addr
 
struct  wreg_addr
 

Macros

#define DRV_DUMP_XSTORM_WAITP_ADDRESS   0x2b8a80
 
#define DRV_DUMP_TSTORM_WAITP_ADDRESS   0x1b8a80
 
#define DRV_DUMP_USTORM_WAITP_ADDRESS   0x338a80
 
#define DRV_DUMP_CSTORM_WAITP_ADDRESS   0x238a80
 
#define DUMP_CHIP_E1   1
 
#define DUMP_CHIP_E1H   2
 
#define DUMP_CHIP_E2   4
 
#define DUMP_CHIP_E3A0   8
 
#define DUMP_CHIP_E3B0   16
 
#define DUMP_PATH_0   512
 
#define DUMP_PATH_1   1024
 
#define NUM_PRESETS   13
 
#define NUM_CHIPS   5
 
#define BNX2X_DUMP_VERSION   0x61111111
 
#define PAGE_MODE_VALUES_E2   2
 
#define PAGE_READ_REGS_E2   1
 
#define PAGE_WRITE_REGS_E2   1
 
#define PAGE_MODE_VALUES_E3   2
 
#define PAGE_READ_REGS_E3   1
 
#define PAGE_WRITE_REGS_E3   1
 
#define REGS_COUNT   ARRAY_SIZE(reg_addrs)
 
#define IDLE_REGS_COUNT   ARRAY_SIZE(idle_reg_addrs)
 

Functions

 __FBSDID ("$FreeBSD$")
 

Variables

static const uint32_t page_vals_e2 [] = {0, 128}
 
static const uint32_t page_write_regs_e2 [] = {328476}
 
static const struct reg_addr page_read_regs_e2 []
 
static const uint32_t page_vals_e3 [] = {0, 128}
 
static const uint32_t page_write_regs_e3 [] = {328476}
 
static const struct reg_addr page_read_regs_e3 []
 
static const struct reg_addr reg_addrs []
 
static const struct reg_addr idle_reg_addrs []
 
static const uint32_t read_reg_e1 []
 
static const struct wreg_addr wreg_addr_e1
 
static const uint32_t read_reg_e1h []
 
static const struct wreg_addr wreg_addr_e1h
 
static const uint32_t read_reg_e2 []
 
static const struct wreg_addr wreg_addr_e2
 
static const uint32_t read_reg_e3 []
 
static const struct wreg_addr wreg_addr_e3
 
static const uint32_t read_reg_e3b0 []
 
static const struct wreg_addr wreg_addr_e3b0
 
static const unsigned int dump_num_registers [NUM_CHIPS][NUM_PRESETS]
 

Macro Definition Documentation

◆ BNX2X_DUMP_VERSION

#define BNX2X_DUMP_VERSION   0x61111111

Definition at line 58 of file bxe_dump.h.

◆ DRV_DUMP_CSTORM_WAITP_ADDRESS

#define DRV_DUMP_CSTORM_WAITP_ADDRESS   0x238a80

Definition at line 38 of file bxe_dump.h.

◆ DRV_DUMP_TSTORM_WAITP_ADDRESS

#define DRV_DUMP_TSTORM_WAITP_ADDRESS   0x1b8a80

Definition at line 36 of file bxe_dump.h.

◆ DRV_DUMP_USTORM_WAITP_ADDRESS

#define DRV_DUMP_USTORM_WAITP_ADDRESS   0x338a80

Definition at line 37 of file bxe_dump.h.

◆ DRV_DUMP_XSTORM_WAITP_ADDRESS

#define DRV_DUMP_XSTORM_WAITP_ADDRESS   0x2b8a80

Definition at line 35 of file bxe_dump.h.

◆ DUMP_CHIP_E1

#define DUMP_CHIP_E1   1

Definition at line 41 of file bxe_dump.h.

◆ DUMP_CHIP_E1H

#define DUMP_CHIP_E1H   2

Definition at line 42 of file bxe_dump.h.

◆ DUMP_CHIP_E2

#define DUMP_CHIP_E2   4

Definition at line 43 of file bxe_dump.h.

◆ DUMP_CHIP_E3A0

#define DUMP_CHIP_E3A0   8

Definition at line 44 of file bxe_dump.h.

◆ DUMP_CHIP_E3B0

#define DUMP_CHIP_E3B0   16

Definition at line 45 of file bxe_dump.h.

◆ DUMP_PATH_0

#define DUMP_PATH_0   512

Definition at line 46 of file bxe_dump.h.

◆ DUMP_PATH_1

#define DUMP_PATH_1   1024

Definition at line 47 of file bxe_dump.h.

◆ IDLE_REGS_COUNT

#define IDLE_REGS_COUNT   ARRAY_SIZE(idle_reg_addrs)

Definition at line 2187 of file bxe_dump.h.

◆ NUM_CHIPS

#define NUM_CHIPS   5

Definition at line 49 of file bxe_dump.h.

◆ NUM_PRESETS

#define NUM_PRESETS   13

Definition at line 48 of file bxe_dump.h.

◆ PAGE_MODE_VALUES_E2

#define PAGE_MODE_VALUES_E2   2

Definition at line 75 of file bxe_dump.h.

◆ PAGE_MODE_VALUES_E3

#define PAGE_MODE_VALUES_E3   2

Definition at line 84 of file bxe_dump.h.

◆ PAGE_READ_REGS_E2

#define PAGE_READ_REGS_E2   1

Definition at line 76 of file bxe_dump.h.

◆ PAGE_READ_REGS_E3

#define PAGE_READ_REGS_E3   1

Definition at line 85 of file bxe_dump.h.

◆ PAGE_WRITE_REGS_E2

#define PAGE_WRITE_REGS_E2   1

Definition at line 77 of file bxe_dump.h.

◆ PAGE_WRITE_REGS_E3

#define PAGE_WRITE_REGS_E3   1

Definition at line 86 of file bxe_dump.h.

◆ REGS_COUNT

#define REGS_COUNT   ARRAY_SIZE(reg_addrs)

Definition at line 1912 of file bxe_dump.h.

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

Variable Documentation

◆ dump_num_registers

const unsigned int dump_num_registers[NUM_CHIPS][NUM_PRESETS]
static
Initial value:
= {
{19758, 17543, 26951, 18705, 17287, 26695, 19812, 31367, 40775, 19788,
25223, 34631, 19074},
{31750, 18273, 32253, 30697, 18017, 31997, 31804, 32097, 46077, 31780,
25953, 39933, 35895},
{36527, 17928, 33697, 35474, 18700, 34466, 36581, 31752, 47521, 36557,
25608, 41377, 43903},
{45239, 17936, 34387, 44186, 18708, 35156, 45293, 31760, 48211, 45269,
25616, 42067, 43903},
{45302, 17999, 34802, 44249, 18771, 35571, 45356, 31823, 48626, 45332,
25679, 42482, 43903}
}

Definition at line 2219 of file bxe_dump.h.

Referenced by bxe_get_preset_regs_len().

◆ idle_reg_addrs

const struct reg_addr idle_reg_addrs[]
static

Definition at line 1914 of file bxe_dump.h.

Referenced by bxe_get_preset_regs().

◆ page_read_regs_e2

const struct reg_addr page_read_regs_e2[]
static
Initial value:
= {
{0x58000, 4608, DUMP_CHIP_E2, 0x30}
}
#define DUMP_CHIP_E2
Definition: bxe_dump.h:43

Definition at line 80 of file bxe_dump.h.

Referenced by __bxe_get_page_read_ar().

◆ page_read_regs_e3

const struct reg_addr page_read_regs_e3[]
static
Initial value:
= {
{0x58000, 4608, DUMP_CHIP_E3A0 | DUMP_CHIP_E3B0, 0x30}
}
#define DUMP_CHIP_E3B0
Definition: bxe_dump.h:45
#define DUMP_CHIP_E3A0
Definition: bxe_dump.h:44

Definition at line 89 of file bxe_dump.h.

Referenced by __bxe_get_page_read_ar().

◆ page_vals_e2

const uint32_t page_vals_e2[] = {0, 128}
static

Definition at line 78 of file bxe_dump.h.

Referenced by __bxe_get_page_addr_ar().

◆ page_vals_e3

const uint32_t page_vals_e3[] = {0, 128}
static

Definition at line 87 of file bxe_dump.h.

Referenced by __bxe_get_page_addr_ar().

◆ page_write_regs_e2

const uint32_t page_write_regs_e2[] = {328476}
static

Definition at line 79 of file bxe_dump.h.

Referenced by __bxe_get_page_write_ar().

◆ page_write_regs_e3

const uint32_t page_write_regs_e3[] = {328476}
static

Definition at line 88 of file bxe_dump.h.

Referenced by __bxe_get_page_write_ar().

◆ read_reg_e1

const uint32_t read_reg_e1[]
static
Initial value:
= {
0x1b1000}

Definition at line 2189 of file bxe_dump.h.

◆ read_reg_e1h

const uint32_t read_reg_e1h[]
static
Initial value:
= {
0x1b1040, 0x1b1000}

Definition at line 2195 of file bxe_dump.h.

◆ read_reg_e2

const uint32_t read_reg_e2[]
static
Initial value:
= {
0x1b1040, 0x1b1000}

Definition at line 2201 of file bxe_dump.h.

◆ read_reg_e3

const uint32_t read_reg_e3[]
static
Initial value:
= {
0x1b1040, 0x1b1000}

Definition at line 2207 of file bxe_dump.h.

◆ read_reg_e3b0

const uint32_t read_reg_e3b0[]
static
Initial value:
= {
0x1b1040, 0x1b1000}

Definition at line 2213 of file bxe_dump.h.

◆ reg_addrs

const struct reg_addr reg_addrs[]
static

Definition at line 93 of file bxe_dump.h.

Referenced by bxe_get_preset_regs().

◆ wreg_addr_e1

const struct wreg_addr wreg_addr_e1
static
Initial value:
= {
0x1b0c00, 192, 1, read_reg_e1, 0x1f, 0x1fff}
static const uint32_t read_reg_e1[]
Definition: bxe_dump.h:2189

Definition at line 2192 of file bxe_dump.h.

Referenced by bxe_get_preset_regs().

◆ wreg_addr_e1h

const struct wreg_addr wreg_addr_e1h
static
Initial value:
= {
0x1b0c00, 256, 2, read_reg_e1h, 0x1f, 0x1fff}
static const uint32_t read_reg_e1h[]
Definition: bxe_dump.h:2195

Definition at line 2198 of file bxe_dump.h.

Referenced by bxe_get_preset_regs().

◆ wreg_addr_e2

const struct wreg_addr wreg_addr_e2
static
Initial value:
= {
0x1b0c00, 128, 2, read_reg_e2, 0x1f, 0x1fff}
static const uint32_t read_reg_e2[]
Definition: bxe_dump.h:2201

Definition at line 2204 of file bxe_dump.h.

Referenced by bxe_get_preset_regs().

◆ wreg_addr_e3

const struct wreg_addr wreg_addr_e3
static
Initial value:
= {
0x1b0c00, 128, 2, read_reg_e3, 0x1f, 0x1fff}
static const uint32_t read_reg_e3[]
Definition: bxe_dump.h:2207

Definition at line 2210 of file bxe_dump.h.

Referenced by bxe_get_preset_regs().

◆ wreg_addr_e3b0

const struct wreg_addr wreg_addr_e3b0
static
Initial value:
= {
0x1b0c00, 128, 2, read_reg_e3b0, 0x1f, 0x1fff}
static const uint32_t read_reg_e3b0[]
Definition: bxe_dump.h:2213

Definition at line 2216 of file bxe_dump.h.

Referenced by bxe_get_preset_regs().