Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
debugfs.c File Reference
#include <linux/fs.h>
#include <linux/debugfs.h>
#include <linux/slab.h>
#include <linux/netdevice.h>
#include <linux/pci.h>
#include <linux/mutex.h>
#include "b43.h"
#include "main.h"
#include "debugfs.h"
#include "dma.h"
#include "xmit.h"

Go to the source code of this file.

Data Structures

struct  b43_debugfs_fops
 

Macros

#define fappend(fmt, x...)
 
#define B43_MAX_SHM_ROUTING   4
 
#define B43_MAX_SHM_ADDR   0xFFFF
 
#define B43_MAX_MMIO_ACCESS   (0xF00 - 1)
 
#define B43_DEBUGFS_FOPS(name, _read, _write)
 
#define add_dyn_dbg(name, id, initstate)
 
#define ADD_FILE(name, mode)
 

Functions

 B43_DEBUGFS_FOPS (shm16read, shm16read__read_file, shm16read__write_file)
 
 B43_DEBUGFS_FOPS (shm16write, NULL, shm16write__write_file)
 
 B43_DEBUGFS_FOPS (shm32read, shm32read__read_file, shm32read__write_file)
 
 B43_DEBUGFS_FOPS (shm32write, NULL, shm32write__write_file)
 
 B43_DEBUGFS_FOPS (mmio16read, mmio16read__read_file, mmio16read__write_file)
 
 B43_DEBUGFS_FOPS (mmio16write, NULL, mmio16write__write_file)
 
 B43_DEBUGFS_FOPS (mmio32read, mmio32read__read_file, mmio32read__write_file)
 
 B43_DEBUGFS_FOPS (mmio32write, NULL, mmio32write__write_file)
 
 B43_DEBUGFS_FOPS (txstat, txstat_read_file, NULL)
 
 B43_DEBUGFS_FOPS (restart, NULL, restart_write_file)
 
 B43_DEBUGFS_FOPS (loctls, loctls_read_file, NULL)
 
bool b43_debug (struct b43_wldev *dev, enum b43_dyndbg feature)
 
void b43_debugfs_add_device (struct b43_wldev *dev)
 
void b43_debugfs_remove_device (struct b43_wldev *dev)
 
void b43_debugfs_log_txstat (struct b43_wldev *dev, const struct b43_txstatus *status)
 
void b43_debugfs_init (void)
 
void b43_debugfs_exit (void)
 

Macro Definition Documentation

#define add_dyn_dbg (   name,
  id,
  initstate 
)
Value:
do { \
e->dyn_debug[id] = (initstate); \
d = debugfs_create_bool(name, 0600, e->subdir, \
&(e->dyn_debug[id])); \
if (!IS_ERR(d)) \
e->dyn_debug_dentries[id] = d; \
} while (0)
#define ADD_FILE (   name,
  mode 
)
Value:
do { \
mode, e->subdir, dev, \
&fops_##name.fops); \
e->file_##name.dentry = NULL; \
if (!IS_ERR(d)) \
e->file_##name.dentry = d; \
} while (0)
#define B43_DEBUGFS_FOPS (   name,
  _read,
  _write 
)
Value:
static struct b43_debugfs_fops fops_##name = { \
.read = _read, \
.write = _write, \
.fops = { \
.open = simple_open, \
.read = b43_debugfs_read, \
.write = b43_debugfs_write, \
.llseek = generic_file_llseek, \
}, \
.file_struct_offset = offsetof(struct b43_dfsentry, \
file_##name), \
}

Definition at line 616 of file debugfs.c.

#define B43_MAX_MMIO_ACCESS   (0xF00 - 1)

Definition at line 232 of file debugfs.c.

#define B43_MAX_SHM_ADDR   0xFFFF

Definition at line 77 of file debugfs.c.

#define B43_MAX_SHM_ROUTING   4

Definition at line 76 of file debugfs.c.

#define fappend (   fmt,
  x... 
)
Value:
do { \
if (bufsize - count) \
count += snprintf(buf + count, \
fmt , ##x); \
printk(KERN_ERR "b43: fappend overflow\n"); \
} while (0)

Definition at line 64 of file debugfs.c.

Function Documentation

bool b43_debug ( struct b43_wldev dev,
enum b43_dyndbg  feature 
)

Definition at line 643 of file debugfs.c.

void b43_debugfs_add_device ( struct b43_wldev dev)

Definition at line 692 of file debugfs.c.

void b43_debugfs_exit ( void  )

Definition at line 823 of file debugfs.c.

B43_DEBUGFS_FOPS ( shm16read  ,
shm16read__read_file  ,
shm16read__write_file   
)
B43_DEBUGFS_FOPS ( shm16write  ,
NULL  ,
shm16write__write_file   
)
B43_DEBUGFS_FOPS ( shm32read  ,
shm32read__read_file  ,
shm32read__write_file   
)
B43_DEBUGFS_FOPS ( shm32write  ,
NULL  ,
shm32write__write_file   
)
B43_DEBUGFS_FOPS ( mmio16read  ,
mmio16read__read_file  ,
mmio16read__write_file   
)
B43_DEBUGFS_FOPS ( mmio16write  ,
NULL  ,
mmio16write__write_file   
)
B43_DEBUGFS_FOPS ( mmio32read  ,
mmio32read__read_file  ,
mmio32read__write_file   
)
B43_DEBUGFS_FOPS ( mmio32write  ,
NULL  ,
mmio32write__write_file   
)
B43_DEBUGFS_FOPS ( txstat  ,
txstat_read_file  ,
NULL   
)
B43_DEBUGFS_FOPS ( restart  ,
NULL  ,
restart_write_file   
)
B43_DEBUGFS_FOPS ( loctls  ,
loctls_read_file  ,
NULL   
)
void b43_debugfs_init ( void  )

Definition at line 816 of file debugfs.c.

void b43_debugfs_log_txstat ( struct b43_wldev dev,
const struct b43_txstatus status 
)

Definition at line 797 of file debugfs.c.

void b43_debugfs_remove_device ( struct b43_wldev dev)

Definition at line 769 of file debugfs.c.