Blame view
include/linux/mmc/slot-gpio.h
1.09 KB
349ab5244
|
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
|
10 11 |
#ifndef MMC_SLOT_GPIO_H #define MMC_SLOT_GPIO_H |
349ab5244
|
12 13 |
struct mmc_host; |
befe4048d
|
14 |
|
5aa7dad30
|
15 16 |
int mmc_gpio_get_ro(struct mmc_host *host); int mmc_gpio_request_ro(struct mmc_host *host, unsigned int gpio); |
5aa7dad30
|
17 |
|
befe4048d
|
18 |
int mmc_gpio_get_cd(struct mmc_host *host); |
214fc309d
|
19 20 |
int mmc_gpio_request_cd(struct mmc_host *host, unsigned int gpio, unsigned int debounce); |
349ab5244
|
21 |
|
740a221ef
|
22 23 |
int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, unsigned int idx, bool override_active_level, |
89168b489
|
24 |
unsigned int debounce, bool *gpio_invert); |
9d2fa2428
|
25 26 |
int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id, unsigned int idx, bool override_active_level, |
89168b489
|
27 |
unsigned int debounce, bool *gpio_invert); |
c7ea834d8
|
28 29 |
void mmc_gpio_set_cd_isr(struct mmc_host *host, irqreturn_t (*isr)(int irq, void *dev_id)); |
740a221ef
|
30 |
void mmc_gpiod_request_cd_irq(struct mmc_host *host); |
349ab5244
|
31 |
#endif |