Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
bus.h File Reference

Go to the source code of this file.

Macros

#define MMC_DEV_ATTR(name, fmt, args...)
 

Functions

struct mmc_cardmmc_alloc_card (struct mmc_host *host, struct device_type *type)
 
int mmc_add_card (struct mmc_card *card)
 
void mmc_remove_card (struct mmc_card *card)
 
int mmc_register_bus (void)
 
void mmc_unregister_bus (void)
 

Macro Definition Documentation

#define MMC_DEV_ATTR (   name,
  fmt,
  args... 
)
Value:
static ssize_t mmc_##name##_show (struct device *dev, struct device_attribute *attr, char *buf) \
{ \
return sprintf(buf, fmt, args); \
} \
static DEVICE_ATTR(name, S_IRUGO, mmc_##name##_show, NULL)

Definition at line 14 of file bus.h.

Function Documentation

int mmc_add_card ( struct mmc_card card)

Definition at line 260 of file bus.c.

struct mmc_card* mmc_alloc_card ( struct mmc_host host,
struct device_type type 
)
read

Definition at line 237 of file bus.c.

int mmc_register_bus ( void  )

Definition at line 188 of file bus.c.

void mmc_remove_card ( struct mmc_card card)

Definition at line 339 of file bus.c.

void mmc_unregister_bus ( void  )

Definition at line 193 of file bus.c.