David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 1 | /* Standard UART definitions |
| 2 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public Licence |
| 8 | * as published by the Free Software Foundation; either version |
| 9 | * 2 of the Licence, or (at your option) any later version. |
| 10 | */ |
| 11 | |
Akira Takeuchi | 368dd5a | 2010-10-27 17:28:55 +0100 | [diff] [blame] | 12 | #ifndef _ASM_SERIAL_H |
| 13 | #define _ASM_SERIAL_H |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 14 | |
| 15 | /* Standard COM flags (except for COM4, because of the 8514 problem) */ |
Valentin Rothberg | 507224a | 2015-04-12 17:37:24 +0200 | [diff] [blame] | 16 | #ifdef CONFIG_SERIAL_8250_DETECT_IRQ |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 17 | #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ) |
| 18 | #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_AUTO_IRQ) |
| 19 | #else |
| 20 | #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST) |
| 21 | #define STD_COM4_FLAGS ASYNC_BOOT_AUTOCONF |
| 22 | #endif |
| 23 | |
Valentin Rothberg | 507224a | 2015-04-12 17:37:24 +0200 | [diff] [blame] | 24 | #ifdef CONFIG_SERIAL_8250_MANY_PORTS |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 25 | #define FOURPORT_FLAGS ASYNC_FOURPORT |
| 26 | #define ACCENT_FLAGS 0 |
| 27 | #define BOCA_FLAGS 0 |
| 28 | #define HUB6_FLAGS 0 |
| 29 | #define RS_TABLE_SIZE 64 |
| 30 | #else |
| 31 | #define RS_TABLE_SIZE |
| 32 | #endif |
| 33 | |
David Howells | 2f2a213 | 2009-04-10 14:33:48 +0100 | [diff] [blame] | 34 | #include <unit/serial.h> |
Akira Takeuchi | 368dd5a | 2010-10-27 17:28:55 +0100 | [diff] [blame] | 35 | |
| 36 | #endif /* _ASM_SERIAL_H */ |