Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
hid-logitech-dj.h File Reference
#include <linux/kfifo.h>

Go to the source code of this file.

Data Structures

struct  dj_report
 
struct  dj_receiver_dev
 
struct  dj_device
 

Macros

#define DJ_MAX_PAIRED_DEVICES   6
 
#define DJ_MAX_NUMBER_NOTIFICATIONS   8
 
#define DJ_DEVICE_INDEX_MIN   1
 
#define DJ_DEVICE_INDEX_MAX   6
 
#define DJREPORT_SHORT_LENGTH   15
 
#define DJREPORT_LONG_LENGTH   32
 
#define REPORT_ID_DJ_SHORT   0x20
 
#define REPORT_ID_DJ_LONG   0x21
 
#define REPORT_TYPE_RFREPORT_FIRST   0x01
 
#define REPORT_TYPE_RFREPORT_LAST   0x1F
 
#define REPORT_TYPE_CMD_SWITCH   0x80
 
#define CMD_SWITCH_PARAM_DEVBITFIELD   0x00
 
#define CMD_SWITCH_PARAM_TIMEOUT_SECONDS   0x01
 
#define TIMEOUT_NO_KEEPALIVE   0x00
 
#define REPORT_TYPE_CMD_GET_PAIRED_DEVICES   0x81
 
#define REPORT_TYPE_NOTIF_DEVICE_PAIRED   0x41
 
#define SPFUNCTION_MORE_NOTIF_EXPECTED   0x01
 
#define SPFUNCTION_DEVICE_LIST_EMPTY   0x02
 
#define DEVICE_PAIRED_PARAM_SPFUNCTION   0x00
 
#define DEVICE_PAIRED_PARAM_EQUAD_ID_LSB   0x01
 
#define DEVICE_PAIRED_PARAM_EQUAD_ID_MSB   0x02
 
#define DEVICE_PAIRED_RF_REPORT_TYPE   0x03
 
#define REPORT_TYPE_NOTIF_DEVICE_UNPAIRED   0x40
 
#define REPORT_TYPE_NOTIF_CONNECTION_STATUS   0x42
 
#define CONNECTION_STATUS_PARAM_STATUS   0x00
 
#define STATUS_LINKLOSS   0x01
 
#define REPORT_TYPE_NOTIF_ERROR   0x7F
 
#define NOTIF_ERROR_PARAM_ETYPE   0x00
 
#define ETYPE_KEEPALIVE_TIMEOUT   0x01
 
#define REPORT_TYPE_KEYBOARD   0x01
 
#define REPORT_TYPE_MOUSE   0x02
 
#define REPORT_TYPE_CONSUMER_CONTROL   0x03
 
#define REPORT_TYPE_SYSTEM_CONTROL   0x04
 
#define REPORT_TYPE_MEDIA_CENTER   0x08
 
#define REPORT_TYPE_LEDS   0x0E
 
#define STD_KEYBOARD   0x00000002
 
#define STD_MOUSE   0x00000004
 
#define MULTIMEDIA   0x00000008
 
#define POWER_KEYS   0x00000010
 
#define MEDIA_CENTER   0x00000100
 
#define KBD_LEDS   0x00004000
 
#define is_dj_device(dj_dev)   (&(dj_dev)->dj_receiver_dev->hdev->dev == (dj_dev)->hdev->dev.parent)
 

Macro Definition Documentation

#define CMD_SWITCH_PARAM_DEVBITFIELD   0x00

Definition at line 44 of file hid-logitech-dj.h.

#define CMD_SWITCH_PARAM_TIMEOUT_SECONDS   0x01

Definition at line 45 of file hid-logitech-dj.h.

#define CONNECTION_STATUS_PARAM_STATUS   0x00

Definition at line 66 of file hid-logitech-dj.h.

#define DEVICE_PAIRED_PARAM_EQUAD_ID_LSB   0x01

Definition at line 56 of file hid-logitech-dj.h.

#define DEVICE_PAIRED_PARAM_EQUAD_ID_MSB   0x02

Definition at line 57 of file hid-logitech-dj.h.

#define DEVICE_PAIRED_PARAM_SPFUNCTION   0x00

Definition at line 55 of file hid-logitech-dj.h.

#define DEVICE_PAIRED_RF_REPORT_TYPE   0x03

Definition at line 58 of file hid-logitech-dj.h.

#define DJ_DEVICE_INDEX_MAX   6

Definition at line 31 of file hid-logitech-dj.h.

#define DJ_DEVICE_INDEX_MIN   1

Definition at line 30 of file hid-logitech-dj.h.

#define DJ_MAX_NUMBER_NOTIFICATIONS   8

Definition at line 29 of file hid-logitech-dj.h.

#define DJ_MAX_PAIRED_DEVICES   6

Definition at line 28 of file hid-logitech-dj.h.

#define DJREPORT_LONG_LENGTH   32

Definition at line 34 of file hid-logitech-dj.h.

#define DJREPORT_SHORT_LENGTH   15

Definition at line 33 of file hid-logitech-dj.h.

#define ETYPE_KEEPALIVE_TIMEOUT   0x01

Definition at line 72 of file hid-logitech-dj.h.

#define is_dj_device (   dj_dev)    (&(dj_dev)->dj_receiver_dev->hdev->dev == (dj_dev)->hdev->dev.parent)

is_dj_device - know if the given dj_device is not the receiver. : the dj device to test

This macro tests if a struct dj_device pointer is a device created by the bus enumarator.

Definition at line 121 of file hid-logitech-dj.h.

#define KBD_LEDS   0x00004000

Definition at line 88 of file hid-logitech-dj.h.

#define MEDIA_CENTER   0x00000100

Definition at line 87 of file hid-logitech-dj.h.

#define MULTIMEDIA   0x00000008

Definition at line 85 of file hid-logitech-dj.h.

#define NOTIF_ERROR_PARAM_ETYPE   0x00

Definition at line 71 of file hid-logitech-dj.h.

#define POWER_KEYS   0x00000010

Definition at line 86 of file hid-logitech-dj.h.

#define REPORT_ID_DJ_LONG   0x21

Definition at line 37 of file hid-logitech-dj.h.

#define REPORT_ID_DJ_SHORT   0x20

Definition at line 36 of file hid-logitech-dj.h.

#define REPORT_TYPE_CMD_GET_PAIRED_DEVICES   0x81

Definition at line 49 of file hid-logitech-dj.h.

#define REPORT_TYPE_CMD_SWITCH   0x80

Definition at line 43 of file hid-logitech-dj.h.

#define REPORT_TYPE_CONSUMER_CONTROL   0x03

Definition at line 77 of file hid-logitech-dj.h.

#define REPORT_TYPE_KEYBOARD   0x01

Definition at line 75 of file hid-logitech-dj.h.

#define REPORT_TYPE_LEDS   0x0E

Definition at line 80 of file hid-logitech-dj.h.

#define REPORT_TYPE_MEDIA_CENTER   0x08

Definition at line 79 of file hid-logitech-dj.h.

#define REPORT_TYPE_MOUSE   0x02

Definition at line 76 of file hid-logitech-dj.h.

#define REPORT_TYPE_NOTIF_CONNECTION_STATUS   0x42

Definition at line 65 of file hid-logitech-dj.h.

#define REPORT_TYPE_NOTIF_DEVICE_PAIRED   0x41

Definition at line 52 of file hid-logitech-dj.h.

#define REPORT_TYPE_NOTIF_DEVICE_UNPAIRED   0x40

Definition at line 61 of file hid-logitech-dj.h.

#define REPORT_TYPE_NOTIF_ERROR   0x7F

Definition at line 70 of file hid-logitech-dj.h.

#define REPORT_TYPE_RFREPORT_FIRST   0x01

Definition at line 39 of file hid-logitech-dj.h.

#define REPORT_TYPE_RFREPORT_LAST   0x1F

Definition at line 40 of file hid-logitech-dj.h.

#define REPORT_TYPE_SYSTEM_CONTROL   0x04

Definition at line 78 of file hid-logitech-dj.h.

#define SPFUNCTION_DEVICE_LIST_EMPTY   0x02

Definition at line 54 of file hid-logitech-dj.h.

#define SPFUNCTION_MORE_NOTIF_EXPECTED   0x01

Definition at line 53 of file hid-logitech-dj.h.

#define STATUS_LINKLOSS   0x01

Definition at line 67 of file hid-logitech-dj.h.

#define STD_KEYBOARD   0x00000002

Definition at line 83 of file hid-logitech-dj.h.

#define STD_MOUSE   0x00000004

Definition at line 84 of file hid-logitech-dj.h.

#define TIMEOUT_NO_KEEPALIVE   0x00

Definition at line 46 of file hid-logitech-dj.h.