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

Go to the source code of this file.

Data Structures

struct  oled_dev_desc_str
 
struct  asus_oled_header
 
struct  asus_oled_packet
 
struct  asus_oled_dev
 

Macros

#define ASUS_OLED_VERSION   "0.04-dev"
 
#define ASUS_OLED_NAME   "asus-oled"
 
#define ASUS_OLED_UNDERSCORE_NAME   "asus_oled"
 
#define ASUS_OLED_STATIC   's'
 
#define ASUS_OLED_ROLL   'r'
 
#define ASUS_OLED_FLASH   'f'
 
#define ASUS_OLED_MAX_WIDTH   1792
 
#define ASUS_OLED_DISP_HEIGHT   32
 
#define ASUS_OLED_PACKET_BUF_SIZE   256
 
#define USB_VENDOR_ID_ASUS   0x0b05
 
#define USB_DEVICE_ID_ASUS_LCM   0x1726
 
#define USB_DEVICE_ID_ASUS_LCM2   0x175b
 
#define ASUS_OLED_DEVICE_ATTR(_file)   dev_attr_asus_oled_##_file
 
#define asus_oled_suspend   NULL
 
#define asus_oled_resume   NULL
 

Enumerations

enum  oled_pack_mode { PACK_MODE_G1, PACK_MODE_G50, PACK_MODE_LAST }
 

Functions

 MODULE_AUTHOR ("Jakub Schmidtke, [email protected]")
 
 MODULE_DESCRIPTION ("Asus OLED Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (ASUS_OLED_VERSION)
 
 module_param (start_off, uint, 0644)
 
 MODULE_PARM_DESC (start_off,"Set to 1 to switch off OLED display after it is attached")
 
 MODULE_DEVICE_TABLE (usb, id_table)
 
struct asus_oled_header __attribute ((packed))
 
 module_init (asus_oled_init)
 
 module_exit (asus_oled_exit)
 

Variables

uint8_t magic1
 
uint8_t magic2
 
uint8_t flags
 
uint8_t value3
 
uint8_t buffer1
 
uint8_t buffer2
 
uint8_t value6
 
uint8_t value7
 
uint8_t value8
 
uint8_t padding2 [7]
 
struct asus_oled_header header
 
uint8_t bitmap [ASUS_OLED_PACKET_BUF_SIZE]
 
struct asus_oled_dev __attribute
 

Macro Definition Documentation

#define ASUS_OLED_DEVICE_ATTR (   _file)    dev_attr_asus_oled_##_file

Definition at line 624 of file asus_oled.c.

#define ASUS_OLED_DISP_HEIGHT   32

Definition at line 50 of file asus_oled.c.

#define ASUS_OLED_FLASH   'f'

Definition at line 47 of file asus_oled.c.

#define ASUS_OLED_MAX_WIDTH   1792

Definition at line 49 of file asus_oled.c.

#define ASUS_OLED_NAME   "asus-oled"

Definition at line 42 of file asus_oled.c.

#define ASUS_OLED_PACKET_BUF_SIZE   256

Definition at line 51 of file asus_oled.c.

#define asus_oled_resume   NULL

Definition at line 798 of file asus_oled.c.

#define ASUS_OLED_ROLL   'r'

Definition at line 46 of file asus_oled.c.

#define ASUS_OLED_STATIC   's'

Definition at line 45 of file asus_oled.c.

#define asus_oled_suspend   NULL

Definition at line 797 of file asus_oled.c.

#define ASUS_OLED_UNDERSCORE_NAME   "asus_oled"

Definition at line 43 of file asus_oled.c.

#define ASUS_OLED_VERSION   "0.04-dev"

Definition at line 41 of file asus_oled.c.

#define USB_DEVICE_ID_ASUS_LCM   0x1726

Definition at line 54 of file asus_oled.c.

#define USB_DEVICE_ID_ASUS_LCM2   0x175b

Definition at line 55 of file asus_oled.c.

#define USB_VENDOR_ID_ASUS   0x0b05

Definition at line 53 of file asus_oled.c.

Enumeration Type Documentation

Enumerator:
PACK_MODE_G1 
PACK_MODE_G50 
PACK_MODE_LAST 

Definition at line 72 of file asus_oled.c.

Function Documentation

struct asus_oled_header __attribute ( (packed)  )
MODULE_AUTHOR ( "Jakub  Schmidtke,
sjakub @gmail.com"   
)
MODULE_DESCRIPTION ( "Asus OLED Driver"  )
MODULE_DEVICE_TABLE ( usb  ,
id_table   
)
module_exit ( asus_oled_exit  )
module_init ( asus_oled_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( start_off  ,
uint  ,
0644   
)
MODULE_PARM_DESC ( start_off  ,
"Set to 1 to switch off OLED display after it is attached  
)
MODULE_VERSION ( ASUS_OLED_VERSION  )

Variable Documentation

struct asus_oled_dev __attribute

Definition at line 126 of file asus_oled.c.

uint8_t buffer1

Definition at line 124 of file asus_oled.c.

uint8_t buffer2

Definition at line 125 of file asus_oled.c.

uint8_t flags

Definition at line 122 of file asus_oled.c.

Definition at line 125 of file asus_oled.c.

uint8_t magic1

Definition at line 120 of file asus_oled.c.

uint8_t magic2

Definition at line 121 of file asus_oled.c.

uint8_t padding2[7]

Definition at line 129 of file asus_oled.c.

uint8_t value3

Definition at line 123 of file asus_oled.c.

uint8_t value6

Definition at line 126 of file asus_oled.c.

uint8_t value7

Definition at line 127 of file asus_oled.c.

uint8_t value8

Definition at line 128 of file asus_oled.c.