Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pdc_stable.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/capability.h>
#include <linux/ctype.h>
#include <linux/sysfs.h>
#include <linux/kobject.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/spinlock.h>
#include <asm/pdc.h>
#include <asm/page.h>
#include <asm/uaccess.h>
#include <asm/hardware.h>

Go to the source code of this file.

Data Structures

struct  pdcspath_entry
 
struct  pdcspath_attribute
 

Macros

#define DPRINTK(fmt, args...)
 
#define PDCS_VERSION   "0.30"
 
#define PDCS_PREFIX   "PDC Stable Storage"
 
#define PDCS_ADDR_PPRI   0x00
 
#define PDCS_ADDR_OSID   0x40
 
#define PDCS_ADDR_OSD1   0x48
 
#define PDCS_ADDR_DIAG   0x58
 
#define PDCS_ADDR_FSIZ   0x5C
 
#define PDCS_ADDR_PCON   0x60
 
#define PDCS_ADDR_PALT   0x80
 
#define PDCS_ADDR_PKBD   0xA0
 
#define PDCS_ADDR_OSD2   0xE0
 
#define PDCSPATH_ENTRY(_addr, _name)
 
#define PDCS_ATTR(_name, _mode, _show, _store)
 
#define PATHS_ATTR(_name, _mode, _show, _store)
 
#define to_pdcspath_attribute(_attr)   container_of(_attr, struct pdcspath_attribute, attr)
 
#define to_pdcspath_entry(obj)   container_of(obj, struct pdcspath_entry, kobj)
 

Functions

 MODULE_AUTHOR ("Thibaut VARENE <[email protected]>")
 
 MODULE_DESCRIPTION ("sysfs interface to HP PDC Stable Storage data")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (PDCS_VERSION)
 
 module_init (pdc_stable_init)
 
 module_exit (pdc_stable_exit)
 

Macro Definition Documentation

#define DPRINTK (   fmt,
  args... 
)

Definition at line 54 of file pdc_stable.c.

#define PATHS_ATTR (   _name,
  _mode,
  _show,
  _store 
)
Value:
struct pdcspath_attribute paths_attr_##_name = { \
.attr = {.name = __stringify(_name), .mode = _mode}, \
.show = _show, \
.store = _store, \
};

Definition at line 129 of file pdc_stable.c.

#define PDCS_ADDR_DIAG   0x58

Definition at line 80 of file pdc_stable.c.

#define PDCS_ADDR_FSIZ   0x5C

Definition at line 81 of file pdc_stable.c.

#define PDCS_ADDR_OSD1   0x48

Definition at line 79 of file pdc_stable.c.

#define PDCS_ADDR_OSD2   0xE0

Definition at line 85 of file pdc_stable.c.

#define PDCS_ADDR_OSID   0x40

Definition at line 78 of file pdc_stable.c.

#define PDCS_ADDR_PALT   0x80

Definition at line 83 of file pdc_stable.c.

#define PDCS_ADDR_PCON   0x60

Definition at line 82 of file pdc_stable.c.

#define PDCS_ADDR_PKBD   0xA0

Definition at line 84 of file pdc_stable.c.

#define PDCS_ADDR_PPRI   0x00

Definition at line 77 of file pdc_stable.c.

#define PDCS_ATTR (   _name,
  _mode,
  _show,
  _store 
)
Value:
struct kobj_attribute pdcs_attr_##_name = { \
.attr = {.name = __stringify(_name), .mode = _mode}, \
.show = _show, \
.store = _store, \
};

Definition at line 122 of file pdc_stable.c.

#define PDCS_PREFIX   "PDC Stable Storage"

Definition at line 75 of file pdc_stable.c.

#define PDCS_VERSION   "0.30"

Definition at line 74 of file pdc_stable.c.

#define PDCSPATH_ENTRY (   _addr,
  _name 
)
Value:
struct pdcspath_entry pdcspath_entry_##_name = { \
.ready = 0, \
.addr = _addr, \
.name = __stringify(_name), \
};

Definition at line 115 of file pdc_stable.c.

#define to_pdcspath_attribute (   _attr)    container_of(_attr, struct pdcspath_attribute, attr)

Definition at line 136 of file pdc_stable.c.

#define to_pdcspath_entry (   obj)    container_of(obj, struct pdcspath_entry, kobj)

Definition at line 137 of file pdc_stable.c.

Function Documentation

MODULE_AUTHOR ( "Thibaut VARENE <[email protected]>"  )
MODULE_DESCRIPTION ( "sysfs interface to HP PDC Stable Storage data )
module_exit ( pdc_stable_exit  )
module_init ( pdc_stable_init  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( PDCS_VERSION  )