-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge master.kernel.org:/home/rmk/linux-2.6-serial
- Loading branch information
Showing
10 changed files
with
357 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* linux/drivers/serial/8250_accent.c | ||
* | ||
* Copyright (C) 2005 Russell King. | ||
* Data taken from include/asm-i386/serial.h | ||
* | ||
* 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. | ||
*/ | ||
#include <linux/module.h> | ||
#include <linux/init.h> | ||
#include <linux/serial_8250.h> | ||
|
||
#define PORT(_base,_irq) \ | ||
{ \ | ||
.iobase = _base, \ | ||
.irq = _irq, \ | ||
.uartclk = 1843200, \ | ||
.iotype = UPIO_PORT, \ | ||
.flags = UPF_BOOT_AUTOCONF, \ | ||
} | ||
|
||
static struct plat_serial8250_port accent_data[] = { | ||
PORT(0x330, 4), | ||
PORT(0x338, 4), | ||
{ }, | ||
}; | ||
|
||
static struct platform_device accent_device = { | ||
.name = "serial8250", | ||
.id = 2, | ||
.dev = { | ||
.platform_data = accent_data, | ||
}, | ||
}; | ||
|
||
static int __init accent_init(void) | ||
{ | ||
return platform_device_register(&accent_device); | ||
} | ||
|
||
module_init(accent_init); | ||
|
||
MODULE_AUTHOR("Russell King"); | ||
MODULE_DESCRIPTION("8250 serial probe module for Accent Async cards"); | ||
MODULE_LICENSE("GPL"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
* linux/drivers/serial/8250_boca.c | ||
* | ||
* Copyright (C) 2005 Russell King. | ||
* Data taken from include/asm-i386/serial.h | ||
* | ||
* 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. | ||
*/ | ||
#include <linux/module.h> | ||
#include <linux/init.h> | ||
#include <linux/serial_8250.h> | ||
|
||
#define PORT(_base,_irq) \ | ||
{ \ | ||
.iobase = _base, \ | ||
.irq = _irq, \ | ||
.uartclk = 1843200, \ | ||
.iotype = UPIO_PORT, \ | ||
.flags = UPF_BOOT_AUTOCONF, \ | ||
} | ||
|
||
static struct plat_serial8250_port boca_data[] = { | ||
PORT(0x100, 12), | ||
PORT(0x108, 12), | ||
PORT(0x110, 12), | ||
PORT(0x118, 12), | ||
PORT(0x120, 12), | ||
PORT(0x128, 12), | ||
PORT(0x130, 12), | ||
PORT(0x138, 12), | ||
PORT(0x140, 12), | ||
PORT(0x148, 12), | ||
PORT(0x150, 12), | ||
PORT(0x158, 12), | ||
PORT(0x160, 12), | ||
PORT(0x168, 12), | ||
PORT(0x170, 12), | ||
PORT(0x178, 12), | ||
{ }, | ||
}; | ||
|
||
static struct platform_device boca_device = { | ||
.name = "serial8250", | ||
.id = 3, | ||
.dev = { | ||
.platform_data = boca_data, | ||
}, | ||
}; | ||
|
||
static int __init boca_init(void) | ||
{ | ||
return platform_device_register(&boca_device); | ||
} | ||
|
||
module_init(boca_init); | ||
|
||
MODULE_AUTHOR("Russell King"); | ||
MODULE_DESCRIPTION("8250 serial probe module for Boca cards"); | ||
MODULE_LICENSE("GPL"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* linux/drivers/serial/8250_fourport.c | ||
* | ||
* Copyright (C) 2005 Russell King. | ||
* Data taken from include/asm-i386/serial.h | ||
* | ||
* 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. | ||
*/ | ||
#include <linux/module.h> | ||
#include <linux/init.h> | ||
#include <linux/serial_8250.h> | ||
|
||
#define PORT(_base,_irq) \ | ||
{ \ | ||
.iobase = _base, \ | ||
.irq = _irq, \ | ||
.uartclk = 1843200, \ | ||
.iotype = UPIO_PORT, \ | ||
.flags = UPF_BOOT_AUTOCONF | UPF_FOURPORT, \ | ||
} | ||
|
||
static struct plat_serial8250_port fourport_data[] = { | ||
PORT(0x1a0, 9), | ||
PORT(0x1a8, 9), | ||
PORT(0x1b0, 9), | ||
PORT(0x1b8, 9), | ||
PORT(0x2a0, 5), | ||
PORT(0x2a8, 5), | ||
PORT(0x2b0, 5), | ||
PORT(0x2b8, 5), | ||
{ }, | ||
}; | ||
|
||
static struct platform_device fourport_device = { | ||
.name = "serial8250", | ||
.id = 1, | ||
.dev = { | ||
.platform_data = fourport_data, | ||
}, | ||
}; | ||
|
||
static int __init fourport_init(void) | ||
{ | ||
return platform_device_register(&fourport_device); | ||
} | ||
|
||
module_init(fourport_init); | ||
|
||
MODULE_AUTHOR("Russell King"); | ||
MODULE_DESCRIPTION("8250 serial probe module for AST Fourport cards"); | ||
MODULE_LICENSE("GPL"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* linux/drivers/serial/8250_hub6.c | ||
* | ||
* Copyright (C) 2005 Russell King. | ||
* Data taken from include/asm-i386/serial.h | ||
* | ||
* 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. | ||
*/ | ||
#include <linux/module.h> | ||
#include <linux/init.h> | ||
#include <linux/serial_8250.h> | ||
|
||
#define HUB6(card,port) \ | ||
{ \ | ||
.iobase = 0x302, \ | ||
.irq = 3, \ | ||
.uartclk = 1843200, \ | ||
.iotype = UPIO_HUB6, \ | ||
.flags = UPF_BOOT_AUTOCONF, \ | ||
.hub6 = (card) << 6 | (port) << 3 | 1, \ | ||
} | ||
|
||
static struct plat_serial8250_port hub6_data[] = { | ||
HUB6(0,0), | ||
HUB6(0,1), | ||
HUB6(0,2), | ||
HUB6(0,3), | ||
HUB6(0,4), | ||
HUB6(0,5), | ||
HUB6(1,0), | ||
HUB6(1,1), | ||
HUB6(1,2), | ||
HUB6(1,3), | ||
HUB6(1,4), | ||
HUB6(1,5), | ||
{ }, | ||
}; | ||
|
||
static struct platform_device hub6_device = { | ||
.name = "serial8250", | ||
.id = 4, | ||
.dev = { | ||
.platform_data = hub6_data, | ||
}, | ||
}; | ||
|
||
static int __init hub6_init(void) | ||
{ | ||
return platform_device_register(&hub6_device); | ||
} | ||
|
||
module_init(hub6_init); | ||
|
||
MODULE_AUTHOR("Russell King"); | ||
MODULE_DESCRIPTION("8250 serial probe module for Hub6 cards"); | ||
MODULE_LICENSE("GPL"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* linux/drivers/serial/8250_mca.c | ||
* | ||
* Copyright (C) 2005 Russell King. | ||
* Data taken from include/asm-i386/serial.h | ||
* | ||
* 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. | ||
*/ | ||
#include <linux/config.h> | ||
#include <linux/module.h> | ||
#include <linux/init.h> | ||
#include <linux/mca.h> | ||
#include <linux/serial_8250.h> | ||
|
||
/* | ||
* FIXME: Should we be doing AUTO_IRQ here? | ||
*/ | ||
#ifdef CONFIG_SERIAL_8250_DETECT_IRQ | ||
#define MCA_FLAGS UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_AUTO_IRQ | ||
#else | ||
#define MCA_FLAGS UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | ||
#endif | ||
|
||
#define PORT(_base,_irq) \ | ||
{ \ | ||
.iobase = _base, \ | ||
.irq = _irq, \ | ||
.uartclk = 1843200, \ | ||
.iotype = UPIO_PORT, \ | ||
.flags = MCA_FLAGS, \ | ||
} | ||
|
||
static struct plat_serial8250_port mca_data[] = { | ||
PORT(0x3220, 3), | ||
PORT(0x3228, 3), | ||
PORT(0x4220, 3), | ||
PORT(0x4228, 3), | ||
PORT(0x5220, 3), | ||
PORT(0x5228, 3), | ||
{ }, | ||
}; | ||
|
||
static struct platform_device mca_device = { | ||
.name = "serial8250", | ||
.id = 5, | ||
.dev = { | ||
.platform_data = mca_data, | ||
}, | ||
}; | ||
|
||
static int __init mca_init(void) | ||
{ | ||
if (!MCA_bus) | ||
return -ENODEV; | ||
return platform_device_register(&mca_device); | ||
} | ||
|
||
module_init(mca_init); | ||
|
||
MODULE_AUTHOR("Russell King"); | ||
MODULE_DESCRIPTION("8250 serial probe module for MCA ports"); | ||
MODULE_LICENSE("GPL"); |
Oops, something went wrong.