⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serial-atomwide.c

📁 一个2.4.21版本的嵌入式linux内核
💻 C
字号:
/* *  linux/arch/arm/drivers/char/serial-atomwide.c * *  Copyright (C) 1996 Russell King. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * *  Changelog: *   02-05-1996	RMK	Created *   07-05-1996	RMK	Altered for greater number of cards. *   30-07-1996	RMK	Now uses generic card code. */#include <linux/ioport.h>#include <asm/ecard.h>#define MAX_PORTS       3struct serial_card_type {	unsigned int	num_ports;	unsigned int	baud_base;	unsigned int	type;	unsigned int	offset[MAX_PORTS];};static struct serial_card_type atomwide_type = {	.num_ports	= 3,	.baud_base	= 7372800 / 16,	.type		= ECARD_RES_IOCSLOW,	.offset 	= { 0x2800, 0x2400, 0x2000 },};static const struct ecard_id serial_cids[] = {	{ MANU_ATOMWIDE,	PROD_ATOMWIDE_3PSERIAL, &atomwide_type	},	{ 0xffff, 0xffff }};#include "serial-card.c"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -