diff options
Diffstat (limited to 'drivers/misc/tegra-baseband/bb-power.h')
-rw-r--r-- | drivers/misc/tegra-baseband/bb-power.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/drivers/misc/tegra-baseband/bb-power.h b/drivers/misc/tegra-baseband/bb-power.h new file mode 100644 index 000000000000..dfa7496219de --- /dev/null +++ b/drivers/misc/tegra-baseband/bb-power.h @@ -0,0 +1,46 @@ +/* + * drivers/misc/tegra-baseband/bb-power.h + * + * Copyright (C) 2011 NVIDIA Corporation + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +enum tegra_bb_callback_code { + CB_CODE_INIT = 1, + CB_CODE_DEINIT, + CB_CODE_L0L2, + CB_CODE_L2L0, + CB_CODE_L2L3, + CB_CODE_L3L0, + CB_CODE_INVALID, +}; + +struct tegra_bb_gpio_data { + struct gpio data; + bool doexport; +}; + +struct tegra_bb_gpio_irqdata { + int id; + const char *name; + irq_handler_t handler; + int flags; + void *cookie; +}; + +struct tegra_bb_power_gdata { + struct tegra_bb_gpio_data *gpio; + struct tegra_bb_gpio_irqdata *gpioirq; +}; + +typedef void* (*bb_init_cb)(void *pdata, int code); +typedef int (*bb_power_cb)(int code); |