bpf: split eBPF out of NET
[linux-2.6/btrfs-unstable.git] / include / linux / platform_data / mmc-davinci.h
blob9cea4ee377b5bedca8a95f64aa226e3870b962b9
1 /*
2 * Board-specific MMC configuration
3 */
5 #ifndef _DAVINCI_MMC_H
6 #define _DAVINCI_MMC_H
8 #include <linux/types.h>
9 #include <linux/mmc/host.h>
11 struct davinci_mmc_config {
12 /* get_cd()/get_wp() may sleep */
13 int (*get_cd)(int module);
14 int (*get_ro)(int module);
16 void (*set_power)(int module, bool on);
18 /* wires == 0 is equivalent to wires == 4 (4-bit parallel) */
19 u8 wires;
21 u32 max_freq;
23 /* any additional host capabilities: OR'd in to mmc->f_caps */
24 u32 caps;
26 /* Number of sg segments */
27 u8 nr_sg;
29 void davinci_setup_mmc(int module, struct davinci_mmc_config *config);
31 enum {
32 MMC_CTLR_VERSION_1 = 0, /* DM644x and DM355 */
33 MMC_CTLR_VERSION_2, /* DA830 */
36 #endif