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

Go to the source code of this file.

Macros

#define cls_dev_to_mmc_host(d)   container_of(d, struct mmc_host, class_dev)
 

Functions

int mmc_register_host_class (void)
 
void mmc_unregister_host_class (void)
 
struct mmc_hostmmc_alloc_host (int extra, struct device *dev)
 
 EXPORT_SYMBOL (mmc_alloc_host)
 
int mmc_add_host (struct mmc_host *host)
 
 EXPORT_SYMBOL (mmc_add_host)
 
void mmc_remove_host (struct mmc_host *host)
 
 EXPORT_SYMBOL (mmc_remove_host)
 
void mmc_free_host (struct mmc_host *host)
 
 EXPORT_SYMBOL (mmc_free_host)
 

Macro Definition Documentation

#define cls_dev_to_mmc_host (   d)    container_of(d, struct mmc_host, class_dev)

Definition at line 30 of file host.c.

Function Documentation

EXPORT_SYMBOL ( mmc_alloc_host  )
EXPORT_SYMBOL ( mmc_add_host  )
EXPORT_SYMBOL ( mmc_remove_host  )
EXPORT_SYMBOL ( mmc_free_host  )
int mmc_add_host ( struct mmc_host host)

mmc_add_host - initialise host hardware : mmc host

Register the host with the driver model. The host must be prepared to start servicing requests before this function completes.

Definition at line 371 of file host.c.

struct mmc_host* mmc_alloc_host ( int  extra,
struct device dev 
)
read

mmc_alloc_host - initialise the per-host structure. : sizeof private data structure : pointer to host device model structure

Initialise the per-host structure.

Definition at line 304 of file host.c.

void mmc_free_host ( struct mmc_host host)

mmc_free_host - free the host structure : mmc host

Free the host once all references to it have been dropped.

Definition at line 429 of file host.c.

int mmc_register_host_class ( void  )

Definition at line 44 of file host.c.

void mmc_remove_host ( struct mmc_host host)

mmc_remove_host - remove host hardware : mmc host

Unregister and remove all cards associated with this host, and power down the MMC bus. No new requests will be issued after this function has returned.

Definition at line 405 of file host.c.

void mmc_unregister_host_class ( void  )

Definition at line 49 of file host.c.