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

Go to the source code of this file.

Data Structures

struct  yld_status
 
struct  lcd_segment_map
 
struct  yealink_dev
 
struct  driver_info
 

Macros

#define DRIVER_VERSION   "yld-20051230"
 
#define DRIVER_AUTHOR   "Henk Vergonet"
 
#define DRIVER_DESC   "Yealink phone driver"
 
#define YEALINK_POLLING_FREQUENCY   10 /* in [Hz] */
 
#define _LOC(k, l)   { .a = (k), .m = (l) }
 
#define _SEG(t, a, am, b, bm, c, cm, d, dm, e, em, f, fm, g, gm)
 
#define _PIC(t, h, hm, n)
 
#define _M444   S_IRUGO
 
#define _M664   S_IRUGO|S_IWUSR|S_IWGRP
 
#define _M220   S_IWUSR|S_IWGRP
 

Functions

struct yld_status __attribute__ ((packed))
 
 module_usb_driver (yealink_driver)
 
 MODULE_DEVICE_TABLE (usb, usb_table)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 

Variables

u8 lcd [24]
 
u8 led
 
u8 dialtone
 
u8 ringtone
 
u8 keynum
 

Macro Definition Documentation

#define _LOC (   k,
  l 
)    { .a = (k), .m = (l) }

Definition at line 76 of file yealink.c.

#define _M220   S_IWUSR|S_IWGRP

Definition at line 779 of file yealink.c.

#define _M444   S_IRUGO

Definition at line 777 of file yealink.c.

#define _M664   S_IRUGO|S_IWUSR|S_IWGRP

Definition at line 778 of file yealink.c.

#define _PIC (   t,
  h,
  hm,
  n 
)
Value:
{ .type = (t), \
.u = { .p = { .name = (n), .a = (h), .m = (hm) } } }

Definition at line 82 of file yealink.c.

#define _SEG (   t,
  a,
  am,
  b,
  bm,
  c,
  cm,
  d,
  dm,
  e,
  em,
  f,
  fm,
  g,
  gm 
)
Value:
{ .type = (t), \
.u = { .s = { _LOC(a, am), _LOC(b, bm), _LOC(c, cm), \
_LOC(d, dm), _LOC(e, em), _LOC(g, gm), \
_LOC(f, fm) } } }

Definition at line 77 of file yealink.c.

#define DRIVER_AUTHOR   "Henk Vergonet"

Definition at line 60 of file yealink.c.

#define DRIVER_DESC   "Yealink phone driver"

Definition at line 61 of file yealink.c.

#define DRIVER_VERSION   "yld-20051230"

Definition at line 59 of file yealink.c.

#define YEALINK_POLLING_FREQUENCY   10 /* in [Hz] */

Definition at line 63 of file yealink.c.

Function Documentation

struct yld_status __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
usb_table   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( yealink_driver  )

Variable Documentation

u8 dialtone

Definition at line 74 of file yealink.c.

u8 keynum

Definition at line 76 of file yealink.c.

u8 lcd[24]

Definition at line 72 of file yealink.c.

u8 led

Definition at line 73 of file yealink.c.

u8 ringtone

Definition at line 75 of file yealink.c.