-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Staging: vt6655: move channel mapping code from card.c to channel.c
Move functions managing the channel mapping to a new channel.c file, as done in the staging VT6656 driver. The function names contained in card.c were prefixed with CARD followed by the first letter of the return code, remove this and use more coherent function names. The following functions moved and were renamed: ChannelValid -> is_channel_valid CARDbSetChannel -> set_channel CARDvInitChannelTable -> init_channel_table CARDbyGetChannelMapping -> get_channel_mapping CARDvSetCountryInfo -> set_country_info CARDbySetSupportChannels -> set_support_channels CARDbChannelGetList -> channel_get_list CARDvSetCountryIE -> set_country_IE CARDbGetChannelMapInfo -> get_channel_map_info CARDvSetChannelMapInfo -> set_channel_map_info CARDvClearChannelMapInfo -> clear_channel_map_info CARDbyAutoChannelSelect -> auto_channel_select CARDbyGetChannelNumber -> get_channel_number Signed-off-by: Charles Clément <caratorn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
- Loading branch information
Charles Clément
authored and
Greg Kroah-Hartman
committed
Jun 22, 2010
1 parent
2a1a174
commit 79566eb
Showing
12 changed files
with
931 additions
and
982 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. | ||
* All rights reserved. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along | ||
* with this program; if not, write to the Free Software Foundation, Inc., | ||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
* | ||
* File: channel.h | ||
* | ||
*/ | ||
|
||
#ifndef _CHANNEL_H_ | ||
#define _CHANNEL_H_ | ||
|
||
#include "ttype.h" | ||
#include "card.h" | ||
|
||
/*--------------------- Export Classes ----------------------------*/ | ||
|
||
typedef struct tagSChannelTblElement { | ||
BYTE byChannelNumber; | ||
unsigned int uFrequency; | ||
BOOL bValid; | ||
BYTE byMAP; | ||
}SChannelTblElement, *PSChannelTblElement; | ||
|
||
|
||
/*--------------------- Export Functions --------------------------*/ | ||
|
||
BOOL is_channel_valid(unsigned int CountryCode); | ||
void init_channel_table(void *pDeviceHandler); | ||
BYTE get_channel_mapping(void *pDeviceHandler, BYTE byChannelNumber, CARD_PHY_TYPE ePhyType); | ||
BOOL channel_get_list(unsigned int uCountryCodeIdx, unsigned char *pbyChannelTable); | ||
BYTE get_channel_number(void *pDeviceHandler, BYTE byChannelIndex); | ||
BOOL set_channel(void *pDeviceHandler, unsigned int uConnectionChannel); | ||
void set_country_info(void *pDeviceHandler, CARD_PHY_TYPE ePHYType, void *pIE); | ||
BYTE set_support_channels(void *pDeviceHandler, unsigned char *pbyIEs); | ||
void set_country_IE(void *pDeviceHandler, void *pIE); | ||
BOOL get_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex, | ||
unsigned char *pbyChannelNumber, unsigned char *pbyMap); | ||
void set_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex, | ||
BYTE byMap); | ||
void clear_channel_map_info(void *pDeviceHandler); | ||
BYTE auto_channel_select(void *pDeviceHandler, CARD_PHY_TYPE ePHYType); | ||
|
||
|
||
#endif /* _CHANNEL_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.