Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
cm109.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/rwsem.h>
#include <linux/usb/input.h>

Go to the source code of this file.

Data Structures

struct  cm109_ctl_packet
 
struct  cm109_dev
 
struct  driver_info
 

Macros

#define DRIVER_VERSION   "20080805"
 
#define DRIVER_AUTHOR   "Alfred E. Heggestad"
 
#define DRIVER_DESC   "CM109 phone driver"
 

Enumerations

enum  {
  HID_IR0 = 0x00, HID_IR1 = 0x01, HID_IR2 = 0x02, HID_IR3 = 0x03,
  HID_OR0 = 0x00, HID_OR1 = 0x01, HID_OR2 = 0x02, HID_OR3 = 0x03,
  RECORD_MUTE = 1 << 3, PLAYBACK_MUTE = 1 << 2, VOLUME_DOWN = 1 << 1, VOLUME_UP = 1 << 0,
  HID_OR_GPO_BUZ_SPDIF = 0 << 6, HID_OR_GENERIC_HID_REG = 1 << 6, HID_OR_MAP_MCU_EEPROM = 2 << 6, BUZZER_ON = 1 << 5,
  KEYMAP_SIZE = 256 + 16
}
 
enum  { USB_PKT_LEN = sizeof(struct cm109_ctl_packet) }
 
enum  { VENDOR_ID = 0x0d8c, PRODUCT_ID_CM109 = 0x000e }
 

Functions

 module_param (phone, charp, S_IRUSR)
 
 MODULE_PARM_DESC (phone,"Phone name {kip1000, gtalk, usbph01, atcom}")
 
struct cm109_ctl_packet __attribute__ ((packed))
 
 module_init (cm109_init)
 
 module_exit (cm109_exit)
 
 MODULE_DEVICE_TABLE (usb, cm109_usb_table)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 

Variables

u8 byte [4]
 
enum { ... }  __attribute__
 

Macro Definition Documentation

#define DRIVER_AUTHOR   "Alfred E. Heggestad"

Definition at line 40 of file cm109.c.

#define DRIVER_DESC   "CM109 phone driver"

Definition at line 41 of file cm109.c.

#define DRIVER_VERSION   "20080805"

Definition at line 39 of file cm109.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
HID_IR0 
HID_IR1 
HID_IR2 
HID_IR3 
HID_OR0 
HID_OR1 
HID_OR2 
HID_OR3 
RECORD_MUTE 
PLAYBACK_MUTE 
VOLUME_DOWN 
VOLUME_UP 
HID_OR_GPO_BUZ_SPDIF 
HID_OR_GENERIC_HID_REG 
HID_OR_MAP_MCU_EEPROM 
BUZZER_ON 
KEYMAP_SIZE 

Definition at line 47 of file cm109.c.

anonymous enum
Enumerator:
USB_PKT_LEN 

Definition at line 88 of file cm109.c.

anonymous enum
Enumerator:
VENDOR_ID 
PRODUCT_ID_CM109 

Definition at line 614 of file cm109.c.

Function Documentation

struct cm109_ctl_packet __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
cm109_usb_table   
)
module_exit ( cm109_exit  )
module_init ( cm109_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( phone  ,
charp  ,
S_IRUSR   
)
MODULE_PARM_DESC ( phone  ,
"Phone name {kip1000, gtalk, usbph01, atcom}"   
)

Variable Documentation

enum { ... } __attribute__
u8 byte[4]

Definition at line 87 of file cm109.c.