FreeBSD kernel CXGBE device code
|
Go to the source code of this file.
Data Structures | |
struct | el |
struct | cudbg_init_hdr |
struct | cudbg_flash_hdr |
struct | cudbg_param |
struct | cudbg_init |
Typedefs | |
typedef int(* | cudbg_print_cb) (char *str,...) |
Functions | |
static void | set_dbg_bitmap (u8 *bitmap, enum CUDBG_DBG_ENTITY_TYPE type) |
static void | reset_dbg_bitmap (u8 *bitmap, enum CUDBG_DBG_ENTITY_TYPE type) |
void * | cudbg_alloc_handle (void) |
static struct cudbg_init * | cudbg_get_init (void *handle) |
int | cudbg_collect (void *handle, void *outbuf, u32 *outbuf_size) |
void | cudbg_free_handle (IN void *handle) |
int | cudbg_read_flash_details (void *handle, struct cudbg_flash_hdr *data) |
int | cudbg_read_flash_data (void *handle, void *data_buf, u32 data_buf_size) |
Variables | |
static char ATTRIBUTE_UNUSED * | err_msg [] |
static struct el ATTRIBUTE_UNUSED | entity_list [] |
#define cudbg_debug | ( | pdbg_init, | |
format, | |||
... | |||
) | do { } while (0) |
void * cudbg_alloc_handle | ( | void | ) |
cudbg_alloc_handle - Allocates and initializes a handle that represents cudbg state. Needs to called first before calling any other function.
returns a pointer to memory that has a cudbg_init structure at the begining and enough space after that for internal book keeping.
Definition at line 81 of file cudbg_common.c.
References cudbg_private::dbg_init, cudbg_init::header, and init_cudbg_hdr().
Referenced by cudbg_dump().
int cudbg_collect | ( | void * | handle, |
void * | outbuf, | ||
u32 * | outbuf_size | ||
) |
cudbg_collect - Collect and store debug information.
@handle : A pointer returned by cudbg_alloc_handle. @outbuf : pointer to output buffer, to store the collected information or to use it as a scratch buffer in case HW flash is used to store the debug information. @outbuf_size : Size of output buffer.
If the function succeeds, the return value will be size of debug information collected and stored. -ve value represent error.
Definition at line 203 of file cudbg_lib.c.
References cudbg_init::adap, align_debug_buffer(), BUFFER_WARN_LIMIT, cudbg_hdr::chip_ver, adapter_params::chipid, CUDBG_ALL, CUDBG_EXT_DATA_VALID, CUDBG_EXT_ENTITY, CUDBG_MAJOR_VERSION, CUDBG_MAX_ENTITY, CUDBG_MINOR_VERSION, CUDBG_SIGNATURE, CUDBG_STATUS_SMALL_BUFF, CUDBG_SYSTEM_ERROR, cudbg_buffer::data, cudbg_hdr::data_len, large_entity::entity_code, ENTITY_FLAG_FW_NO_ATTACH, entity_list, cudbg_entity_hdr::entity_type, cudbg_entity_hdr::flag, get_entity_hdr(), get_next_ext_entity_hdr(), cudbg_hdr::hdr_flags, cudbg_entity_hdr::hdr_flags, cudbg_hdr::hdr_len, is_fw_attached(), is_large_entity(), large_entity_list, cudbg_hdr::major_ver, cudbg_hdr::max_entities, cudbg_hdr::minor_ver, cudbg_entity_hdr::next_ext_offset, cudbg_buffer::offset, adapter::params, cudbg_init::print, process_entity, reset_skip_entity(), cudbg_hdr::signature, cudbg_entity_hdr::size, cudbg_buffer::size, skip_entity(), cudbg_entity_hdr::start_offset, cudbg_entity_hdr::sys_err, cudbg_error::sys_err, cudbg_entity_hdr::sys_warn, cudbg_error::sys_warn, t4_get_flash_params(), cudbg_init::use_flash, cudbg_init::verbose, and wr_entity_to_flash().
Referenced by cudbg_dump().
void cudbg_free_handle | ( | IN void * | handle | ) |
cudbg_free_handle - Release cudbg resources.
@handle : A pointer returned by cudbg_alloc_handle.
Referenced by cudbg_dump().
|
inlinestatic |
Definition at line 425 of file cudbg.h.
Referenced by cudbg_dump().
int cudbg_read_flash_data | ( | void * | handle, |
void * | data_buf, | ||
u32 | data_buf_size | ||
) |
cudbg_read_flash_data - Read cudbg dump contents stored in flash.
@handle : A pointer returned by cudbg_hello. @data_buf : A pointer to data buffer. @data_buf_size : Data buffer size.
Definition at line 302 of file cudbg_flash_utils.c.
References CUDBG_MAX_ENTITY, and cudbg_read_flash().
int cudbg_read_flash_details | ( | void * | handle, |
struct cudbg_flash_hdr * | data | ||
) |
cudbg_read_flash_data - Read cudbg “flash” header from adapter flash. This will be used by the consumer mainly to know the size of the data in flash.
@handle : A pointer returned by cudbg_hello. @data : A pointer to data/header buffer
Definition at line 293 of file cudbg_flash_utils.c.
References cudbg_read_flash().
|
inlinestatic |
Definition at line 403 of file cudbg.h.
Referenced by set_sector_availability().
|
inlinestatic |
Definition at line 395 of file cudbg.h.
Referenced by set_sector_availability().
|
static |
Definition at line 227 of file cudbg.h.
Referenced by cudbg_collect().
|
static |
Definition at line 105 of file cudbg.h.
Referenced by collect_edc0_meminfo(), collect_edc1_meminfo(), collect_mc0_meminfo(), and collect_mc1_meminfo().