blob: 8e8b06f1ba4ae3eb5ec51ffa97e97e74d06fadb3 [file] [log] [blame]
Dmitry Shmidte9eff852010-03-18 16:04:18 -07001/* include/linux/wlan_plat.h
2 *
3 * Copyright (C) 2010 Google, Inc.
4 *
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 */
15#ifndef _LINUX_WLAN_PLAT_H_
16#define _LINUX_WLAN_PLAT_H_
17
Dmitry Shmidtf6cd7162014-08-22 14:40:18 -070018#define WLAN_PLAT_NODFS_FLAG 0x01
19
Dmitry Shmidte9eff852010-03-18 16:04:18 -070020struct wifi_platform_data {
21 int (*set_power)(int val);
22 int (*set_reset)(int val);
23 int (*set_carddetect)(int val);
24 void *(*mem_prealloc)(int section, unsigned long size);
Dmitry Shmidtd7e0da42010-06-03 10:55:33 -070025 int (*get_mac_addr)(unsigned char *buf);
Dmitry Shmidt98c80dd2015-01-12 13:42:05 -080026 int (*get_wake_irq)(void);
Dmitry Shmidtf6cd7162014-08-22 14:40:18 -070027 void *(*get_country_code)(char *ccode, u32 flags);
Dmitry Shmidte9eff852010-03-18 16:04:18 -070028};
29
30#endif