Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
csr_wifi_hip_dump.c File Reference
#include <linux/slab.h>
#include "csr_wifi_hip_unifi.h"
#include "csr_wifi_hip_unifiversion.h"
#include "csr_wifi_hip_card.h"

Go to the source code of this file.

Data Structures

struct  coredump_buf
 
struct  coredump_zone
 

Macros

#define HIP_CDUMP_FIRST_CPUREG   (0xFFE0) /* First CPU register */
 
#define HIP_CDUMP_FIRST_LO   (0) /* Start of low address range */
 
#define HIP_CDUMP_FIRST_HI_MAC   (0x3C00) /* Start of MAC high area */
 
#define HIP_CDUMP_FIRST_HI_PHY   (0x1C00) /* Start of PHY high area */
 
#define HIP_CDUMP_FIRST_SH   (0) /* Start of shared memory area */
 
#define HIP_CDUMP_NCPUREGS   (10) /* No. of 16-bit XAP registers */
 
#define HIP_CDUMP_NWORDS_LO   (0x0100) /* Low area size in 16-bit words */
 
#define HIP_CDUMP_NWORDS_HI   (0x0400) /* High area size in 16-bit words */
 
#define HIP_CDUMP_NWORDS_SH   (0x0500) /* Shared memory area size, 16-bit words */
 
#define HIP_CDUMP_NUM_ZONES   7 /* Number of UniFi memory areas to capture */
 

Typedefs

typedef struct coredump_buf coredump_buffer
 

Functions

CsrResult unifi_coredump_request_at_next_reset (card_t *card, s8 enable)
 
CsrResult unifi_coredump_handle_request (card_t *card)
 
CsrResult unifi_coredump_capture (card_t *card, struct unifi_coredump_req *req)
 
CsrResult unifi_coredump_get_value (card_t *card, struct unifi_coredump_req *req)
 
CsrResult unifi_coredump_init (card_t *card, u16 num_dump_buffers)
 
void unifi_coredump_free (card_t *card)
 

Macro Definition Documentation

#define HIP_CDUMP_FIRST_CPUREG   (0xFFE0) /* First CPU register */

Definition at line 26 of file csr_wifi_hip_dump.c.

#define HIP_CDUMP_FIRST_HI_MAC   (0x3C00) /* Start of MAC high area */

Definition at line 28 of file csr_wifi_hip_dump.c.

#define HIP_CDUMP_FIRST_HI_PHY   (0x1C00) /* Start of PHY high area */

Definition at line 29 of file csr_wifi_hip_dump.c.

#define HIP_CDUMP_FIRST_LO   (0) /* Start of low address range */

Definition at line 27 of file csr_wifi_hip_dump.c.

#define HIP_CDUMP_FIRST_SH   (0) /* Start of shared memory area */

Definition at line 30 of file csr_wifi_hip_dump.c.

#define HIP_CDUMP_NCPUREGS   (10) /* No. of 16-bit XAP registers */

Definition at line 32 of file csr_wifi_hip_dump.c.

#define HIP_CDUMP_NUM_ZONES   7 /* Number of UniFi memory areas to capture */

Definition at line 37 of file csr_wifi_hip_dump.c.

#define HIP_CDUMP_NWORDS_HI   (0x0400) /* High area size in 16-bit words */

Definition at line 34 of file csr_wifi_hip_dump.c.

#define HIP_CDUMP_NWORDS_LO   (0x0100) /* Low area size in 16-bit words */

Definition at line 33 of file csr_wifi_hip_dump.c.

#define HIP_CDUMP_NWORDS_SH   (0x0500) /* Shared memory area size, 16-bit words */

Definition at line 35 of file csr_wifi_hip_dump.c.

Typedef Documentation

Function Documentation

CsrResult unifi_coredump_capture ( card_t card,
struct unifi_coredump_req req 
)

Definition at line 191 of file csr_wifi_hip_dump.c.

void unifi_coredump_free ( card_t card)

Definition at line 822 of file csr_wifi_hip_dump.c.

CsrResult unifi_coredump_get_value ( card_t card,
struct unifi_coredump_req req 
)

Definition at line 355 of file csr_wifi_hip_dump.c.

CsrResult unifi_coredump_handle_request ( card_t card)

Definition at line 144 of file csr_wifi_hip_dump.c.

CsrResult unifi_coredump_init ( card_t card,
u16  num_dump_buffers 
)

Definition at line 737 of file csr_wifi_hip_dump.c.

CsrResult unifi_coredump_request_at_next_reset ( card_t card,
s8  enable 
)

Definition at line 103 of file csr_wifi_hip_dump.c.