Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dlpar.c File Reference
#include <linux/kernel.h>
#include <linux/kref.h>
#include <linux/notifier.h>
#include <linux/proc_fs.h>
#include <linux/spinlock.h>
#include <linux/cpu.h>
#include <linux/slab.h>
#include "offline_states.h"
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/uaccess.h>
#include <asm/rtas.h>
#include <asm/pSeries_reconfig.h>

Go to the source code of this file.

Data Structures

struct  cc_workarea
 

Macros

#define COMPLETE   0
 
#define NEXT_SIBLING   1
 
#define NEXT_CHILD   2
 
#define NEXT_PROPERTY   3
 
#define PREV_PARENT   4
 
#define MORE_MEMORY   5
 
#define CALL_AGAIN   -2
 
#define ERR_CFG_USE   -9003
 
#define DR_ENTITY_SENSE   9003
 
#define DR_ENTITY_PRESENT   1
 
#define DR_ENTITY_UNUSABLE   2
 
#define ALLOCATION_STATE   9003
 
#define ALLOC_UNUSABLE   0
 
#define ALLOC_USABLE   1
 
#define ISOLATION_STATE   9001
 
#define ISOLATE   0
 
#define UNISOLATE   1
 

Functions

void dlpar_free_cc_property (struct property *prop)
 
void dlpar_free_cc_nodes (struct device_node *dn)
 
struct device_nodedlpar_configure_connector (u32 drc_index)
 
int dlpar_attach_node (struct device_node *dn)
 
int dlpar_detach_node (struct device_node *dn)
 
int dlpar_acquire_drc (u32 drc_index)
 
int dlpar_release_drc (u32 drc_index)
 

Macro Definition Documentation

#define ALLOC_UNUSABLE   0

Definition at line 314 of file dlpar.c.

#define ALLOC_USABLE   1

Definition at line 315 of file dlpar.c.

#define ALLOCATION_STATE   9003

Definition at line 313 of file dlpar.c.

#define CALL_AGAIN   -2

Definition at line 121 of file dlpar.c.

#define COMPLETE   0

Definition at line 115 of file dlpar.c.

#define DR_ENTITY_PRESENT   1

Definition at line 311 of file dlpar.c.

#define DR_ENTITY_SENSE   9003

Definition at line 310 of file dlpar.c.

#define DR_ENTITY_UNUSABLE   2

Definition at line 312 of file dlpar.c.

#define ERR_CFG_USE   -9003

Definition at line 122 of file dlpar.c.

#define ISOLATE   0

Definition at line 317 of file dlpar.c.

#define ISOLATION_STATE   9001

Definition at line 316 of file dlpar.c.

#define MORE_MEMORY   5

Definition at line 120 of file dlpar.c.

#define NEXT_CHILD   2

Definition at line 117 of file dlpar.c.

#define NEXT_PROPERTY   3

Definition at line 118 of file dlpar.c.

#define NEXT_SIBLING   1

Definition at line 116 of file dlpar.c.

#define PREV_PARENT   4

Definition at line 119 of file dlpar.c.

#define UNISOLATE   1

Definition at line 318 of file dlpar.c.

Function Documentation

int dlpar_acquire_drc ( u32  drc_index)

Definition at line 320 of file dlpar.c.

int dlpar_attach_node ( struct device_node dn)

Definition at line 256 of file dlpar.c.

struct device_node* dlpar_configure_connector ( u32  drc_index)
read

Definition at line 124 of file dlpar.c.

int dlpar_detach_node ( struct device_node dn)

Definition at line 288 of file dlpar.c.

void dlpar_free_cc_nodes ( struct device_node dn)

Definition at line 104 of file dlpar.c.

void dlpar_free_cc_property ( struct property prop)

Definition at line 36 of file dlpar.c.

int dlpar_release_drc ( u32  drc_index)

Definition at line 342 of file dlpar.c.