Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
ams-core.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/of_platform.h>
#include <asm/pmac_pfunc.h>
#include "ams.h"

Go to the source code of this file.

Functions

 module_param (verbose, bool, 0644)
 
 MODULE_PARM_DESC (verbose,"Show free falls and shocks in kernel output")
 
void ams_sensors (s8 *x, s8 *y, s8 *z)
 
int ams_sensor_attach (void)
 
int __init ams_init (void)
 
void ams_sensor_detach (void)
 
 MODULE_AUTHOR ("Stelian Pop, Michael Hanselmann")
 
 MODULE_DESCRIPTION ("Apple Motion Sensor driver")
 
 MODULE_LICENSE ("GPL")
 
 module_init (ams_init)
 
 module_exit (ams_exit)
 

Variables

struct ams ams_info
 

Function Documentation

int __init ams_init ( void  )

Definition at line 192 of file ams-core.c.

int ams_sensor_attach ( void  )

Definition at line 132 of file ams-core.c.

void ams_sensor_detach ( void  )

Definition at line 216 of file ams-core.c.

void ams_sensors ( s8 x,
s8 y,
s8 z 
)

Definition at line 39 of file ams-core.c.

MODULE_AUTHOR ( "Stelian  Pop,
Michael Hanselmann"   
)
MODULE_DESCRIPTION ( "Apple Motion Sensor driver )
module_exit ( ams_exit  )
module_init ( ams_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( verbose  ,
bool  ,
0644   
)
MODULE_PARM_DESC ( verbose  ,
"Show free falls and shocks in kernel output  
)

Variable Documentation

struct ams ams_info

Definition at line 32 of file ams-core.c.