Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
f_hid.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/hid.h>
#include <linux/cdev.h>
#include <linux/mutex.h>
#include <linux/poll.h>
#include <linux/uaccess.h>
#include <linux/wait.h>
#include <linux/sched.h>
#include <linux/usb/g_hid.h>

Go to the source code of this file.

Data Structures

struct  f_hidg_req_list
 
struct  f_hidg
 

Macros

#define READ_COND   (!list_empty(&hidg->completed_out_req))
 
#define WRITE_COND   (!hidg->write_pending)
 
#define CT_FUNC_HID_IDX   0
 

Functions

int __init hidg_bind_config (struct usb_configuration *c, struct hidg_func_descriptor *fdesc, int index)
 
int __init ghid_setup (struct usb_gadget *g, int count)
 
void ghid_cleanup (void)
 

Variables

struct file_operations f_hidg_fops
 

Macro Definition Documentation

#define CT_FUNC_HID_IDX   0

Definition at line 682 of file f_hid.c.

#define READ_COND   (!list_empty(&hidg->completed_out_req))
#define WRITE_COND   (!hidg->write_pending)

Function Documentation

void ghid_cleanup ( void  )

Definition at line 772 of file f_hid.c.

int __init ghid_setup ( struct usb_gadget g,
int  count 
)

Definition at line 756 of file f_hid.c.

int __init hidg_bind_config ( struct usb_configuration c,
struct hidg_func_descriptor fdesc,
int  index 
)

Definition at line 702 of file f_hid.c.

Variable Documentation

struct file_operations f_hidg_fops
Initial value:
= {
.owner = THIS_MODULE,
.open = f_hidg_open,
.release = f_hidg_release,
.write = f_hidg_write,
.read = f_hidg_read,
.poll = f_hidg_poll,
.llseek = noop_llseek,
}

Definition at line 553 of file f_hid.c.