1 /* include/linux/wifi_tiwlan.h 2 * 3 * Copyright (C) 2008 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_WIFI_TIWLAN_H_ 16 #define _LINUX_WIFI_TIWLAN_H_ 17 18 #define WMPA_NUMBER_OF_SECTIONS 3 19 #define WMPA_NUMBER_OF_BUFFERS 160 20 #define WMPA_SECTION_HEADER 24 21 #define WMPA_SECTION_SIZE_0 (WMPA_NUMBER_OF_BUFFERS * 64) 22 #define WMPA_SECTION_SIZE_1 (WMPA_NUMBER_OF_BUFFERS * 256) 23 #define WMPA_SECTION_SIZE_2 (WMPA_NUMBER_OF_BUFFERS * 2048) 24 25 struct wifi_platform_data { 26 int (*set_power)(int val); 27 int (*set_reset)(int val); 28 int (*set_carddetect)(int val); 29 void *(*mem_prealloc)(int section, unsigned long size); 30 }; 31 32 #endif 33