serial-atomwide.c

来自「linux-2.4.29操作系统的源码」· C语言 代码 · 共 40 行

C
40
字号
/* *  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 + =
减小字号Ctrl + -
显示快捷键?