Blame view

include/linux/mmc/slot-gpio.h 1.09 KB
349ab5244   Guennadi Liakhovetski   mmc: add a generi...
1
2
3
4
5
6
7
8
9
  /*
   * Generic GPIO card-detect helper header
   *
   * Copyright (C) 2011, Guennadi Liakhovetski <g.liakhovetski@gmx.de>
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License version 2 as
   * published by the Free Software Foundation.
   */
fd0ea65d3   Guennadi Liakhovetski   mmc: extend and r...
10
11
  #ifndef MMC_SLOT_GPIO_H
  #define MMC_SLOT_GPIO_H
349ab5244   Guennadi Liakhovetski   mmc: add a generi...
12
13
  
  struct mmc_host;
befe4048d   Guennadi Liakhovetski   mmc: add CD GPIO ...
14

5aa7dad30   Guennadi Liakhovetski   mmc: core: add WP...
15
16
  int mmc_gpio_get_ro(struct mmc_host *host);
  int mmc_gpio_request_ro(struct mmc_host *host, unsigned int gpio);
5aa7dad30   Guennadi Liakhovetski   mmc: core: add WP...
17

befe4048d   Guennadi Liakhovetski   mmc: add CD GPIO ...
18
  int mmc_gpio_get_cd(struct mmc_host *host);
214fc309d   Laurent Pinchart   mmc: slot-gpio: A...
19
20
  int mmc_gpio_request_cd(struct mmc_host *host, unsigned int gpio,
  			unsigned int debounce);
349ab5244   Guennadi Liakhovetski   mmc: add a generi...
21

740a221ef   Adrian Hunter   mmc: slot-gpio: A...
22
23
  int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id,
  			 unsigned int idx, bool override_active_level,
89168b489   Linus Walleij   mmc: core: restor...
24
  			 unsigned int debounce, bool *gpio_invert);
9d2fa2428   Linus Walleij   mmc: slot-gpio: a...
25
26
  int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id,
  			 unsigned int idx, bool override_active_level,
89168b489   Linus Walleij   mmc: core: restor...
27
  			 unsigned int debounce, bool *gpio_invert);
c7ea834d8   NeilBrown   mmc: slot-gpio: A...
28
29
  void mmc_gpio_set_cd_isr(struct mmc_host *host,
  			 irqreturn_t (*isr)(int irq, void *dev_id));
740a221ef   Adrian Hunter   mmc: slot-gpio: A...
30
  void mmc_gpiod_request_cd_irq(struct mmc_host *host);
349ab5244   Guennadi Liakhovetski   mmc: add a generi...
31
  #endif