Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ds.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/mutex.h>
#include <linux/kthread.h>
#include <linux/reboot.h>
#include <linux/cpu.h>
#include <asm/hypervisor.h>
#include <asm/ldc.h>
#include <asm/vio.h>
#include <asm/mdesc.h>
#include <asm/head.h>
#include <asm/irq.h>
#include "kernel.h"

Go to the source code of this file.

Data Structures

struct  ds_msg_tag
 
struct  ds_version
 
struct  ds_ver_req
 
struct  ds_ver_ack
 
struct  ds_ver_nack
 
struct  ds_reg_req
 
struct  ds_reg_ack
 
struct  ds_reg_nack
 
struct  ds_unreg_req
 
struct  ds_unreg_ack
 
struct  ds_unreg_nack
 
struct  ds_data
 
struct  ds_data_nack
 
struct  ds_cap_state
 
struct  ds_info
 
struct  ds_md_update_req
 
struct  ds_md_update_res
 
struct  ds_shutdown_req
 
struct  ds_shutdown_res
 
struct  ds_panic_req
 
struct  ds_panic_res
 
struct  ds_pri_msg
 
struct  ds_var_hdr
 
struct  ds_var_set_msg
 
struct  ds_var_delete_msg
 
struct  ds_var_resp
 
struct  ds_queue_entry
 

Macros

#define DRV_MODULE_NAME   "ds"
 
#define PFX   DRV_MODULE_NAME ": "
 
#define DRV_MODULE_VERSION   "1.0"
 
#define DRV_MODULE_RELDATE   "Jul 11, 2007"
 
#define DS_INIT_REQ   0x00
 
#define DS_INIT_ACK   0x01
 
#define DS_INIT_NACK   0x02
 
#define DS_REG_REQ   0x03
 
#define DS_REG_ACK   0x04
 
#define DS_REG_NACK   0x05
 
#define DS_UNREG_REQ   0x06
 
#define DS_UNREG_ACK   0x07
 
#define DS_UNREG_NACK   0x08
 
#define DS_DATA   0x09
 
#define DS_NACK   0x0a
 
#define DS_OK   0x00
 
#define DS_REG_VER_NACK   0x01
 
#define DS_REG_DUP   0x02
 
#define DS_INV_HDL   0x03
 
#define DS_TYPE_UNKNOWN   0x04
 
#define CAP_STATE_UNKNOWN   0x00
 
#define CAP_STATE_REG_SENT   0x01
 
#define CAP_STATE_REGISTERED   0x02
 
#define DS_HS_START   0x01
 
#define DS_HS_DONE   0x02
 
#define DS_PRI_REQUEST   0x00
 
#define DS_PRI_DATA   0x01
 
#define DS_PRI_UPDATE   0x02
 
#define DS_VAR_SET_REQ   0x00
 
#define DS_VAR_DELETE_REQ   0x01
 
#define DS_VAR_SET_RESP   0x02
 
#define DS_VAR_DELETE_RESP   0x03
 
#define DS_VAR_SUCCESS   0x00
 
#define DS_VAR_NO_SPACE   0x01
 
#define DS_VAR_INVALID_VAR   0x02
 
#define DS_VAR_INVALID_VAL   0x03
 
#define DS_VAR_NOT_PRESENT   0x04
 

Functions

 MODULE_AUTHOR ("David S. Miller ([email protected])")
 
 MODULE_DESCRIPTION ("Sun LDOM domain services driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRV_MODULE_VERSION)
 
void ldom_set_var (const char *var, const char *value)
 
void ldom_reboot (const char *boot_command)
 
void ldom_power_off (void)
 
 fs_initcall (ds_init)
 

Macro Definition Documentation

#define CAP_STATE_REG_SENT   0x01

Definition at line 141 of file ds.c.

#define CAP_STATE_REGISTERED   0x02

Definition at line 142 of file ds.c.

#define CAP_STATE_UNKNOWN   0x00

Definition at line 140 of file ds.c.

#define DRV_MODULE_NAME   "ds"

Definition at line 27 of file ds.c.

#define DRV_MODULE_RELDATE   "Jul 11, 2007"

Definition at line 30 of file ds.c.

#define DRV_MODULE_VERSION   "1.0"

Definition at line 29 of file ds.c.

#define DS_DATA   0x09

Definition at line 50 of file ds.c.

#define DS_HS_DONE   0x02

Definition at line 204 of file ds.c.

#define DS_HS_START   0x01

Definition at line 203 of file ds.c.

#define DS_INIT_ACK   0x01

Definition at line 42 of file ds.c.

#define DS_INIT_NACK   0x02

Definition at line 43 of file ds.c.

#define DS_INIT_REQ   0x00

Definition at line 41 of file ds.c.

#define DS_INV_HDL   0x03

Definition at line 60 of file ds.c.

#define DS_NACK   0x0a

Definition at line 51 of file ds.c.

#define DS_OK   0x00

Definition at line 57 of file ds.c.

#define DS_PRI_DATA   0x01

Definition at line 678 of file ds.c.

#define DS_PRI_REQUEST   0x00

Definition at line 677 of file ds.c.

#define DS_PRI_UPDATE   0x02

Definition at line 679 of file ds.c.

#define DS_REG_ACK   0x04

Definition at line 45 of file ds.c.

#define DS_REG_DUP   0x02

Definition at line 59 of file ds.c.

#define DS_REG_NACK   0x05

Definition at line 46 of file ds.c.

#define DS_REG_REQ   0x03

Definition at line 44 of file ds.c.

#define DS_REG_VER_NACK   0x01

Definition at line 58 of file ds.c.

#define DS_TYPE_UNKNOWN   0x04

Definition at line 61 of file ds.c.

#define DS_UNREG_ACK   0x07

Definition at line 48 of file ds.c.

#define DS_UNREG_NACK   0x08

Definition at line 49 of file ds.c.

#define DS_UNREG_REQ   0x06

Definition at line 47 of file ds.c.

#define DS_VAR_DELETE_REQ   0x01

Definition at line 698 of file ds.c.

#define DS_VAR_DELETE_RESP   0x03

Definition at line 700 of file ds.c.

#define DS_VAR_INVALID_VAL   0x03

Definition at line 719 of file ds.c.

#define DS_VAR_INVALID_VAR   0x02

Definition at line 718 of file ds.c.

#define DS_VAR_NO_SPACE   0x01

Definition at line 717 of file ds.c.

#define DS_VAR_NOT_PRESENT   0x04

Definition at line 720 of file ds.c.

#define DS_VAR_SET_REQ   0x00

Definition at line 697 of file ds.c.

#define DS_VAR_SET_RESP   0x02

Definition at line 699 of file ds.c.

#define DS_VAR_SUCCESS   0x00

Definition at line 716 of file ds.c.

#define PFX   DRV_MODULE_NAME ": "

Definition at line 28 of file ds.c.

Function Documentation

fs_initcall ( ds_init  )
void ldom_power_off ( void  )

Definition at line 864 of file ds.c.

void ldom_reboot ( const char boot_command)

Definition at line 837 of file ds.c.

void ldom_set_var ( const char var,
const char value 
)

Definition at line 745 of file ds.c.

MODULE_AUTHOR ( "David S. Miller ([email protected])"  )
MODULE_DESCRIPTION ( "Sun LDOM domain services driver )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( DRV_MODULE_VERSION  )