* [PATCH 2.6 SERIAL] Add support for word-length UART registers.
@ 2004-09-09 23:19 Deepak Saxena
2004-09-09 23:29 ` Deepak Saxena
0 siblings, 1 reply; 2+ messages in thread
From: Deepak Saxena @ 2004-09-09 23:19 UTC (permalink / raw)
To: rmk; +Cc: linux-kernel
UARTS on several Intel IXP2000 systems are connected in such
a way that they can only be addressed using full word accesses
instead of bytes. Following patch adds a UPIO_MEM32 io-type to
identify these UARTs.
Please apply,
~Deepak
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
===== drivers/serial/8250.c 1.57 vs edited =====
--- 1.57/drivers/serial/8250.c Mon Jul 5 03:33:38 2004
+++ edited/drivers/serial/8250.c Thu Sep 9 14:22:07 2004
@@ -187,6 +187,9 @@
case UPIO_MEM:
return readb(up->port.membase + offset);
+ case UPIO_MEM32:
+ return readl(up->port.membase + offset);
+
default:
return inb(up->port.iobase + offset);
}
@@ -205,6 +208,10 @@
case UPIO_MEM:
writeb(value, up->port.membase + offset);
+ break;
+
+ case UPIO_MEM32:
+ writel(value, up->port.membase + offset);
break;
default:
===== drivers/serial/serial_core.c 1.87 vs edited =====
--- 1.87/drivers/serial/serial_core.c Tue Jun 29 07:43:58 2004
+++ edited/drivers/serial/serial_core.c Thu Sep 9 15:02:33 2004
@@ -1978,6 +1978,7 @@
printk("I/O 0x%x offset 0x%x", port->iobase, port->hub6);
break;
case UPIO_MEM:
+ case UPIO_MEM32:
printk("MMIO 0x%lx", port->mapbase);
break;
}
===== include/linux/serial_core.h 1.42 vs edited =====
--- 1.42/include/linux/serial_core.h Thu Jul 29 06:12:47 2004
+++ edited/include/linux/serial_core.h Thu Sep 9 14:18:25 2004
@@ -176,6 +176,7 @@
#define UPIO_PORT (0)
#define UPIO_HUB6 (1)
#define UPIO_MEM (2)
+#define UPIO_MEM32 (3)
unsigned int read_status_mask; /* driver specific */
unsigned int ignore_status_mask; /* driver specific */
--
Deepak Saxena - dsaxena at plexity dot net - http://www.plexity.net/
"Unlike me, many of you have accepted the situation of your imprisonment
and will die here like rotten cabbages." - Number 6
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.6 SERIAL] Add support for word-length UART registers.
2004-09-09 23:19 [PATCH 2.6 SERIAL] Add support for word-length UART registers Deepak Saxena
@ 2004-09-09 23:29 ` Deepak Saxena
0 siblings, 0 replies; 2+ messages in thread
From: Deepak Saxena @ 2004-09-09 23:29 UTC (permalink / raw)
To: rmk; +Cc: linux-kernel
On Sep 09 2004, at 16:19, Deepak Saxena was caught saying:
>
>
> UARTS on several Intel IXP2000 systems are connected in such
> a way that they can only be addressed using full word accesses
s/word/long/ in linux-speak.
~Deepak
--
Deepak Saxena - dsaxena at plexity dot net - http://www.plexity.net/
"Unlike me, many of you have accepted the situation of your imprisonment
and will die here like rotten cabbages." - Number 6
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-09 23:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-09 23:19 [PATCH 2.6 SERIAL] Add support for word-length UART registers Deepak Saxena
2004-09-09 23:29 ` Deepak Saxena
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox