Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102728741
D43362.id132487.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
937 B
Referenced Files
None
Subscribers
None
D43362.id132487.diff
View Options
diff --git a/sys/dev/uart/uart_subr.c b/sys/dev/uart/uart_subr.c
--- a/sys/dev/uart/uart_subr.c
+++ b/sys/dev/uart/uart_subr.c
@@ -47,6 +47,7 @@
#define UART_TAG_SB 8
#define UART_TAG_XO 9
#define UART_TAG_BD 10
+#define UART_TAG_RW 11
static bus_addr_t
uart_parse_addr(const char **p)
@@ -148,6 +149,10 @@
tag = UART_TAG_RS;
goto out;
}
+ if ((*p)[0] == 'r' && (*p)[1] == 'w') {
+ tag = UART_TAG_RW;
+ goto out;
+ }
if ((*p)[0] == 's' && (*p)[1] == 'b') {
tag = UART_TAG_SB;
goto out;
@@ -225,6 +230,7 @@
/* Set defaults. */
di->bas.chan = 0;
di->bas.regshft = 0;
+ di->bas.regiowidth = 1;
di->bas.rclk = 0;
di->baudrate = 0;
di->databits = 8;
@@ -264,6 +270,9 @@
case UART_TAG_RS:
di->bas.regshft = uart_parse_long(&spec);
break;
+ case UART_TAG_RW:
+ di->bas.regiowidth = uart_parse_long(&spec);
+ break;
case UART_TAG_SB:
di->stopbits = uart_parse_long(&spec);
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 11:10 AM (20 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14675163
Default Alt Text
D43362.id132487.diff (937 B)
Attached To
Mode
D43362: dev/uart: Support setting the register io width
Attached
Detach File
Event Timeline
Log In to Comment