#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/fs.h>
#include <linux/cdev.h>
#include <linux/export.h>
#include <linux/usb.h>
#include <linux/poll.h>
#include <linux/compat.h>
#include <linux/mm.h>
#include <linux/scatterlist.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
#include "usb_mon.h"
Go to the source code of this file.
|
#define | SETUP_LEN 8 |
|
#define | MON_IOC_MAGIC 0x92 |
|
#define | MON_IOCQ_URB_LEN _IO(MON_IOC_MAGIC, 1) |
|
#define | MON_IOCG_STATS _IOR(MON_IOC_MAGIC, 3, struct mon_bin_stats) |
|
#define | MON_IOCT_RING_SIZE _IO(MON_IOC_MAGIC, 4) |
|
#define | MON_IOCQ_RING_SIZE _IO(MON_IOC_MAGIC, 5) |
|
#define | MON_IOCX_GET _IOW(MON_IOC_MAGIC, 6, struct mon_bin_get) |
|
#define | MON_IOCX_MFETCH _IOWR(MON_IOC_MAGIC, 7, struct mon_bin_mfetch) |
|
#define | MON_IOCH_MFLUSH _IO(MON_IOC_MAGIC, 8) |
|
#define | MON_IOCX_GETX _IOW(MON_IOC_MAGIC, 10, struct mon_bin_get) |
|
#define | CHUNK_SIZE PAGE_SIZE |
|
#define | CHUNK_ALIGN(x) (((x)+CHUNK_SIZE-1) & ~(CHUNK_SIZE-1)) |
|
#define | BUFF_MAX CHUNK_ALIGN(1200*1024) |
|
#define | BUFF_DFL CHUNK_ALIGN(300*1024) |
|
#define | BUFF_MIN CHUNK_ALIGN(8*1024) |
|
#define | PKT_ALIGN 64 |
|
#define | PKT_SIZE 64 |
|
#define | PKT_SZ_API0 48 /* API 0 (2.6.20) size */ |
|
#define | PKT_SZ_API1 64 /* API 1 size: extra fields */ |
|
#define | ISODESC_MAX 128 /* Same number as usbfs allows, 2048 bytes. */ |
|
#define | MON_BIN_MAX_MINOR 128 |
|
#define | MON_RING_EMPTY(rp) ((rp)->b_cnt == 0) |
|
#define ISODESC_MAX 128 /* Same number as usbfs allows, 2048 bytes. */ |
#define MON_BIN_MAX_MINOR 128 |
#define MON_IOC_MAGIC 0x92 |
#define MON_RING_EMPTY |
( |
|
rp | ) |
((rp)->b_cnt == 0) |
#define PKT_SZ_API0 48 /* API 0 (2.6.20) size */ |