Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
f_phonet.c File Reference
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/netdevice.h>
#include <linux/if_ether.h>
#include <linux/if_phonet.h>
#include <linux/if_arp.h>
#include <linux/usb/ch9.h>
#include <linux/usb/cdc.h>
#include <linux/usb/composite.h>
#include "u_phonet.h"

Go to the source code of this file.

Data Structures

struct  phonet_port
 
struct  f_phonet
 

Macros

#define PN_MEDIA_USB   0x1B
 
#define MAXPACKET   512
 
#define USB_CDC_SUBCLASS_PHONET   0xfe
 
#define USB_CDC_PHONET_TYPE   0xab
 

Functions

int __init phonet_bind_config (struct usb_configuration *c)
 
int __init gphonet_setup (struct usb_gadget *gadget)
 
void gphonet_cleanup (void)
 

Macro Definition Documentation

#define MAXPACKET   512

Definition at line 30 of file f_phonet.c.

#define PN_MEDIA_USB   0x1B

Definition at line 29 of file f_phonet.c.

#define USB_CDC_PHONET_TYPE   0xab

Definition at line 65 of file f_phonet.c.

#define USB_CDC_SUBCLASS_PHONET   0xfe

Definition at line 64 of file f_phonet.c.

Function Documentation

void gphonet_cleanup ( void  )

Definition at line 626 of file f_phonet.c.

int __init gphonet_setup ( struct usb_gadget gadget)

Definition at line 604 of file f_phonet.c.

int __init phonet_bind_config ( struct usb_configuration c)

Definition at line 579 of file f_phonet.c.