亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sm.h

?? linux和2410結合開發 用他可以生成2410所需的zImage文件
?? H
字號:
/*****************************************************************************//* *	sm.h  --  soundcard radio modem driver internal header. * *	Copyright (C) 1996-1999  Thomas Sailer (sailer@ife.ee.ethz.ch) * *	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., 675 Mass Ave, Cambridge, MA 02139, USA. * *  Please note that the GPL allows you to use the driver, NOT the radio. *  In order to use the radio, you need a license from the communications *  authority of your country. * */#ifndef _SM_H#define _SM_H/* ---------------------------------------------------------------------- */#include <linux/hdlcdrv.h>#include <linux/soundmodem.h>#include <asm/processor.h>#include <linux/bitops.h>#include <linux/parport.h>#define SM_DEBUG/* ---------------------------------------------------------------------- *//* * Information that need to be kept for each board. */struct sm_state {	struct hdlcdrv_state hdrv;	const struct modem_tx_info *mode_tx;	const struct modem_rx_info *mode_rx;	const struct hardware_info *hwdrv;	struct pardevice *pardev;	/*	 * Hardware (soundcard) access routines state	 */	struct {		void *ibuf;		unsigned int ifragsz;		unsigned int ifragptr;		unsigned int i16bit;		void *obuf;		unsigned int ofragsz;		unsigned int ofragptr;		unsigned int o16bit;		int ptt_cnt;	} dma;	union {		long hw[32/sizeof(long)];	} hw;	/*	 * state of the modem code	 */	union {		long m[48/sizeof(long)];	} m;	union {		long d[256/sizeof(long)];	} d;#define DIAGDATALEN 64	struct diag_data {		unsigned int mode;		unsigned int flags;		volatile int ptr;		short data[DIAGDATALEN];	} diag;#ifdef SM_DEBUG	struct debug_vals {		unsigned long last_jiffies;		unsigned cur_intcnt;		unsigned last_intcnt;		unsigned mod_cyc;		unsigned demod_cyc;		unsigned dma_residue;	} debug_vals;#endif /* SM_DEBUG */};/* ---------------------------------------------------------------------- *//* * Mode definition structure */struct modem_tx_info {	const char *name;	unsigned int loc_storage;	int srate;	int bitrate;        void (*modulator_u8)(struct sm_state *, unsigned char *, unsigned int);        void (*modulator_s16)(struct sm_state *, short *, unsigned int);        void (*init)(struct sm_state *);};struct modem_rx_info {	const char *name;	unsigned int loc_storage;	int srate;	int bitrate;	unsigned int overlap;	unsigned int sperbit;        void (*demodulator_u8)(struct sm_state *, const unsigned char *, unsigned int);        void (*demodulator_s16)(struct sm_state *, const short *, unsigned int);        void (*init)(struct sm_state *);};/* ---------------------------------------------------------------------- *//* * Soundcard driver definition structure */struct hardware_info {	char *hw_name; /* used for request_{region,irq,dma} */	unsigned int loc_storage;	/*	 * mode specific open/close	 */	int (*open)(struct net_device *, struct sm_state *);	int (*close)(struct net_device *, struct sm_state *);	int (*ioctl)(struct net_device *, struct sm_state *, struct ifreq *,		     struct hdlcdrv_ioctl *, int);	int (*sethw)(struct net_device *, struct sm_state *, char *);};/* --------------------------------------------------------------------- */extern const char sm_drvname[];extern const char sm_drvinfo[];/* --------------------------------------------------------------------- *//* * ===================== diagnostics stuff =============================== */extern inline void diag_trigger(struct sm_state *sm){	if (sm->diag.ptr < 0)		if (!(sm->diag.flags & SM_DIAGFLAG_DCDGATE) || sm->hdrv.hdlcrx.dcd)			sm->diag.ptr = 0;}/* --------------------------------------------------------------------- */#define SHRT_MAX ((short)(((unsigned short)(~0U))>>1))#define SHRT_MIN (-SHRT_MAX-1)extern inline void diag_add(struct sm_state *sm, int valinp, int valdemod){	int val;	if ((sm->diag.mode != SM_DIAGMODE_INPUT &&	     sm->diag.mode != SM_DIAGMODE_DEMOD) ||	    sm->diag.ptr >= DIAGDATALEN || sm->diag.ptr < 0)		return;	val = (sm->diag.mode == SM_DIAGMODE_DEMOD) ? valdemod : valinp;	/* clip */	if (val > SHRT_MAX)		val = SHRT_MAX;	if (val < SHRT_MIN)		val = SHRT_MIN;	sm->diag.data[sm->diag.ptr++] = val;}/* --------------------------------------------------------------------- */extern inline void diag_add_one(struct sm_state *sm, int val){	if ((sm->diag.mode != SM_DIAGMODE_INPUT &&	     sm->diag.mode != SM_DIAGMODE_DEMOD) ||	    sm->diag.ptr >= DIAGDATALEN || sm->diag.ptr < 0)		return;	/* clip */	if (val > SHRT_MAX)		val = SHRT_MAX;	if (val < SHRT_MIN)		val = SHRT_MIN;	sm->diag.data[sm->diag.ptr++] = val;}/* --------------------------------------------------------------------- */static inline void diag_add_constellation(struct sm_state *sm, int vali, int valq){	if ((sm->diag.mode != SM_DIAGMODE_CONSTELLATION) ||	    sm->diag.ptr >= DIAGDATALEN-1 || sm->diag.ptr < 0)		return;	/* clip */	if (vali > SHRT_MAX)		vali = SHRT_MAX;	if (vali < SHRT_MIN)		vali = SHRT_MIN;	if (valq > SHRT_MAX)		valq = SHRT_MAX;	if (valq < SHRT_MIN)		valq = SHRT_MIN;	sm->diag.data[sm->diag.ptr++] = vali;	sm->diag.data[sm->diag.ptr++] = valq;}/* --------------------------------------------------------------------- *//* * ===================== utility functions =============================== */#if 0extern inline unsigned int hweight32(unsigned int w)	__attribute__ ((unused));extern inline unsigned int hweight16(unsigned short w)	__attribute__ ((unused));extern inline unsigned int hweight8(unsigned char w)        __attribute__ ((unused));extern inline unsigned int hweight32(unsigned int w){        unsigned int res = (w & 0x55555555) + ((w >> 1) & 0x55555555);        res = (res & 0x33333333) + ((res >> 2) & 0x33333333);        res = (res & 0x0F0F0F0F) + ((res >> 4) & 0x0F0F0F0F);        res = (res & 0x00FF00FF) + ((res >> 8) & 0x00FF00FF);        return (res & 0x0000FFFF) + ((res >> 16) & 0x0000FFFF);}extern inline unsigned int hweight16(unsigned short w){        unsigned short res = (w & 0x5555) + ((w >> 1) & 0x5555);        res = (res & 0x3333) + ((res >> 2) & 0x3333);        res = (res & 0x0F0F) + ((res >> 4) & 0x0F0F);        return (res & 0x00FF) + ((res >> 8) & 0x00FF);}extern inline unsigned int hweight8(unsigned char w){        unsigned short res = (w & 0x55) + ((w >> 1) & 0x55);        res = (res & 0x33) + ((res >> 2) & 0x33);        return (res & 0x0F) + ((res >> 4) & 0x0F);}#endifextern inline unsigned int gcd(unsigned int x, unsigned int y)	__attribute__ ((unused));extern inline unsigned int lcm(unsigned int x, unsigned int y)	__attribute__ ((unused));extern inline unsigned int gcd(unsigned int x, unsigned int y){	for (;;) {		if (!x)			return y;		if (!y)			return x;		if (x > y)			x %= y;		else			y %= x;	}}extern inline unsigned int lcm(unsigned int x, unsigned int y){	return x * y / gcd(x, y);}/* --------------------------------------------------------------------- *//* * ===================== profiling ======================================= */#ifdef __i386__#include <asm/msr.h>/* * only do 32bit cycle counter arithmetic; we hope we won't overflow. * in fact, overflowing modems would require over 2THz CPU clock speeds :-) */#define time_exec(var,cmd)                                              \({                                                                      \	if (cpu_has_tsc) {                                              \		unsigned int cnt1, cnt2;                                \		rdtscl(cnt1);                                           \		cmd;                                                    \		rdtscl(cnt2);                                           \		var = cnt2-cnt1;                                        \	} else {                                                        \		cmd;                                                    \	}                                                               \})#else /* __i386__ */#define time_exec(var,cmd) cmd#endif /* __i386__ *//* --------------------------------------------------------------------- */extern const struct modem_tx_info sm_afsk1200_tx;extern const struct modem_tx_info sm_afsk2400_7_tx;extern const struct modem_tx_info sm_afsk2400_8_tx;extern const struct modem_tx_info sm_afsk2666_tx;extern const struct modem_tx_info sm_psk4800_tx;extern const struct modem_tx_info sm_hapn4800_8_tx;extern const struct modem_tx_info sm_hapn4800_10_tx;extern const struct modem_tx_info sm_hapn4800_pm8_tx;extern const struct modem_tx_info sm_hapn4800_pm10_tx;extern const struct modem_tx_info sm_fsk9600_4_tx;extern const struct modem_tx_info sm_fsk9600_5_tx;extern const struct modem_rx_info sm_afsk1200_rx;extern const struct modem_rx_info sm_afsk2400_7_rx;extern const struct modem_rx_info sm_afsk2400_8_rx;extern const struct modem_rx_info sm_afsk2666_rx;extern const struct modem_rx_info sm_psk4800_rx;extern const struct modem_rx_info sm_hapn4800_8_rx;extern const struct modem_rx_info sm_hapn4800_10_rx;extern const struct modem_rx_info sm_hapn4800_pm8_rx;extern const struct modem_rx_info sm_hapn4800_pm10_rx;extern const struct modem_rx_info sm_fsk9600_4_rx;extern const struct modem_rx_info sm_fsk9600_5_rx;extern const struct hardware_info sm_hw_sbc;extern const struct hardware_info sm_hw_sbcfdx;extern const struct hardware_info sm_hw_wss;extern const struct hardware_info sm_hw_wssfdx;extern const struct modem_tx_info *sm_modem_tx_table[];extern const struct modem_rx_info *sm_modem_rx_table[];extern const struct hardware_info *sm_hardware_table[];/* --------------------------------------------------------------------- */void sm_output_status(struct sm_state *sm);/*void sm_output_open(struct sm_state *sm);*//*void sm_output_close(struct sm_state *sm);*//* --------------------------------------------------------------------- */extern void inline sm_int_freq(struct sm_state *sm){#ifdef SM_DEBUG	unsigned long cur_jiffies = jiffies;	/*	 * measure the interrupt frequency	 */	sm->debug_vals.cur_intcnt++;	if ((cur_jiffies - sm->debug_vals.last_jiffies) >= HZ) {		sm->debug_vals.last_jiffies = cur_jiffies;		sm->debug_vals.last_intcnt = sm->debug_vals.cur_intcnt;		sm->debug_vals.cur_intcnt = 0;	}#endif /* SM_DEBUG */}/* --------------------------------------------------------------------- */#endif /* _SM_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人av一区二区三区| 白白色亚洲国产精品| 高清国产一区二区| 欧美午夜视频网站| 欧美国产欧美亚州国产日韩mv天天看完整| 亚洲另类春色国产| 高清不卡一区二区| 日韩欧美亚洲一区二区| 亚洲最大成人网4388xx| 国产69精品久久久久毛片| 欧美电视剧在线看免费| 亚洲国产精品久久不卡毛片 | 亚洲精品高清在线观看| 国产电影精品久久禁18| 精品日韩一区二区三区免费视频| 亚洲一区二区3| 91麻豆国产福利在线观看| 国产精品卡一卡二| 国产一区 二区| 在线成人小视频| 亚洲国产一区视频| 91国产丝袜在线播放| 亚洲少妇30p| 色综合中文字幕国产| 亚洲国产高清在线| 丰满放荡岳乱妇91ww| 国产日韩欧美一区二区三区综合| 久色婷婷小香蕉久久| 欧美一区二区三区不卡| 麻豆91在线播放免费| 91精品国产欧美一区二区成人| 亚洲五月六月丁香激情| 欧美视频日韩视频在线观看| 《视频一区视频二区| 91丨九色丨黑人外教| 亚洲精品久久嫩草网站秘色| 91高清在线观看| 亚洲aaa精品| 日韩精品一区二区三区在线观看 | 国产精品色眯眯| jlzzjlzz欧美大全| 亚洲免费电影在线| 欧美日韩小视频| 麻豆精品视频在线| 国产日韩欧美激情| 色吧成人激情小说| 日本免费新一区视频| 久久久久久久久久电影| 99视频在线精品| 亚洲成人tv网| 精品福利一二区| 94色蜜桃网一区二区三区| 亚洲午夜国产一区99re久久| 精品少妇一区二区三区日产乱码| 国产a精品视频| 亚洲国产视频在线| 2020国产精品自拍| 一本大道久久精品懂色aⅴ | 综合婷婷亚洲小说| 欧美精品18+| 国产馆精品极品| 亚洲一区视频在线观看视频| 91精品国产高清一区二区三区| 国产一区二区三区视频在线播放| 国产精品高清亚洲| 日韩女优视频免费观看| 97精品超碰一区二区三区| 日韩中文字幕av电影| 欧美激情一区三区| 欧美乱妇20p| 成人国产精品免费网站| 日韩在线一二三区| 一区视频在线播放| 777奇米四色成人影色区| 国产成人啪午夜精品网站男同| 亚洲欧美国产三级| 26uuu久久天堂性欧美| 欧美伊人久久久久久午夜久久久久| 激情五月播播久久久精品| 亚洲一区二区在线观看视频| 国产亚洲精品7777| 日韩欧美激情四射| 91国产丝袜在线播放| 国产69精品久久777的优势| 视频一区在线播放| 亚洲嫩草精品久久| 国产无人区一区二区三区| 91精品国产色综合久久不卡蜜臀| 99久久99久久精品免费观看| 国产专区欧美精品| 日本不卡的三区四区五区| 亚洲卡通欧美制服中文| 中文字幕久久午夜不卡| 精品国产乱码久久久久久牛牛| 欧美图区在线视频| 色综合一个色综合亚洲| 成人黄色综合网站| 国产福利视频一区二区三区| 久久99国产精品免费| 日本欧美一区二区在线观看| 亚洲妇女屁股眼交7| 一区二区三区久久| 亚洲综合在线视频| 亚洲色图色小说| 国产精品国产三级国产aⅴ无密码| 国产性天天综合网| 26uuu久久综合| 久久丝袜美腿综合| 精品嫩草影院久久| 精品精品国产高清a毛片牛牛| 日韩一级片在线播放| 欧美一区二区三区视频在线观看| 欧美日韩成人在线| 欧美一区午夜视频在线观看| 91精品国产91久久综合桃花| 欧美一区二区在线观看| 欧美一个色资源| 日韩精品一区二区三区四区视频| 欧美电视剧在线观看完整版| 精品国内二区三区| 久久久综合视频| 中文字幕av一区二区三区免费看| 中文字幕成人av| 亚洲综合免费观看高清完整版在线| 一区二区三区四区在线免费观看| 亚洲一区二区在线播放相泽| 香蕉影视欧美成人| 久久国产福利国产秒拍| 国产精品一区二区三区网站| 成人国产在线观看| 在线看日本不卡| 日韩一级二级三级| 久久精品亚洲乱码伦伦中文| 国产精品国产三级国产普通话蜜臀 | 黄色日韩三级电影| 高清不卡在线观看av| 欧洲一区二区av| 欧美挠脚心视频网站| 欧美不卡一二三| 国产精品午夜春色av| 亚洲精品国产成人久久av盗摄| 午夜久久久久久久久久一区二区| 蜜臀av性久久久久蜜臀av麻豆| 国产综合一区二区| 91原创在线视频| 555夜色666亚洲国产免| 国产日产欧美一区二区三区| 亚洲一区二区三区四区中文字幕| 久久69国产一区二区蜜臀| 成人av免费网站| 5月丁香婷婷综合| 国产精品理论片| 美女被吸乳得到大胸91| 99久久精品国产精品久久| 日韩一二三四区| 亚洲天堂中文字幕| 久久精品国产精品亚洲精品| 99精品偷自拍| 精品国产a毛片| 亚洲精选在线视频| 国产高清亚洲一区| 欧美另类一区二区三区| 国产精品国产自产拍高清av王其| 日韩av在线免费观看不卡| 成人18精品视频| 精品国产一区久久| 亚洲国产一区二区三区青草影视| 国产美女精品在线| 91精品国产免费| 亚洲图片自拍偷拍| 波波电影院一区二区三区| 欧美第一区第二区| 午夜精品久久久久久久99樱桃 | 国产精品理论片| 激情六月婷婷久久| 正在播放亚洲一区| 自拍偷拍欧美精品| 国产福利一区在线观看| 日韩一级片网址| 天天色图综合网| 91福利在线看| 亚洲精品写真福利| kk眼镜猥琐国模调教系列一区二区| 欧美xxxxxxxx| 免费在线观看视频一区| 欧美午夜片在线看| 亚洲地区一二三色| 欧美日韩综合在线免费观看| 综合久久给合久久狠狠狠97色| 波多野结衣在线aⅴ中文字幕不卡| 久久综合久色欧美综合狠狠| 久久成人综合网| 精品入口麻豆88视频| 久久精品国产免费| 久久嫩草精品久久久精品| 国产精品一区免费视频| 欧美国产日韩精品免费观看| 国产91丝袜在线18| 亚洲日本一区二区| 在线影视一区二区三区|