Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
s3c24xx_mci_pdata Struct Reference

#include <mmc-s3cmci.h>

Data Fields

unsigned int no_wprotect:1
 
unsigned int no_detect:1
 
unsigned int wprotect_invert:1
 
unsigned int detect_invert:1
 
unsigned int use_dma:1
 
unsigned int gpio_detect
 
unsigned int gpio_wprotect
 
unsigned long ocr_avail
 
void(* set_power )(unsigned char power_mode, unsigned short vdd)
 

Detailed Description

struct s3c24xx_mci_pdata - sd/mmc controller platform data : Set this to indicate there is no write-protect switch. : Set this if there is no detect switch. : Invert the default sense of the write protect switch. : Invert the default sense of the write protect switch. : Set to allow the use of DMA. : GPIO number for the card detect line. : GPIO number for the write protect line. : The mask of the available power states, non-zero to use. : Callback to control the power mode.

The is used for card detection when is unset, and the default sense is that 0 returned from gpio_get_value() means that a card is inserted. If is set, then the value from gpio_get_value() is inverted, which makes 1 mean card inserted.

The driver will use to signal whether the card is write protected if is not set. A 0 returned from gpio_get_value() means the card is read/write, and 1 means read-only. The will invert the value returned from gpio_get_value().

Card power is set by , using MCC_VDD_ constants if it is set to a non-zero value, otherwise the default of 3.2-3.4V is used.

Definition at line 29 of file mmc-s3cmci.h.

Field Documentation

unsigned int detect_invert

Definition at line 33 of file mmc-s3cmci.h.

unsigned int gpio_detect

Definition at line 36 of file mmc-s3cmci.h.

unsigned int gpio_wprotect

Definition at line 37 of file mmc-s3cmci.h.

unsigned int no_detect

Definition at line 31 of file mmc-s3cmci.h.

unsigned int no_wprotect

Definition at line 30 of file mmc-s3cmci.h.

unsigned long ocr_avail

Definition at line 38 of file mmc-s3cmci.h.

void(* set_power)(unsigned char power_mode, unsigned short vdd)

Definition at line 39 of file mmc-s3cmci.h.

unsigned int use_dma

Definition at line 34 of file mmc-s3cmci.h.

unsigned int wprotect_invert

Definition at line 32 of file mmc-s3cmci.h.


The documentation for this struct was generated from the following file: