Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
intel_oaktrail.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/acpi.h>
#include <linux/fb.h>
#include <linux/mutex.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/backlight.h>
#include <linux/platform_device.h>
#include <linux/dmi.h>
#include <linux/rfkill.h>
#include <acpi/acpi_bus.h>
#include <acpi/acpi_drivers.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRIVER_NAME   "intel_oaktrail"
 
#define DRIVER_VERSION   "0.4ac1"
 
#define OT_EC_DEVICE_STATE_ADDRESS   0xD6
 
#define OT_EC_CAMERA_MASK   (1 << 0)
 
#define OT_EC_BT_MASK   (1 << 1)
 
#define OT_EC_GPS_MASK   (1 << 2)
 
#define OT_EC_WIFI_MASK   (1 << 3)
 
#define OT_EC_WWAN_MASK   (1 << 4)
 
#define OT_EC_TS_MASK   (1 << 5)
 
#define OT_EC_BL_BRIGHTNESS_ADDRESS   0x44
 
#define OT_EC_BL_BRIGHTNESS_MAX   100
 
#define OT_EC_BL_CONTROL_ADDRESS   0x3A
 
#define OT_EC_BL_CONTROL_ON_DATA   0x1A
 

Functions

 module_param (force, bool, 0)
 
 MODULE_PARM_DESC (force,"Force driver load, ignore DMI data")
 
 MODULE_DEVICE_TABLE (dmi, oaktrail_dmi_table)
 
 module_init (oaktrail_init)
 
 module_exit (oaktrail_cleanup)
 
 MODULE_AUTHOR ("Yin Kangkai ([email protected])")
 
 MODULE_DESCRIPTION ("Intel Oaktrail Platform ACPI Extras")
 
 MODULE_VERSION (DRIVER_VERSION)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DRIVER_NAME   "intel_oaktrail"

Definition at line 57 of file intel_oaktrail.c.

#define DRIVER_VERSION   "0.4ac1"

Definition at line 58 of file intel_oaktrail.c.

#define OT_EC_BL_BRIGHTNESS_ADDRESS   0x44

Definition at line 92 of file intel_oaktrail.c.

#define OT_EC_BL_BRIGHTNESS_MAX   100

Definition at line 93 of file intel_oaktrail.c.

#define OT_EC_BL_CONTROL_ADDRESS   0x3A

Definition at line 94 of file intel_oaktrail.c.

#define OT_EC_BL_CONTROL_ON_DATA   0x1A

Definition at line 95 of file intel_oaktrail.c.

#define OT_EC_BT_MASK   (1 << 1)

Definition at line 74 of file intel_oaktrail.c.

#define OT_EC_CAMERA_MASK   (1 << 0)

Definition at line 73 of file intel_oaktrail.c.

#define OT_EC_DEVICE_STATE_ADDRESS   0xD6

Definition at line 71 of file intel_oaktrail.c.

#define OT_EC_GPS_MASK   (1 << 2)

Definition at line 75 of file intel_oaktrail.c.

#define OT_EC_TS_MASK   (1 << 5)

Definition at line 78 of file intel_oaktrail.c.

#define OT_EC_WIFI_MASK   (1 << 3)

Definition at line 76 of file intel_oaktrail.c.

#define OT_EC_WWAN_MASK   (1 << 4)

Definition at line 77 of file intel_oaktrail.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 39 of file intel_oaktrail.c.

Function Documentation

MODULE_AUTHOR ( "Yin Kangkai ([email protected])"  )
MODULE_DESCRIPTION ( "Intel Oaktrail Platform ACPI Extras"  )
MODULE_DEVICE_TABLE ( dmi  ,
oaktrail_dmi_table   
)
module_exit ( oaktrail_cleanup  )
module_init ( oaktrail_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( force  ,
bool  ,
 
)
MODULE_PARM_DESC ( force  ,
"Force driver  load,
ignore DMI data  
)
MODULE_VERSION ( DRIVER_VERSION  )