Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
qdio_debug.h File Reference
#include <asm/debug.h>
#include <asm/qdio.h>
#include "qdio.h"

Go to the source code of this file.

Macros

#define QDIO_DBF_LEN   16
 
#define DBF_ERR   3 /* error conditions */
 
#define DBF_WARN   4 /* warning conditions */
 
#define DBF_INFO   6 /* informational */
 
#define DBF_EVENT(text...)
 
#define DBF_ERROR(text...)
 
#define DBF_DEV_EVENT(level, device, text...)
 

Functions

void qdio_allocate_dbf (struct qdio_initialize *init_data, struct qdio_irq *irq_ptr)
 
void qdio_setup_debug_entries (struct qdio_irq *irq_ptr, struct ccw_device *cdev)
 
void qdio_shutdown_debug_entries (struct qdio_irq *irq_ptr, struct ccw_device *cdev)
 
int qdio_debug_init (void)
 
void qdio_debug_exit (void)
 

Variables

debug_info_tqdio_dbf_setup
 
debug_info_tqdio_dbf_error
 

Macro Definition Documentation

#define DBF_DEV_EVENT (   level,
  device,
  text... 
)
Value:
do { \
if (qdio_dbf_passes(device->debug_area, level)) { \
snprintf(debug_buffer, QDIO_DBF_LEN, text); \
debug_text_event(device->debug_area, level, debug_buffer); \
} \
} while (0)

Definition at line 65 of file qdio_debug.h.

#define DBF_ERR   3 /* error conditions */

Definition at line 25 of file qdio_debug.h.

#define DBF_ERROR (   text...)
Value:
do { \
snprintf(debug_buffer, QDIO_DBF_LEN, text); \
debug_text_event(qdio_dbf_error, DBF_ERR, debug_buffer); \
} while (0)

Definition at line 49 of file qdio_debug.h.

#define DBF_EVENT (   text...)
Value:
do { \
snprintf(debug_buffer, QDIO_DBF_LEN, text); \
debug_text_event(qdio_dbf_setup, DBF_ERR, debug_buffer); \
} while (0)

Definition at line 33 of file qdio_debug.h.

#define DBF_INFO   6 /* informational */

Definition at line 27 of file qdio_debug.h.

#define DBF_WARN   4 /* warning conditions */

Definition at line 26 of file qdio_debug.h.

#define QDIO_DBF_LEN   16

Definition at line 14 of file qdio_debug.h.

Function Documentation

void qdio_allocate_dbf ( struct qdio_initialize init_data,
struct qdio_irq irq_ptr 
)

Definition at line 20 of file qdio_debug.c.

void qdio_debug_exit ( void  )

Definition at line 300 of file qdio_debug.c.

int qdio_debug_init ( void  )

Definition at line 284 of file qdio_debug.c.

void qdio_setup_debug_entries ( struct qdio_irq irq_ptr,
struct ccw_device cdev 
)

Definition at line 248 of file qdio_debug.c.

void qdio_shutdown_debug_entries ( struct qdio_irq irq_ptr,
struct ccw_device cdev 
)

Definition at line 271 of file qdio_debug.c.

Variable Documentation

debug_info_t* qdio_dbf_error

Definition at line 15 of file qdio_debug.c.

debug_info_t* qdio_dbf_setup

Definition at line 14 of file qdio_debug.c.