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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sm.h

?? 上傳linux-jx2410的源代碼
?? 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 */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩你懂得| 亚洲三级在线免费观看| 亚洲国产美女搞黄色| 成人福利在线看| 2021久久国产精品不只是精品| 亚洲手机成人高清视频| 成人免费看的视频| 亚洲国产欧美在线| 欧美日韩在线综合| 精品无码三级在线观看视频| 欧美精品 国产精品| 日本最新不卡在线| 5858s免费视频成人| 日本女人一区二区三区| 精品视频一区 二区 三区| 丝袜美腿亚洲综合| 久久久91精品国产一区二区精品 | 91视频免费看| 亚洲国产日韩a在线播放性色| 日韩一级精品视频在线观看| 风间由美中文字幕在线看视频国产欧美| 国产日韩亚洲欧美综合| 欧美日韩一区精品| 美国精品在线观看| 国产精品家庭影院| 日韩你懂的在线观看| 欧美性猛片aaaaaaa做受| 国产在线不卡一区| 视频一区欧美精品| 国产精品成人午夜| 精品免费国产一区二区三区四区| 色综合天天综合色综合av | 久久国产尿小便嘘嘘| 亚洲免费观看在线视频| 久久久三级国产网站| 日韩一区二区三区在线视频| 在线视频国产一区| 91年精品国产| 99久久免费精品| 成人午夜视频网站| 国产99久久久久| 韩国理伦片一区二区三区在线播放| 亚洲精品一二三| 国产精品家庭影院| 亚洲欧美日韩国产一区二区三区| 欧美va亚洲va| 久久免费电影网| 国产精品久久久久久久午夜片| 国产三区在线成人av| 国产欧美日韩久久| 国产精品―色哟哟| 国产精品久久久久久久久免费丝袜 | 国产精品美女视频| 亚洲欧美乱综合| 亚洲综合图片区| 亚洲一区二区三区国产| 日精品一区二区| 国产一区二区按摩在线观看| 国产成a人无v码亚洲福利| 成人h动漫精品| 欧美无砖专区一中文字| 日韩亚洲欧美成人一区| 久久久久亚洲蜜桃| 综合中文字幕亚洲| 亚洲一线二线三线久久久| 看国产成人h片视频| 福利一区在线观看| 色av成人天堂桃色av| 欧美美女直播网站| 久久久久久久久99精品| 亚洲欧洲制服丝袜| 久久激情五月激情| 欧美亚洲日本国产| 日韩美女天天操| 亚洲国产美女搞黄色| 国产福利视频一区二区三区| 欧美三级在线视频| 中文字幕巨乱亚洲| 奇米777欧美一区二区| 日本大香伊一区二区三区| 精品处破学生在线二十三| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 久久综合久久综合九色| 亚洲影视在线播放| 成人少妇影院yyyy| 精品美女被调教视频大全网站| 一区二区三区丝袜| 91视视频在线观看入口直接观看www| 欧美sm美女调教| 天天操天天干天天综合网| 91在线视频播放| 中文字幕日韩一区二区| 国产精品一二三区| 久久嫩草精品久久久精品一| 精品一区二区三区蜜桃| 9191国产精品| 美腿丝袜亚洲色图| 精品国产成人在线影院| 韩国成人精品a∨在线观看| 精品人伦一区二区色婷婷| 久久国产精品99精品国产 | 三级久久三级久久久| 91麻豆产精品久久久久久| 日本一区二区三区在线不卡| 蜜臀av性久久久久蜜臀aⅴ流畅 | 99久久精品免费| 国产成人亚洲综合a∨猫咪| 午夜欧美一区二区三区在线播放 | 欧美韩日一区二区三区四区| 3d动漫精品啪啪一区二区竹菊 | 蜜臂av日日欢夜夜爽一区| 亚洲精品欧美综合四区| 国产精品色婷婷久久58| 久久色在线视频| 日韩一区二区影院| 欧美色偷偷大香| 91蝌蚪porny成人天涯| 国产.欧美.日韩| 成av人片一区二区| 成人免费va视频| 不卡av在线免费观看| 国产激情视频一区二区在线观看 | 三级欧美韩日大片在线看| 丝袜美腿亚洲综合| 午夜精品一区二区三区电影天堂 | 一区二区在线电影| 亚洲图片欧美色图| 日本欧美一区二区在线观看| 免费精品视频最新在线| 九色综合国产一区二区三区| 免费久久精品视频| 国产美女娇喘av呻吟久久| 99视频超级精品| 欧美区在线观看| 久久综合中文字幕| 国产精品久久久久7777按摩| 一片黄亚洲嫩模| 男女激情视频一区| 成人理论电影网| 欧美日韩在线播| 久久综合色8888| 一区二区三区欧美激情| 亚洲国产成人av| 国产精品亚洲视频| 91福利视频网站| 精品国产一区二区三区四区四| 国产欧美日韩精品a在线观看| 一区二区三区在线免费播放| 国产主播一区二区| 色噜噜狠狠一区二区三区果冻| 欧美一区二区黄| 亚洲激情五月婷婷| 国产精品一区二区久久精品爱涩| 欧洲一区二区av| 中文在线资源观看网站视频免费不卡| 亚洲成人激情综合网| 成人激情电影免费在线观看| 精品国产一区久久| 日本美女视频一区二区| 99精品一区二区三区| 欧美精品一区二区三区视频| 亚洲国产精品久久久久婷婷884| 韩国视频一区二区| 日韩一区二区免费在线观看| 亚洲小少妇裸体bbw| 欧美中文字幕一二三区视频| 亚洲同性gay激情无套| 国产呦精品一区二区三区网站| 欧美日韩视频在线第一区| 亚洲精品免费看| 在线免费观看不卡av| 亚洲欧美日韩一区| 日本韩国视频一区二区| 亚洲精品久久7777| 91免费视频网| 一区二区三区在线免费观看| 日本韩国精品在线| 五月激情丁香一区二区三区| 91精品啪在线观看国产60岁| 麻豆免费精品视频| 精品国产成人在线影院| 国产成人精品综合在线观看 | av在线播放成人| 亚洲男同1069视频| 在线一区二区视频| 男女男精品视频| 国产亚洲成av人在线观看导航 | 亚洲精品久久嫩草网站秘色| 欧美日韩精品是欧美日韩精品| 天天影视色香欲综合网老头| 日韩一区二区三区视频在线 | 666欧美在线视频| 国产精品综合视频| 亚洲色图视频网| 欧美一级片免费看| www.视频一区| 日韩电影在线观看一区| 自拍偷在线精品自拍偷无码专区| 欧美亚洲图片小说| 国产成人无遮挡在线视频|