Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
olpc.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/string.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/syscore_ops.h>
#include <linux/mutex.h>
#include <linux/olpc-ec.h>
#include <asm/geode.h>
#include <asm/setup.h>
#include <asm/olpc.h>
#include <asm/olpc_ofw.h>

Go to the source code of this file.

Macros

#define EC_BASE_TIMEOUT   20
 
#define wait_on_ibf(p, d)   __wait_on_ibf(__LINE__, (p), (d))
 
#define wait_on_obf(p, d)   __wait_on_obf(__LINE__, (p), (d))
 

Functions

 EXPORT_SYMBOL_GPL (olpc_platform_info)
 
 __setup ("olpc_ec_timeout=", olpc_ec_timeout_set)
 
void olpc_ec_wakeup_set (u16 value)
 
 EXPORT_SYMBOL_GPL (olpc_ec_wakeup_set)
 
void olpc_ec_wakeup_clear (u16 value)
 
 EXPORT_SYMBOL_GPL (olpc_ec_wakeup_clear)
 
bool olpc_ec_wakeup_available (void)
 
 EXPORT_SYMBOL_GPL (olpc_ec_wakeup_available)
 
int olpc_ec_mask_write (u16 bits)
 
 EXPORT_SYMBOL_GPL (olpc_ec_mask_write)
 
int olpc_ec_sci_query (u16 *sci_value)
 
 EXPORT_SYMBOL_GPL (olpc_ec_sci_query)
 
 postcore_initcall (olpc_init)
 

Variables

struct olpc_platform_t olpc_platform_info
 

Macro Definition Documentation

#define EC_BASE_TIMEOUT   20

Definition at line 37 of file olpc.c.

#define wait_on_ibf (   p,
  d 
)    __wait_on_ibf(__LINE__, (p), (d))

Definition at line 69 of file olpc.c.

#define wait_on_obf (   p,
  d 
)    __wait_on_obf(__LINE__, (p), (d))

Definition at line 89 of file olpc.c.

Function Documentation

__setup ( )
EXPORT_SYMBOL_GPL ( olpc_platform_info  )
EXPORT_SYMBOL_GPL ( olpc_ec_wakeup_set  )
EXPORT_SYMBOL_GPL ( olpc_ec_wakeup_clear  )
EXPORT_SYMBOL_GPL ( olpc_ec_wakeup_available  )
EXPORT_SYMBOL_GPL ( olpc_ec_mask_write  )
EXPORT_SYMBOL_GPL ( olpc_ec_sci_query  )
int olpc_ec_mask_write ( u16  bits)

Definition at line 232 of file olpc.c.

int olpc_ec_sci_query ( u16 sci_value)

Definition at line 245 of file olpc.c.

bool olpc_ec_wakeup_available ( void  )

Definition at line 205 of file olpc.c.

void olpc_ec_wakeup_clear ( u16  value)

Definition at line 195 of file olpc.c.

void olpc_ec_wakeup_set ( u16  value)

Definition at line 189 of file olpc.c.

postcore_initcall ( olpc_init  )

Variable Documentation

struct olpc_platform_t olpc_platform_info

Definition at line 30 of file olpc.c.