Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
superhyway-sysfs.c File Reference
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/types.h>
#include <linux/superhyway.h>

Go to the source code of this file.

Macros

#define superhyway_ro_attr(name, fmt, field)
 

Functions

 superhyway_ro_attr (perr_flags,"0x%02x\n", vcr.perr_flags)
 
 superhyway_ro_attr (merr_flags,"0x%02x\n", vcr.merr_flags)
 
 superhyway_ro_attr (mod_vers,"0x%04x\n", vcr.mod_vers)
 
 superhyway_ro_attr (mod_id,"0x%04x\n", vcr.mod_id)
 
 superhyway_ro_attr (bot_mb,"0x%02x\n", vcr.bot_mb)
 
 superhyway_ro_attr (top_mb,"0x%02x\n", vcr.top_mb)
 
 superhyway_ro_attr (resource,"0x%08lx\n", resource[0].start)
 

Variables

struct device_attribute superhyway_dev_attrs []
 

Macro Definition Documentation

#define superhyway_ro_attr (   name,
  fmt,
  field 
)
Value:
static ssize_t name##_show(struct device *dev, struct device_attribute *attr, char *buf) \
{ \
return sprintf(buf, fmt, s->field); \
}

Definition at line 17 of file superhyway-sysfs.c.

Function Documentation

superhyway_ro_attr ( perr_flags  ,
"0x%02x\n"  ,
vcr.  perr_flags 
)
superhyway_ro_attr ( merr_flags  ,
"0x%02x\n"  ,
vcr.  merr_flags 
)
superhyway_ro_attr ( mod_vers  ,
"0x%04x\n"  ,
vcr.  mod_vers 
)
superhyway_ro_attr ( mod_id  ,
"0x%04x\n"  ,
vcr.  mod_id 
)
superhyway_ro_attr ( bot_mb  ,
"0x%02x\n"  ,
vcr.  bot_mb 
)
superhyway_ro_attr ( top_mb  ,
"0x%02x\n"  ,
vcr.  top_mb 
)
superhyway_ro_attr ( resource  ,
"0x%08lx\n"  ,
resource.  start[0] 
)

Variable Documentation

struct device_attribute superhyway_dev_attrs[]
Initial value:
= {
__ATTR_RO(perr_flags),
__ATTR_RO(merr_flags),
__ATTR_RO(mod_vers),
__ATTR_RO(mod_id),
__ATTR_RO(bot_mb),
__ATTR_RO(top_mb),
}

Definition at line 35 of file superhyway-sysfs.c.