Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177641276
D59512.1794924640.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1004 B
Referenced Files
None
Subscribers
None
D59512.1794924640.diff
View Options
diff --git a/sys/dev/puc/pucdata.c b/sys/dev/puc/pucdata.c
--- a/sys/dev/puc/pucdata.c
+++ b/sys/dev/puc/pucdata.c
@@ -67,6 +67,7 @@
static puc_config_f puc_config_systembase;
static puc_config_f puc_config_timedia;
static puc_config_f puc_config_titan;
+static puc_config_f puc_config_wch_ch38x;
const struct puc_cfg puc_pci_devices[] = {
{ 0x0009, 0x7168, 0xffff, 0,
@@ -1504,6 +1505,13 @@
.config_function = puc_config_syba
},
+ { 0x1c00, 0x3253, 0xffff, 0,
+ "WCH CH382 2S PCIe Dual Port Serial",
+ DEFAULT_RCLK,
+ PUC_PORT_2S, 0x10, 0, -1,
+ .config_function = puc_config_wch_ch38x
+ },
+
{ 0x1fd4, 0x1999, 0x1fd4, 0x0002,
"Sunix SER5xxxx 2-port serial",
DEFAULT_RCLK * 8,
@@ -2337,3 +2345,14 @@
}
return (ENXIO);
}
+
+static int
+puc_config_wch_ch38x(struct puc_softc *sc __unused, enum puc_cfg_cmd cmd,
+ int port, intptr_t *res)
+{
+ if (cmd == PUC_CFG_GET_OFS) {
+ *res = 0xc0 + (port * 8);
+ return (0);
+ }
+ return (ENXIO);
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 17, 2:10 PM (14 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38626666
Default Alt Text
D59512.1794924640.diff (1004 B)
Attached To
Mode
D59512: puc: add the WCH CH382 2S dual serial card
Attached
Detach File
Event Timeline