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

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

?? sm.h

?? 自己根據(jù)lkd和情境分析
?? H
字號(hào):
/*****************************************************************************//* *	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 */

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人精品一区二区| 午夜久久久久久久久| 欧美日韩色一区| 国精产品一区一区三区mba视频| 国产精品国产成人国产三级 | 亚洲综合区在线| 精品国产1区二区| 在线观看成人小视频| 国产成人免费网站| 日韩电影在线免费看| 亚洲欧美日韩在线| 国产视频911| 日韩欧美一区中文| 欧美日韩视频在线观看一区二区三区| 丁香婷婷综合五月| 韩日av一区二区| 免费不卡在线观看| 午夜电影一区二区三区| 亚洲一区二区三区美女| 亚洲精品一二三四区| 亚洲国产成人在线| 国产区在线观看成人精品| 日韩欧美亚洲一区二区| 欧美精品久久99久久在免费线| 在线日韩一区二区| 色综合久久久久久久久| 99久久国产综合精品女不卡| 成人爱爱电影网址| 成人精品免费看| 粉嫩嫩av羞羞动漫久久久| 国产成人在线视频网站| 福利一区福利二区| 岛国精品一区二区| 成人免费观看男女羞羞视频| 国产一区二区三区四区五区入口| 欧美96一区二区免费视频| 日韩精品一二三四| 亚洲国产精品久久不卡毛片 | 91精彩视频在线| 91丨porny丨首页| 成人av电影在线| eeuss鲁一区二区三区| 成人国产精品免费观看动漫| 国产精品亚洲午夜一区二区三区 | 欧美视频在线观看一区二区| 91久久精品国产91性色tv | 中文字幕乱码日本亚洲一区二区| 欧美国产一区视频在线观看| 国产精品每日更新在线播放网址| 国产精品少妇自拍| 1000部国产精品成人观看| 亚洲欧美日韩一区二区| 一区二区三区高清在线| 亚洲成人综合视频| 蜜臀精品一区二区三区在线观看| 久久成人麻豆午夜电影| 国产精品自拍av| eeuss鲁片一区二区三区| 色哟哟精品一区| 欧美精品丝袜中出| 久久综合久久鬼色| 国产精品久久久久久亚洲伦| 亚洲一区二区在线免费观看视频| 丝瓜av网站精品一区二区| 九色综合国产一区二区三区| 成人国产精品免费观看动漫| 在线精品视频免费观看| 91精品中文字幕一区二区三区| 精品国产一区二区三区久久久蜜月 | 免费视频一区二区| 国产大陆精品国产| 91视视频在线观看入口直接观看www | 国产女人18水真多18精品一级做 | 一区二区三区四区国产精品| 丝袜美腿亚洲色图| 国产精品99久久久久久宅男| 91激情在线视频| 欧美不卡一区二区三区| 亚洲人精品一区| 久久激情五月婷婷| 91精品福利视频| 久久先锋资源网| 亚洲国产中文字幕| 国产成人av一区二区三区在线 | 亚洲va中文字幕| 豆国产96在线|亚洲| 777亚洲妇女| 最好看的中文字幕久久| 精品一区二区三区免费毛片爱| jlzzjlzz国产精品久久| 精品免费日韩av| 夜色激情一区二区| 国产久卡久卡久卡久卡视频精品| 95精品视频在线| 欧美人伦禁忌dvd放荡欲情| 欧美日韩精品二区第二页| 久久久精品日韩欧美| 午夜久久久久久久久久一区二区| 成人免费高清视频在线观看| 91精品国产aⅴ一区二区| 国产精品久久毛片| 精品系列免费在线观看| 欧美在线不卡视频| 国产精品福利一区| 精品一区二区免费在线观看| 欧美色手机在线观看| 亚洲欧洲一区二区在线播放| 国产福利一区在线| 欧美刺激脚交jootjob| 亚洲狠狠爱一区二区三区| 福利一区在线观看| 日韩亚洲欧美在线| 亚洲国产视频直播| 91小视频免费观看| 国产亚洲欧美一区在线观看| 蜜桃视频在线观看一区| 91激情五月电影| 亚洲欧美另类小说视频| 国产成人av自拍| 久久精品一二三| 久久91精品国产91久久小草| 欧美一区二区三区播放老司机| 亚洲综合久久av| 在线观看日韩国产| 亚洲激情第一区| 欧美综合欧美视频| 亚洲国产精品影院| 在线免费观看日韩欧美| 亚洲欧洲成人自拍| av一区二区三区黑人| 欧美国产欧美亚州国产日韩mv天天看完整 | 精品va天堂亚洲国产| 久久国产综合精品| 欧美一区中文字幕| 蜜臀av一区二区在线免费观看| 欧美精品一卡两卡| 免费观看30秒视频久久| 日韩视频在线你懂得| 久久99国内精品| 国产日韩欧美麻豆| 暴力调教一区二区三区| 中文字幕亚洲电影| 在线中文字幕一区二区| 亚洲国产精品一区二区尤物区| 欧美另类一区二区三区| 开心九九激情九九欧美日韩精美视频电影| 91精品国产欧美一区二区18| 日日摸夜夜添夜夜添亚洲女人| 日韩视频中午一区| 国产成人综合自拍| 国产精品久久久久久久岛一牛影视| 91老师国产黑色丝袜在线| 亚洲成人免费影院| 精品乱码亚洲一区二区不卡| 国产福利一区二区三区视频在线 | 精品少妇一区二区三区日产乱码| 青青草成人在线观看| 精品国产网站在线观看| 成人精品免费看| 亚洲在线成人精品| 欧美一区二区日韩一区二区| 国产综合成人久久大片91| 精品999久久久| 99免费精品视频| 亚洲福利视频一区| 欧美v国产在线一区二区三区| 国产福利一区二区| 亚洲一线二线三线久久久| 精品美女一区二区| 99久久综合狠狠综合久久| 亚洲一区在线免费观看| 日韩欧美中文字幕公布| 国产成都精品91一区二区三| 一区二区三区四区视频精品免费| 中文字幕综合网| 欧美最新大片在线看| 另类综合日韩欧美亚洲| 国产精品短视频| 91精品一区二区三区久久久久久| 久久精品久久99精品久久| 自拍偷拍亚洲激情| 欧美大度的电影原声| www.亚洲人| 日本aⅴ精品一区二区三区| 国产精品视频在线看| 欧美一区二区免费观在线| 99久久综合99久久综合网站| 免费国产亚洲视频| 亚洲欧美综合色| 精品精品国产高清一毛片一天堂| 一本色道久久综合亚洲aⅴ蜜桃| 久久国产视频网| 夜夜嗨av一区二区三区网页| 国产日韩欧美在线一区| 欧美久久久久久蜜桃| 91在线无精精品入口| 国产一区二区在线电影| 亚洲一二三区视频在线观看| 中文av一区二区| 欧美变态凌虐bdsm|