Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | #ifndef _WCNSS_WLAN_H_ |
| 15 | #define _WCNSS_WLAN_H_ |
| 16 | |
| 17 | #include <linux/device.h> |
| 18 | |
| 19 | #define WCNSS_WLAN_IRQ_INVALID -1 |
| 20 | |
| 21 | struct device *wcnss_wlan_get_device(void); |
| 22 | struct resource *wcnss_wlan_get_memory_map(struct device *dev); |
| 23 | int wcnss_wlan_get_dxe_tx_irq(struct device *dev); |
| 24 | int wcnss_wlan_get_dxe_rx_irq(struct device *dev); |
| 25 | void wcnss_wlan_register_pm_ops(struct device *dev, |
| 26 | const struct dev_pm_ops *pm_ops); |
Sameer Thalappil | ecdd100 | 2011-09-09 10:52:27 -0700 | [diff] [blame^] | 27 | void wcnss_wlan_unregister_pm_ops(struct device *dev, |
| 28 | const struct dev_pm_ops *pm_ops); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 29 | |
| 30 | #define wcnss_wlan_get_drvdata(dev) dev_get_drvdata(dev) |
| 31 | #define wcnss_wlan_set_drvdata(dev, data) dev_set_drvdata((dev), (data)) |
| 32 | |
| 33 | #endif /* _WCNSS_WLAN_H_ */ |