Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
smu.c File Reference
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/dmapool.h>
#include <linux/bootmem.h>
#include <linux/vmalloc.h>
#include <linux/highmem.h>
#include <linux/jiffies.h>
#include <linux/interrupt.h>
#include <linux/rtc.h>
#include <linux/completion.h>
#include <linux/miscdevice.h>
#include <linux/delay.h>
#include <linux/poll.h>
#include <linux/mutex.h>
#include <linux/of_device.h>
#include <linux/of_platform.h>
#include <linux/slab.h>
#include <asm/byteorder.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/pmac_feature.h>
#include <asm/smu.h>
#include <asm/sections.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  smu_cmd_buf
 
struct  smu_device
 
struct  smu_private
 

Macros

#define VERSION   "0.7"
 
#define AUTHOR   "(c) 2005 Benjamin Herrenschmidt, IBM Corp."
 
#define DPRINTK(fmt, args...)   do { } while (0)
 
#define SMU_MAX_DATA   254
 

Enumerations

enum  smu_file_mode { smu_file_commands, smu_file_events, smu_file_closing }
 

Functions

int smu_queue_cmd (struct smu_cmd *cmd)
 
 EXPORT_SYMBOL (smu_queue_cmd)
 
int smu_queue_simple (struct smu_simple_cmd *scmd, u8 command, unsigned int data_len, void(*done)(struct smu_cmd *cmd, void *misc), void *misc,...)
 
 EXPORT_SYMBOL (smu_queue_simple)
 
void smu_poll (void)
 
 EXPORT_SYMBOL (smu_poll)
 
void smu_done_complete (struct smu_cmd *cmd, void *misc)
 
 EXPORT_SYMBOL (smu_done_complete)
 
void smu_spinwait_cmd (struct smu_cmd *cmd)
 
 EXPORT_SYMBOL (smu_spinwait_cmd)
 
int smu_get_rtc_time (struct rtc_time *time, int spinwait)
 
int smu_set_rtc_time (struct rtc_time *time, int spinwait)
 
void smu_shutdown (void)
 
void smu_restart (void)
 
int smu_present (void)
 
 EXPORT_SYMBOL (smu_present)
 
int __init smu_init (void)
 
 core_initcall (smu_late_init)
 
 device_initcall (smu_init_sysfs)
 
struct platform_devicesmu_get_ofdev (void)
 
 EXPORT_SYMBOL_GPL (smu_get_ofdev)
 
int smu_queue_i2c (struct smu_i2c_cmd *cmd)
 
struct smu_sdbp_header__smu_get_sdb_partition (int id, unsigned int *size, int interruptible)
 
struct smu_sdbp_headersmu_get_sdb_partition (int id, unsigned int *size)
 
 EXPORT_SYMBOL (smu_get_sdb_partition)
 
 device_initcall (smu_device_init)
 

Macro Definition Documentation

#define AUTHOR   "(c) 2005 Benjamin Herrenschmidt, IBM Corp."

Definition at line 51 of file smu.c.

#define DPRINTK (   fmt,
  args... 
)    do { } while (0)

Definition at line 58 of file smu.c.

#define SMU_MAX_DATA   254

Definition at line 64 of file smu.c.

#define VERSION   "0.7"

Definition at line 50 of file smu.c.

Enumeration Type Documentation

Enumerator:
smu_file_commands 
smu_file_events 
smu_file_closing 

Definition at line 1062 of file smu.c.

Function Documentation

struct smu_sdbp_header* __smu_get_sdb_partition ( int  id,
unsigned int size,
int  interruptible 
)
read

Definition at line 1015 of file smu.c.

core_initcall ( smu_late_init  )
device_initcall ( smu_init_sysfs  )
device_initcall ( smu_device_init  )
EXPORT_SYMBOL ( smu_queue_cmd  )
EXPORT_SYMBOL ( smu_queue_simple  )
EXPORT_SYMBOL ( smu_poll  )
EXPORT_SYMBOL ( smu_done_complete  )
EXPORT_SYMBOL ( smu_spinwait_cmd  )
EXPORT_SYMBOL ( smu_present  )
EXPORT_SYMBOL ( smu_get_sdb_partition  )
EXPORT_SYMBOL_GPL ( smu_get_ofdev  )
void smu_done_complete ( struct smu_cmd *  cmd,
void misc 
)

Definition at line 336 of file smu.c.

struct platform_device* smu_get_ofdev ( void  )
read

Definition at line 692 of file smu.c.

int smu_get_rtc_time ( struct rtc_time time,
int  spinwait 
)

Definition at line 382 of file smu.c.

struct smu_sdbp_header* smu_get_sdb_partition ( int  id,
unsigned int size 
)
read

Definition at line 1047 of file smu.c.

int __init smu_init ( void  )

Definition at line 473 of file smu.c.

void smu_poll ( void  )

Definition at line 322 of file smu.c.

int smu_present ( void  )

Definition at line 466 of file smu.c.

int smu_queue_cmd ( struct smu_cmd *  cmd)

Definition at line 265 of file smu.c.

int smu_queue_i2c ( struct smu_i2c_cmd *  cmd)

Definition at line 822 of file smu.c.

int smu_queue_simple ( struct smu_simple_cmd *  scmd,
u8  command,
unsigned int  data_len,
void(*)(struct smu_cmd *cmd, void *misc done,
void misc,
  ... 
)

Definition at line 291 of file smu.c.

void smu_restart ( void  )

Definition at line 450 of file smu.c.

int smu_set_rtc_time ( struct rtc_time time,
int  spinwait 
)

Definition at line 409 of file smu.c.

void smu_shutdown ( void  )

Definition at line 434 of file smu.c.

void smu_spinwait_cmd ( struct smu_cmd *  cmd)

Definition at line 345 of file smu.c.