Bus operation function set, there mmc, sd, sdio three kinds
struct mmc_host_ops
Host controller operates the set of functions used to describe the function-operator interface card controller, for operating the register function from the host controller to the core layer layer, so that the core layer is isolated from the host controller and a particular
struct mmc_command
It represents a command mmc
struct mmc_data
Data indicate a mmc
struct mmc_request
It represents a request mmc
struct sdio_func
Sdio card can support a lot of Functions, Function corresponds to a struct sdio_func structure on the software, and finally reaction to the driver is a device model
struct sdio_func {struct mmc_card *card;/* the card this device belongs to */struct device dev;/* the device */
sdio_irq_handler_t *irq_handler;/* IRQ callback */unsignedint num;/* function number */unsignedchar class;/* standard interface class */unsignedshort vendor;/* vendor id */unsignedshort device;/* device id */unsigned max_blksize;/* maximum block size */unsigned cur_blksize;/* current block size */unsigned enable_timeout;/* max enable timeout in msec */unsignedint state;/* function state */#define SDIO_STATE_PRESENT (1<<0) /* present in sysfs */
u8 *tmpbuf;/* DMA:able scratch buffer */unsigned num_info;/* number of info strings */constchar**info;/* info strings */struct sdio_func_tuple *tuples;}