serial-dualsp.c

来自「一个2.4.21版本的嵌入式linux内核」· C语言 代码 · 共 38 行

C
38
字号
/* *  linux/drivers/acorn/char/serial-dualsp.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: *   30-07-1996	RMK	Created */#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 serport_type = {	.num_ports	= 2,	.baud_base	= 3686400 / 16,	.type		= ECARD_RES_IOCSLOW,	.offset 	= { 0x2000, 0x2020 },};static const struct ecard_id serial_cids[] = {	{ MANU_SERPORT, 	PROD_SERPORT_DSPORT,	&serport_type	},	{ 0xffff, 0xffff }};#include "serial-card.c"

⌨️ 快捷键说明

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