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

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

?? sm.h

?? 廣州斯道2410普及版II的源代碼
?? 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一区二区三区免费野_久草精品视频
欧美电影一区二区三区| 一本色道久久综合狠狠躁的推荐| 91精品婷婷国产综合久久性色| 亚洲黄色av一区| 色999日韩国产欧美一区二区| 亚洲美女区一区| 色综合天天狠狠| 亚洲一区日韩精品中文字幕| 精品视频一区二区不卡| 日韩黄色片在线观看| 69堂亚洲精品首页| 韩国精品主播一区二区在线观看 | 国产午夜一区二区三区| 国产999精品久久久久久绿帽| 中文字幕精品一区| 91搞黄在线观看| 免费成人在线观看视频| 久久亚洲一区二区三区四区| 波多野结衣中文字幕一区| 亚洲精品福利视频网站| 欧美一区二区女人| 国产成人午夜视频| 亚洲日本va在线观看| 91精品午夜视频| 丁香啪啪综合成人亚洲小说 | 亚洲综合在线第一页| 3d成人动漫网站| 国产成人8x视频一区二区| 一区二区三区欧美亚洲| 精品欧美久久久| 91片在线免费观看| 久久精品国产一区二区三| 中文字幕不卡在线播放| 欧美日韩一级视频| 国产成人午夜精品影院观看视频| 亚洲一区二区视频| 精品国产乱码91久久久久久网站| 91色视频在线| 国产精品综合网| 亚洲国产一区二区a毛片| 久久免费午夜影院| 欧美精品一二三| 成人伦理片在线| 国产一区二区在线观看免费| 夜夜嗨av一区二区三区四季av| 久久天堂av综合合色蜜桃网| 欧美日韩专区在线| va亚洲va日韩不卡在线观看| 男女性色大片免费观看一区二区| 成人免费在线播放视频| 精品久久人人做人人爽| 欧美日韩免费电影| 91啦中文在线观看| 成人中文字幕合集| 极品少妇一区二区| 手机精品视频在线观看| 日韩一区欧美一区| 中日韩免费视频中文字幕| 91精品国产aⅴ一区二区| 色欧美片视频在线观看在线视频| 成人午夜av在线| 国产一区欧美一区| 久久精品国产第一区二区三区| 亚洲乱码国产乱码精品精98午夜 | 国产精品久久久久天堂| 久久蜜桃av一区精品变态类天堂 | 国产精品中文有码| 美女mm1313爽爽久久久蜜臀| 亚洲成av人**亚洲成av**| 最新中文字幕一区二区三区| 国产欧美精品一区| 国产欧美日韩视频在线观看| 精品成人一区二区| 欧美xxxxx裸体时装秀| 日韩欧美成人午夜| 日韩精品一区二区三区视频| 91精品麻豆日日躁夜夜躁| 欧美日韩国产乱码电影| 在线观看欧美日本| 欧美亚洲一区三区| 欧日韩精品视频| 精品视频在线免费观看| 欧美高清激情brazzers| 欧美一区二区三区日韩视频| 欧美日韩精品系列| 欧美精品乱码久久久久久按摩 | 蜜桃av一区二区三区电影| 日本不卡的三区四区五区| 日韩精品视频网站| 久久99精品网久久| 精品一区二区三区免费播放 | 午夜精品久久久久久| 亚洲高清免费观看高清完整版在线观看| 亚洲精品视频在线观看网站| 一区二区三区免费看视频| 午夜亚洲国产au精品一区二区| 亚洲成人手机在线| 久久不见久久见中文字幕免费| 麻豆成人久久精品二区三区红| 国产在线日韩欧美| av在线播放一区二区三区| 在线免费观看成人短视频| 欧美精品久久一区| 久久久久久久网| 亚洲乱码一区二区三区在线观看| 一区二区三区四区在线播放| 亚洲高清免费观看| 国产在线精品国自产拍免费| 99国产精品久久| 欧美一卡2卡3卡4卡| 国产欧美日韩在线观看| 亚洲一区二区三区四区在线免费观看| 亚洲成人www| 国产一区视频网站| 欧美亚洲综合色| 精品国产乱码久久久久久久久| 中文字幕在线观看不卡| 日韩国产成人精品| 国产大陆a不卡| 欧美男同性恋视频网站| 国产亚洲精品超碰| 日韩经典一区二区| 粉嫩一区二区三区在线看| 欧美精品一级二级三级| 欧美国产激情二区三区| 免费亚洲电影在线| 91在线观看视频| 久久亚洲一区二区三区明星换脸 | 亚洲视频综合在线| 日本不卡视频在线| 在线精品视频免费观看| 久久精品视频一区| 天天影视网天天综合色在线播放 | 国产精选一区二区三区| 欧美日韩中文一区| 国产精品久久久久久户外露出 | 国产二区国产一区在线观看| 欧美日韩国产在线观看| 国产精品久久久久久久久动漫| 美国十次了思思久久精品导航| 色综合久久88色综合天天免费| 日韩三级电影网址| 亚洲高清三级视频| 一本一本久久a久久精品综合麻豆| 久久毛片高清国产| 青青草97国产精品免费观看| 色吊一区二区三区| 中文字幕一区二区三区视频| 国产高清视频一区| 亚洲精品一区二区三区精华液 | 国产偷国产偷亚洲高清人白洁| 一个色在线综合| jlzzjlzz亚洲日本少妇| 欧美精品一区二区精品网| 日韩国产在线观看| 欧美日韩精品三区| 亚洲成国产人片在线观看| 色婷婷激情久久| 国产经典欧美精品| 色狠狠一区二区| 中文字幕一区二区视频| 国产成人精品影院| 亚洲欧美在线视频观看| 一区二区成人在线观看| 白白色 亚洲乱淫| 欧美国产禁国产网站cc| 精品一区二区久久| 欧美一区二区三区思思人| 日韩中文字幕亚洲一区二区va在线| 91香蕉视频在线| 一区二区三区在线不卡| 日本韩国欧美一区二区三区| 亚洲另类在线一区| 在线一区二区三区做爰视频网站| 亚洲欧美怡红院| 色综合天天综合网天天狠天天 | 日韩高清不卡在线| 在线电影一区二区三区| 蜜桃传媒麻豆第一区在线观看| 日韩欧美高清在线| 国产精品2024| 欧美国产国产综合| 色综合久久综合网欧美综合网 | 日韩av在线发布| 精品国产不卡一区二区三区| 国产精品一二三在| 国产精品久久毛片av大全日韩| 91丨九色丨蝌蚪富婆spa| 亚洲激情av在线| 337p亚洲精品色噜噜狠狠| 美女脱光内衣内裤视频久久网站| 欧美一区二区成人| 国产精品资源网| 一区二区三区免费在线观看| 91精品国产91久久久久久一区二区| 喷白浆一区二区| 国产精品天美传媒沈樵| 欧美色区777第一页| 国产一区二区三区黄视频 | 日韩精品一区二区三区swag|