#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 "b43legacy.h"
#include "main.h"
#include "debugfs.h"
#include "dma.h"
#include "pio.h"
#include "xmit.h"
Go to the source code of this file.
|
| B43legacy_DEBUGFS_FOPS (tsf, tsf_read_file, tsf_write_file, 1) |
|
| B43legacy_DEBUGFS_FOPS (ucode_regs, ucode_regs_read_file, NULL, 1) |
|
| B43legacy_DEBUGFS_FOPS (shm, shm_read_file, NULL, 1) |
|
| B43legacy_DEBUGFS_FOPS (txstat, txstat_read_file, NULL, 0) |
|
| B43legacy_DEBUGFS_FOPS (restart, NULL, restart_write_file, 1) |
|
int | b43legacy_debug (struct b43legacy_wldev *dev, enum b43legacy_dyndbg feature) |
|
void | b43legacy_debugfs_add_device (struct b43legacy_wldev *dev) |
|
void | b43legacy_debugfs_remove_device (struct b43legacy_wldev *dev) |
|
void | b43legacy_debugfs_log_txstat (struct b43legacy_wldev *dev, const struct b43legacy_txstatus *status) |
|
void | b43legacy_debugfs_init (void) |
|
void | b43legacy_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 B43legacy_DEBUGFS_FOPS |
( |
|
name, |
|
|
|
_read, |
|
|
|
_write, |
|
|
|
_take_irqlock |
|
) |
| |
Value:
.read = _read, \
.write = _write, \
.fops = { \
.read = b43legacy_debugfs_read, \
.write = b43legacy_debugfs_write, \
}, \
.file_struct_offset =
offsetof(
struct b43legacy_dfsentry, \
file_##name), \
.take_irqlock = _take_irqlock, \
}
Definition at line 323 of file debugfs.c.
#define fappend |
( |
|
fmt, |
|
|
|
x... |
|
) |
| |
B43legacy_DEBUGFS_FOPS |
( |
tsf |
, |
|
|
tsf_read_file |
, |
|
|
tsf_write_file |
, |
|
|
1 |
|
|
) |
| |
B43legacy_DEBUGFS_FOPS |
( |
ucode_regs |
, |
|
|
ucode_regs_read_file |
, |
|
|
NULL |
, |
|
|
1 |
|
|
) |
| |
B43legacy_DEBUGFS_FOPS |
( |
shm |
, |
|
|
shm_read_file |
, |
|
|
NULL |
, |
|
|
1 |
|
|
) |
| |
B43legacy_DEBUGFS_FOPS |
( |
txstat |
, |
|
|
txstat_read_file |
, |
|
|
NULL |
, |
|
|
0 |
|
|
) |
| |
B43legacy_DEBUGFS_FOPS |
( |
restart |
, |
|
|
NULL |
, |
|
|
restart_write_file |
, |
|
|
1 |
|
|
) |
| |