Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  *  Copyright (C) 2005 Russell King.
0004  *  Data taken from include/asm-i386/serial.h
0005  */
0006 #include <linux/module.h>
0007 #include <linux/init.h>
0008 #include <linux/serial_8250.h>
0009 
0010 #include "8250.h"
0011 
0012 static struct plat_serial8250_port boca_data[] = {
0013     SERIAL8250_PORT(0x100, 12),
0014     SERIAL8250_PORT(0x108, 12),
0015     SERIAL8250_PORT(0x110, 12),
0016     SERIAL8250_PORT(0x118, 12),
0017     SERIAL8250_PORT(0x120, 12),
0018     SERIAL8250_PORT(0x128, 12),
0019     SERIAL8250_PORT(0x130, 12),
0020     SERIAL8250_PORT(0x138, 12),
0021     SERIAL8250_PORT(0x140, 12),
0022     SERIAL8250_PORT(0x148, 12),
0023     SERIAL8250_PORT(0x150, 12),
0024     SERIAL8250_PORT(0x158, 12),
0025     SERIAL8250_PORT(0x160, 12),
0026     SERIAL8250_PORT(0x168, 12),
0027     SERIAL8250_PORT(0x170, 12),
0028     SERIAL8250_PORT(0x178, 12),
0029     { },
0030 };
0031 
0032 static struct platform_device boca_device = {
0033     .name           = "serial8250",
0034     .id         = PLAT8250_DEV_BOCA,
0035     .dev            = {
0036         .platform_data  = boca_data,
0037     },
0038 };
0039 
0040 static int __init boca_init(void)
0041 {
0042     return platform_device_register(&boca_device);
0043 }
0044 
0045 module_init(boca_init);
0046 
0047 MODULE_AUTHOR("Russell King");
0048 MODULE_DESCRIPTION("8250 serial probe module for Boca cards");
0049 MODULE_LICENSE("GPL");