summaryrefslogtreecommitdiff
path: root/include/linux/serial_core.h
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2015-03-08 17:30:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-27 00:50:15 +0300
commitee97d0e3f06498487671c23cad4230bf9aa5fd88 (patch)
tree8365fe448e50f06c032c19260d9b52cce171dfab /include/linux/serial_core.h
parent5ef86b74209db33c133b5f18738dd8f3189b63a1 (diff)
downloadlinux-ee97d0e3f06498487671c23cad4230bf9aa5fd88.tar.xz
serial: 8250: allow specifying iomem size in addition to address
This adds a mapsize field to struct uart_port to be used in conjunction with mapbase. If set, it overrides whatever value serial8250_port_size() would otherwise report. Signed-off-by: Mans Rullgard <mans@mansr.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/serial_core.h')
-rw-r--r--include/linux/serial_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index 8aeec4913a9c..34de16840152 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -237,6 +237,7 @@ struct uart_port {
unsigned int line; /* port index */
unsigned int minor;
resource_size_t mapbase; /* for ioremap */
+ resource_size_t mapsize;
struct device *dev; /* parent device */
unsigned char hub6; /* this should be in the 8250 driver */
unsigned char suspended;