ASoC: tlv312aic23: unbreak resume
[zen-stable.git] / drivers / staging / vt6655 / channel.h
blob7038f0d3bde99ee4e114e40a77856d6b9badc056
1 /*
2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3 * All rights reserved.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 * File: channel.h
23 #ifndef _CHANNEL_H_
24 #define _CHANNEL_H_
26 #include "ttype.h"
27 #include "card.h"
29 /*--------------------- Export Classes ----------------------------*/
31 typedef struct tagSChannelTblElement {
32 unsigned char byChannelNumber;
33 unsigned int uFrequency;
34 bool bValid;
35 unsigned char byMAP;
36 }SChannelTblElement, *PSChannelTblElement;
39 /*--------------------- Export Functions --------------------------*/
41 bool is_channel_valid(unsigned int CountryCode);
42 void init_channel_table(void *pDeviceHandler);
43 unsigned char get_channel_mapping(void *pDeviceHandler, unsigned char byChannelNumber, CARD_PHY_TYPE ePhyType);
44 bool channel_get_list(unsigned int uCountryCodeIdx, unsigned char *pbyChannelTable);
45 unsigned char get_channel_number(void *pDeviceHandler, unsigned char byChannelIndex);
46 bool set_channel(void *pDeviceHandler, unsigned int uConnectionChannel);
47 void set_country_info(void *pDeviceHandler, CARD_PHY_TYPE ePHYType, void *pIE);
48 unsigned char set_support_channels(void *pDeviceHandler, unsigned char *pbyIEs);
49 void set_country_IE(void *pDeviceHandler, void *pIE);
50 bool get_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex,
51 unsigned char *pbyChannelNumber, unsigned char *pbyMap);
52 void set_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex,
53 unsigned char byMap);
54 void clear_channel_map_info(void *pDeviceHandler);
55 unsigned char auto_channel_select(void *pDeviceHandler, CARD_PHY_TYPE ePHYType);
58 #endif /* _CHANNEL_H_ */