#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.
|
| 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) |
|
#define add_dyn_dbg |
( |
|
name, |
|
|
|
id, |
|
|
|
initstate |
|
) |
| |
Value:do { \
e->dyn_debug[
id] = (initstate); \
e->dyn_debug_dentries[
id] =
d; \
} while (0)
Value:
if (!IS_ERR(d)) \
e->file_##
name.dentry =
d; \
} while (0)
#define B43_DEBUGFS_FOPS |
( |
|
name, |
|
|
|
_read, |
|
|
|
_write |
|
) |
| |
Value:
.read = _read, \
.write = _write, \
.fops = { \
.read = b43_debugfs_read, \
.write = b43_debugfs_write, \
}, \
.file_struct_offset =
offsetof(
struct b43_dfsentry, \
file_##name), \
}
Definition at line 616 of file debugfs.c.
#define B43_MAX_MMIO_ACCESS (0xF00 - 1) |
#define B43_MAX_SHM_ADDR 0xFFFF |
#define B43_MAX_SHM_ROUTING 4 |
#define fappend |
( |
|
fmt, |
|
|
|
x... |
|
) |
| |
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 |
|
|
) |
| |