Blame view

include/linux/platform_data/mmc-pxamci.h 997 Bytes
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
  #ifndef ASMARM_ARCH_MMC_H
  #define ASMARM_ARCH_MMC_H
f74d132ce   Pierre Ossman   mmc: Move OCR bit...
3
  #include <linux/mmc/host.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
4
5
6
7
8
9
10
  #include <linux/interrupt.h>
  
  struct device;
  struct mmc_host;
  
  struct pxamci_platform_data {
  	unsigned int ocr_mask;			/* available voltages */
f97cab28b   Eric Miao   [ARM] pxa: make i...
11
  	unsigned long detect_delay_ms;		/* delay in millisecond before detecting cards after interrupt */
40220c1a1   David Howells   IRQ: Use the new ...
12
  	int (*init)(struct device *, irq_handler_t , void *);
e619524fe   Richard Purdie   [PATCH] Add write...
13
  	int (*get_ro)(struct device *);
a829abf8d   Arnd Bergmann   ARM: pxa: propaga...
14
  	int (*setpower)(struct device *, unsigned int);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
15
  	void (*exit)(struct device *, void *);
b405db6c0   Robert Jarzmik   [ARM] pxamci: add...
16
17
18
19
20
  	int gpio_card_detect;			/* gpio detecting card insertion */
  	int gpio_card_ro;			/* gpio detecting read only toggle */
  	bool gpio_card_ro_invert;		/* gpio ro is inverted */
  	int gpio_power;				/* gpio powering up MMC bus */
  	bool gpio_power_invert;			/* gpio power is inverted */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
21
22
23
  };
  
  extern void pxa_set_mci_info(struct pxamci_platform_data *info);
8d33b0558   Bridge Wu   [ARM] pxa: mmc: a...
24
  extern void pxa3xx_set_mci2_info(struct pxamci_platform_data *info);
5a1f21b1e   Bridge Wu   [ARM] pxa: mmc: a...
25
  extern void pxa3xx_set_mci3_info(struct pxamci_platform_data *info);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
26
27
  
  #endif