Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sdio_bus.c File Reference
#include <linux/device.h>
#include <linux/err.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include <linux/mmc/card.h>
#include <linux/mmc/host.h>
#include <linux/mmc/sdio_func.h>
#include "sdio_cis.h"
#include "sdio_bus.h"

Go to the source code of this file.

Macros

#define sdio_config_attr(field, format_string)
 
#define SDIO_PM_OPS_PTR   NULL
 

Functions

 sdio_config_attr (class,"0x%02x\n")
 
 sdio_config_attr (vendor,"0x%04x\n")
 
 sdio_config_attr (device,"0x%04x\n")
 
int sdio_register_bus (void)
 
void sdio_unregister_bus (void)
 
int sdio_register_driver (struct sdio_driver *drv)
 
 EXPORT_SYMBOL_GPL (sdio_register_driver)
 
void sdio_unregister_driver (struct sdio_driver *drv)
 
 EXPORT_SYMBOL_GPL (sdio_unregister_driver)
 
struct sdio_funcsdio_alloc_func (struct mmc_card *card)
 
int sdio_add_func (struct sdio_func *func)
 
void sdio_remove_func (struct sdio_func *func)
 

Macro Definition Documentation

#define sdio_config_attr (   field,
  format_string 
)
Value:
static ssize_t \
field##_show(struct device *dev, struct device_attribute *attr, char *buf) \
{ \
\
func = dev_to_sdio_func (dev); \
return sprintf (buf, format_string, func->field); \
}

Definition at line 28 of file sdio_bus.c.

#define SDIO_PM_OPS_PTR   NULL

Definition at line 208 of file sdio_bus.c.

Function Documentation

EXPORT_SYMBOL_GPL ( sdio_register_driver  )
EXPORT_SYMBOL_GPL ( sdio_unregister_driver  )
int sdio_add_func ( struct sdio_func func)

Definition at line 292 of file sdio_bus.c.

struct sdio_func* sdio_alloc_func ( struct mmc_card card)
read

Definition at line 270 of file sdio_bus.c.

sdio_config_attr ( class  ,
"0x%02x\n"   
)
sdio_config_attr ( vendor  ,
"0x%04x\n"   
)
sdio_config_attr ( device  ,
"0x%04x\n"   
)
int sdio_register_bus ( void  )

Definition at line 222 of file sdio_bus.c.

int sdio_register_driver ( struct sdio_driver drv)

sdio_register_driver - register a function driver : SDIO function driver

Definition at line 236 of file sdio_bus.c.

void sdio_remove_func ( struct sdio_func func)

Definition at line 311 of file sdio_bus.c.

void sdio_unregister_bus ( void  )

Definition at line 227 of file sdio_bus.c.

void sdio_unregister_driver ( struct sdio_driver drv)

sdio_unregister_driver - unregister a function driver : SDIO function driver

Definition at line 248 of file sdio_bus.c.