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

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

?? zs.c

?? linux和2410結合開發 用他可以生成2410所需的zImage文件
?? C
?? 第 1 頁 / 共 5 頁
字號:
	restore_flags(flags);}void mouse_put_char(char ch){	struct sun_zschannel *chan = zs_mousechan;	unsigned long flags;	if(!chan)		return;	save_flags(flags); cli();	zs_put_char(chan, ch);	restore_flags(flags);}/* These are for receiving and sending characters under the kgdb * source level kernel debugger. */void putDebugChar(char kgdb_char){	struct sun_zschannel *chan = zs_kgdbchan;	while((sbus_readb(&chan->control) & Tx_BUF_EMP)==0)		udelay(5);	sbus_writeb(kgdb_char, &chan->data);	ZS_WSYNC(chan);	ZSLOG(REGDATA, kgdb_char, 1);}char getDebugChar(void){	struct sun_zschannel *chan = zs_kgdbchan;	u8 val;	do {		val = sbus_readb(&chan->control);		ZSLOG(REGCTRL, val, 0);		udelay(5);	} while ((val & Rx_CH_AV) == 0);	val = sbus_readb(&chan->data);	ZSLOG(REGDATA, val, 0);	return val;}static void zs_flush_chars(struct tty_struct *tty){	struct sun_serial *info = (struct sun_serial *) tty->driver_data;	unsigned long flags;	if (serial_paranoia_check(info, tty->device, "zs_flush_chars"))		return;	save_flags(flags); cli();	if (info->xmit_cnt <= 0 || tty->stopped || tty->hw_stopped ||	    !info->xmit_buf)		goto out;	/* Enable transmitter */	info->curregs[1] |= TxINT_ENAB|EXT_INT_ENAB;	write_zsreg(info->zs_channel, 1, info->curregs[1]);	info->curregs[5] |= TxENAB;	write_zsreg(info->zs_channel, 5, info->curregs[5]);	/*	 * Send a first (bootstrapping) character. A best solution is	 * to call transmit_chars() here which handles output in a	 * generic way. Current transmit_chars() not only transmits,	 * but resets interrupts also what we do not desire here.	 * XXX Discuss with David.	 */	zs_put_char(info->zs_channel, info->xmit_buf[info->xmit_tail++]);	info->xmit_tail = info->xmit_tail & (SERIAL_XMIT_SIZE-1);	info->xmit_cnt--;out:	restore_flags(flags);}static int zs_write(struct tty_struct * tty, int from_user,		    const unsigned char *buf, int count){	struct sun_serial *info = (struct sun_serial *) tty->driver_data;	unsigned long flags;	int c, total = 0;	if (serial_paranoia_check(info, tty->device, "zs_write"))		return 0;	if (!info || !info->xmit_buf || !tmp_buf)		return 0;	save_flags(flags);	if (from_user) {		down(&tmp_buf_sem);		while (1) {			c = MIN(count, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1,					   SERIAL_XMIT_SIZE - info->xmit_head));			if (c <= 0)				break;			c -= copy_from_user(tmp_buf, buf, c);			if (!c) {				if (!total)					total = -EFAULT;				break;			}			cli();			c = MIN(c, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1,				       SERIAL_XMIT_SIZE - info->xmit_head));			memcpy(info->xmit_buf + info->xmit_head, tmp_buf, c);			info->xmit_head = ((info->xmit_head + c) &					   (SERIAL_XMIT_SIZE - 1));			info->xmit_cnt += c;			restore_flags(flags);			buf += c;			count -= c;			total += c;		}		up(&tmp_buf_sem);	} else {		while (1) {			cli();					c = MIN(count, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1,					   SERIAL_XMIT_SIZE - info->xmit_head));			if (c <= 0) {				restore_flags(flags);				break;			}			memcpy(info->xmit_buf + info->xmit_head, buf, c);			info->xmit_head = ((info->xmit_head + c) &					   (SERIAL_XMIT_SIZE - 1));			info->xmit_cnt += c;			restore_flags(flags);			buf += c;			count -= c;			total += c;		}	}	cli();			if (info->xmit_cnt && !tty->stopped && !tty->hw_stopped) {		/* Enable transmitter */		info->curregs[1] |= TxINT_ENAB|EXT_INT_ENAB;		write_zsreg(info->zs_channel, 1, info->curregs[1]);		info->curregs[5] |= TxENAB;		write_zsreg(info->zs_channel, 5, info->curregs[5]);#if 1		zs_put_char(info->zs_channel,			    info->xmit_buf[info->xmit_tail++]);		info->xmit_tail = info->xmit_tail & (SERIAL_XMIT_SIZE-1);		info->xmit_cnt--;#endif	}	restore_flags(flags);	return total;}static int zs_write_room(struct tty_struct *tty){	struct sun_serial *info = (struct sun_serial *) tty->driver_data;	int ret;	if (serial_paranoia_check(info, tty->device, "zs_write_room"))		return 0;	ret = SERIAL_XMIT_SIZE - info->xmit_cnt - 1;	if (ret < 0)		ret = 0;	return ret;}static int zs_chars_in_buffer(struct tty_struct *tty){	struct sun_serial *info = (struct sun_serial *) tty->driver_data;	if (serial_paranoia_check(info, tty->device, "zs_chars_in_buffer"))		return 0;	return info->xmit_cnt;}static void zs_flush_buffer(struct tty_struct *tty){	struct sun_serial *info = (struct sun_serial *) tty->driver_data;	if (serial_paranoia_check(info, tty->device, "zs_flush_buffer"))		return;	cli();	info->xmit_cnt = info->xmit_head = info->xmit_tail = 0;	sti();	wake_up_interruptible(&tty->write_wait);	if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) &&	    tty->ldisc.write_wakeup)		(tty->ldisc.write_wakeup)(tty);}/* * ------------------------------------------------------------ * zs_throttle() *  * This routine is called by the upper-layer tty layer to signal that * incoming characters should be throttled. * ------------------------------------------------------------ */static void zs_throttle(struct tty_struct * tty){	struct sun_serial *info = (struct sun_serial *) tty->driver_data;#ifdef SERIAL_DEBUG_THROTTLE	char	buf[64];		printk("throttle %s: %d....\n", _tty_name(tty, buf),	       tty->ldisc.chars_in_buffer(tty));#endif	if (serial_paranoia_check(info, tty->device, "zs_throttle"))		return;		if (I_IXOFF(tty))		info->x_char = STOP_CHAR(tty);	/* Turn off RTS line */	cli();	info->curregs[5] &= ~RTS;	write_zsreg(info->zs_channel, 5, info->curregs[5]);	sti();}static void zs_unthrottle(struct tty_struct * tty){	struct sun_serial *info = (struct sun_serial *) tty->driver_data;#ifdef SERIAL_DEBUG_THROTTLE	char	buf[64];		printk("unthrottle %s: %d....\n", _tty_name(tty, buf),	       tty->ldisc.chars_in_buffer(tty));#endif	if (serial_paranoia_check(info, tty->device, "zs_unthrottle"))		return;		if (I_IXOFF(tty)) {		if (info->x_char)			info->x_char = 0;		else			info->x_char = START_CHAR(tty);	}	/* Assert RTS line */	cli();	info->curregs[5] |= RTS;	write_zsreg(info->zs_channel, 5, info->curregs[5]);	sti();}/* * ------------------------------------------------------------ * zs_ioctl() and friends * ------------------------------------------------------------ */static int get_serial_info(struct sun_serial * info,			   struct serial_struct * retinfo){	struct serial_struct tmp;  	if (!retinfo)		return -EFAULT;	memset(&tmp, 0, sizeof(tmp));	tmp.type = info->type;	tmp.line = info->line;	tmp.port = info->port;	tmp.irq = info->irq;	tmp.flags = info->flags;	tmp.baud_base = info->baud_base;	tmp.close_delay = info->close_delay;	tmp.closing_wait = info->closing_wait;	tmp.custom_divisor = info->custom_divisor;	if (copy_to_user(retinfo,&tmp,sizeof(*retinfo)))		return -EFAULT;	return 0;}static int set_serial_info(struct sun_serial * info,			   struct serial_struct * new_info){	struct serial_struct new_serial;	struct sun_serial old_info;	int retval = 0;	if (!new_info || copy_from_user(&new_serial,new_info,sizeof(new_serial)))		return -EFAULT;	old_info = *info;	if (!capable(CAP_SYS_ADMIN)) {		if ((new_serial.baud_base != info->baud_base) ||		    (new_serial.type != info->type) ||		    (new_serial.close_delay != info->close_delay) ||		    ((new_serial.flags & ~ZILOG_USR_MASK) !=		     (info->flags & ~ZILOG_USR_MASK)))			return -EPERM;		info->flags = ((info->flags & ~ZILOG_USR_MASK) |			       (new_serial.flags & ZILOG_USR_MASK));		info->custom_divisor = new_serial.custom_divisor;		goto check_and_exit;	}	if(new_serial.baud_base < 9600)		return -EINVAL;	if (info->count > 1)		return -EBUSY;	/*	 * OK, past this point, all the error checking has been done.	 * At this point, we start making changes.....	 */	info->baud_base = new_serial.baud_base;	info->flags = ((info->flags & ~ZILOG_FLAGS) |			(new_serial.flags & ZILOG_FLAGS));	info->custom_divisor = new_serial.custom_divisor;	info->type = new_serial.type;	info->close_delay = new_serial.close_delay;	info->closing_wait = new_serial.closing_wait;check_and_exit:	retval = startup(info);	return retval;}/* * get_lsr_info - get line status register info * * Purpose: Let user call ioctl() to get info when the UART physically * 	    is emptied.  On bus types like RS485, the transmitter must * 	    release the bus after transmitting. This must be done when * 	    the transmit shift register is empty, not be done when the * 	    transmit holding register is empty.  This functionality * 	    allows an RS485 driver to be written in user space.  */static int get_lsr_info(struct sun_serial * info, unsigned int *value){	unsigned char status;	cli();	status = sbus_readb(&info->zs_channel->control);	ZSDELAY();	ZSLOG(REGCTRL, status, 0);	sti();	if (put_user(status, value))		return -EFAULT;	return 0;}static int get_modem_info(struct sun_serial * info, unsigned int *value){	unsigned char status;	unsigned int result;	cli();	status = sbus_readb(&info->zs_channel->control);	ZSDELAY();	ZSLOG(REGCTRL, status, 0);	sti();	result =  ((info->curregs[5] & RTS) ? TIOCM_RTS : 0)		| ((info->curregs[5] & DTR) ? TIOCM_DTR : 0)		| ((status  & DCD) ? TIOCM_CAR : 0)		| ((status  & SYNC) ? TIOCM_DSR : 0)		| ((status  & CTS) ? TIOCM_CTS : 0);	if (put_user(result, value))		return -EFAULT;	return 0;}static int set_modem_info(struct sun_serial * info, unsigned int cmd,			  unsigned int *value){	unsigned int arg;	if (get_user(arg, value))		return -EFAULT;	switch (cmd) {	case TIOCMBIS: 		if (arg & TIOCM_RTS)			info->curregs[5] |= RTS;		if (arg & TIOCM_DTR)			info->curregs[5] |= DTR;		break;	case TIOCMBIC:		if (arg & TIOCM_RTS)			info->curregs[5] &= ~RTS;		if (arg & TIOCM_DTR)			info->curregs[5] &= ~DTR;		break;	case TIOCMSET:		info->curregs[5] = ((info->curregs[5] & ~(RTS | DTR))			     | ((arg & TIOCM_RTS) ? RTS : 0)			     | ((arg & TIOCM_DTR) ? DTR : 0));		break;	default:		return -EINVAL;	}	cli();	write_zsreg(info->zs_channel, 5, info->curregs[5]);	sti();	return 0;}/* * This routine sends a break character out the serial port. */static void send_break(	struct sun_serial * info, int duration){	if (!info->port)		return;	current->state = TASK_INTERRUPTIBLE;	cli();	write_zsreg(info->zs_channel, 5, (info->curregs[5] | SND_BRK));	schedule_timeout(duration);	write_zsreg(info->zs_channel, 5, info->curregs[5]);	sti();}static int zs_ioctl(struct tty_struct *tty, struct file * file,		    unsigned int cmd, unsigned long arg){	struct sun_serial * info = (struct sun_serial *) tty->driver_data;	int retval;	if (serial_paranoia_check(info, tty->device, "zs_ioctl"))		return -ENODEV;	if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) &&	    (cmd != TIOCSERCONFIG) && (cmd != TIOCSERGWILD)  &&	    (cmd != TIOCSERSWILD) && (cmd != TIOCSERGSTRUCT)) {		if (tty->flags & (1 << TTY_IO_ERROR))		    return -EIO;	}		switch (cmd) {		case TCSBRK:	/* SVID version: non-zero arg --> no break */			retval = tty_check_change(tty);			if (retval)				return retval;			tty_wait_until_sent(tty, 0);			if (!arg)				send_break(info, HZ/4);	/* 1/4 second */			return 0;		case TCSBRKP:	/* support for POSIX tcsendbreak() */			retval = tty_check_change(tty);			if (retval)				return retval;			tty_wait_until_sent(tty, 0);			send_break(info, arg ? arg*(HZ/10) : HZ/4);			return 0;		case TIOCGSOFTCAR:			if (put_user(C_CLOCAL(tty) ? 1 : 0,				     (unsigned long *) arg))				return -EFAULT;			return 0;		case TIOCSSOFTCAR:			if (get_user(arg, (unsigned long *) arg))				return -EFAULT;			tty->termios->c_cflag =				((tty->termios->c_cflag & ~CLOCAL) |				 (arg ? CLOCAL : 0));			return 0;		case TIOCMGET:			return get_modem_info(info, (unsigned int *) arg);		case TIOCMBIS:		case TIOCMBIC:		case TIOCMSET:			return set_modem_info(info, cmd, (unsigned int *) arg);		case TIOCGSERIAL:			return get_serial_info(info,					       (struct serial_struct *) arg);		case TIOCSSERIAL:			return set_serial_info(info,					       (struct serial_struct *) arg);		case TIOCSERGETLSR: /* Get line status register */			return get_lsr_info(info, (unsigned int *) arg);		case TIOCSERGSTRUCT:			if (copy_to_user((struct sun_serial *) arg,				    info, sizeof(struct sun_serial)))				return -EFAULT;			return 0;					default:			return -ENOIOCTLCMD;		}	return 0;}static void zs_set_termios(struct tty_struct *tty, struct termios *old_termios){	struct sun_serial *info = (struct sun_serial *) tty->driver_data;	if (tty->termios->c_cflag == old_termios->c_cflag)		return;	change_speed(info);	if ((old_termios->c_cflag & CRTSCTS) &&	    !(tty->termios->c_cflag & CRTSCTS)) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区日本一区韩国一区| 国产精品麻豆99久久久久久| 久久网站最新地址| 椎名由奈av一区二区三区| 日本不卡免费在线视频| 不卡在线视频中文字幕| 日韩视频在线一区二区| 一区二区三区精品| a亚洲天堂av| 国产日韩欧美综合在线| 免费观看91视频大全| 在线观看av不卡| 亚洲色图欧洲色图| 不卡一卡二卡三乱码免费网站| 欧美电视剧免费全集观看| 亚洲一线二线三线视频| 99视频有精品| 国产精品妹子av| 风流少妇一区二区| 久久久久国产精品麻豆ai换脸 | 亚洲女子a中天字幕| 久久精品国产在热久久| 91精品国产综合久久福利| 亚洲一区在线看| 欧美在线小视频| 一区二区三区高清| 色噜噜狠狠色综合欧洲selulu| 综合在线观看色| 99re热视频精品| 国产精品国模大尺度视频| 国产成人夜色高潮福利影视| 久久久精品国产免大香伊| 老鸭窝一区二区久久精品| 欧美一区二区三区视频免费播放| 亚洲动漫第一页| 欧美日韩精品一区视频| 亚洲国产欧美另类丝袜| 在线观看亚洲精品| 亚洲国产乱码最新视频| 在线观看免费亚洲| 亚洲成人资源网| 777奇米四色成人影色区| 日韩高清一区在线| 日韩一区二区三区在线观看| 精品制服美女丁香| 欧美激情在线看| 97久久超碰国产精品| 亚洲综合在线五月| 欧美日韩国产首页| 男女性色大片免费观看一区二区 | 精品一区二区三区视频| 日韩欧美视频一区| 国产自产视频一区二区三区| 国产欧美一区二区在线观看| jlzzjlzz欧美大全| 亚洲精品大片www| 欧美乱熟臀69xxxxxx| 日本国产一区二区| 亚洲免费视频中文字幕| 91黄色免费观看| 日日欢夜夜爽一区| 久久久噜噜噜久久中文字幕色伊伊| 国产成人精品三级麻豆| 亚洲日穴在线视频| 欧美一级免费大片| 国产成人精品免费网站| 亚洲综合无码一区二区| 777亚洲妇女| 99视频有精品| 欧美aaaaaa午夜精品| 国产精品美女久久久久av爽李琼| 欧美午夜一区二区三区免费大片| 久久成人精品无人区| 国产精品对白交换视频 | 日韩经典一区二区| 国产精品你懂的在线| 91精品国产手机| 成人深夜福利app| 奇米四色…亚洲| 亚洲欧美乱综合| 精品福利二区三区| 欧美日韩精品系列| 99免费精品在线| 激情综合色播激情啊| 亚洲无线码一区二区三区| 国产日韩精品一区| 日韩欧美123| 欧美日韩午夜在线| 色综合久久中文综合久久97 | 日本高清不卡视频| 国产精品一二三| 日韩高清电影一区| 一区二区三区国产精华| 国产欧美日韩三级| 日韩欧美视频在线| 91精品国产欧美一区二区18| 91国产丝袜在线播放| 不卡一区二区三区四区| 国产福利一区二区三区| 久久精品国产精品亚洲精品 | 91精品国产综合久久精品app| av在线不卡电影| 大胆亚洲人体视频| 国产美女主播视频一区| 男女性色大片免费观看一区二区| 亚洲一区二区五区| 亚洲精品成人精品456| 国产精品久久久久桃色tv| 国产视频一区在线播放| 精品99一区二区三区| 精品国免费一区二区三区| 欧美一区二区三区免费观看视频| 欧美色倩网站大全免费| 91小视频在线观看| 99vv1com这只有精品| gogogo免费视频观看亚洲一| 成人免费va视频| av网站一区二区三区| 99精品国产视频| 91福利区一区二区三区| 欧美三片在线视频观看| 欧美日韩精品一区二区三区蜜桃| 欧美日韩美女一区二区| 欧美日韩一级片在线观看| 欧美日韩久久一区二区| 91 com成人网| 精品盗摄一区二区三区| 久久久久久久电影| 国产精品夫妻自拍| 亚洲影视在线观看| 天天综合网天天综合色| 精品一区二区三区免费毛片爱| 国产一区二区三区在线观看免费| 国产99久久久久| 99在线精品一区二区三区| 在线精品观看国产| 日韩精品一区二区三区中文不卡| 欧美一级精品大片| 国产欧美日韩综合精品一区二区| 中文字幕日韩欧美一区二区三区| 一区二区三区在线观看网站| 免费在线看成人av| 国产成人精品亚洲日本在线桃色| 色婷婷综合久久久中文一区二区| 制服丝袜一区二区三区| 精品欧美一区二区在线观看 | 欧美不卡视频一区| 国产精品久久久久久久久快鸭| 怡红院av一区二区三区| 蜜桃传媒麻豆第一区在线观看| 国产suv精品一区二区三区| 91免费版在线看| 精品福利视频一区二区三区| 综合久久久久久久| 美国三级日本三级久久99| 国产不卡在线播放| 欧美日韩不卡在线| 中文字幕不卡在线播放| 午夜精品一区二区三区免费视频| 国产精品一线二线三线精华| 欧美性感一区二区三区| 日韩欧美一级特黄在线播放| 亚洲日本va在线观看| 另类小说欧美激情| 欧美在线观看18| 国产欧美精品一区二区色综合| 亚洲成人av在线电影| 丁香五精品蜜臀久久久久99网站 | 麻豆一区二区99久久久久| 国产不卡视频一区二区三区| 欧美精品色综合| 亚洲欧美日韩国产中文在线| 国产精品中文字幕一区二区三区| 欧美私模裸体表演在线观看| 国产欧美精品在线观看| 久久精工是国产品牌吗| 欧美另类久久久品| 亚洲欧美aⅴ...| zzijzzij亚洲日本少妇熟睡| 久久午夜免费电影| 免费美女久久99| 欧美久久久久久久久中文字幕| 日韩一区在线看| 成人黄色av网站在线| 久久综合成人精品亚洲另类欧美| 亚洲成人午夜电影| 日本二三区不卡| 亚洲欧美日韩在线不卡| 不卡av在线免费观看| 中文文精品字幕一区二区| 国产精品资源站在线| 久久综合色婷婷| 精品在线免费观看| 日韩欧美亚洲国产另类| 日本欧美加勒比视频| 欧美肥妇bbw| 日韩高清在线观看| 欧美一区二区三区视频在线观看 | 欧美美女bb生活片| 视频一区在线视频|