Merge branch 'drm-core-next' of git://people.freedesktop.org/~airlied/linux
[deliverable/linux.git] / drivers / staging / vt6655 / channel.h
CommitLineData
79566eb2
CC
1/*
2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3 * All rights reserved.
4 *
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.
9 *
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.
14 *
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.
18 *
19 * File: channel.h
20 *
21 */
22
23#ifndef _CHANNEL_H_
24#define _CHANNEL_H_
25
26#include "ttype.h"
27#include "card.h"
28
29/*--------------------- Export Classes ----------------------------*/
30
31typedef struct tagSChannelTblElement {
3fc9b584 32 unsigned char byChannelNumber;
79566eb2 33 unsigned int uFrequency;
7b6a0013 34 bool bValid;
3fc9b584 35 unsigned char byMAP;
79566eb2
CC
36}SChannelTblElement, *PSChannelTblElement;
37
38
39/*--------------------- Export Functions --------------------------*/
40
7b6a0013 41bool is_channel_valid(unsigned int CountryCode);
79566eb2 42void init_channel_table(void *pDeviceHandler);
3fc9b584 43unsigned char get_channel_mapping(void *pDeviceHandler, unsigned char byChannelNumber, CARD_PHY_TYPE ePhyType);
7b6a0013 44bool channel_get_list(unsigned int uCountryCodeIdx, unsigned char *pbyChannelTable);
3fc9b584 45unsigned char get_channel_number(void *pDeviceHandler, unsigned char byChannelIndex);
7b6a0013 46bool set_channel(void *pDeviceHandler, unsigned int uConnectionChannel);
79566eb2 47void set_country_info(void *pDeviceHandler, CARD_PHY_TYPE ePHYType, void *pIE);
3fc9b584 48unsigned char set_support_channels(void *pDeviceHandler, unsigned char *pbyIEs);
79566eb2 49void set_country_IE(void *pDeviceHandler, void *pIE);
7b6a0013 50bool get_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex,
79566eb2
CC
51 unsigned char *pbyChannelNumber, unsigned char *pbyMap);
52void set_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex,
3fc9b584 53 unsigned char byMap);
79566eb2 54void clear_channel_map_info(void *pDeviceHandler);
3fc9b584 55unsigned char auto_channel_select(void *pDeviceHandler, CARD_PHY_TYPE ePHYType);
79566eb2
CC
56
57
58#endif /* _CHANNEL_H_ */
This page took 0.163533 seconds and 5 git commands to generate.