kern/137436: [patch] Fix puc driver to support newer Timedia serial card (4027)

Bob Eager rde at tavi.co.uk
Tue Aug 4 21:30:08 UTC 2009


>Number:         137436
>Category:       kern
>Synopsis:       [patch] Fix puc driver to support newer Timedia serial card (4027)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 04 21:30:07 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Bob Eager
>Release:        7.2-STABLE
>Organization:
>Environment:
FreeBSD wolf.tavi.co.uk 7.2-STABLE FreeBSD 7.2-STABLE #0: Tue Aug  4 10:48:22 BST 2009     root at wolf.tavi.co.uk:/usr/obj/usr/src/sys/WOLF  i386

>Description:
The puc driver doesn't support one of the single port Timedia cards, the 4026. Actually, by chance it used to on 6.x, but the table changes in 7.x removed the 'chance'!

Attached is a short patch which adds the necessary table information. This has been tested on my system with one of these cards.

It's a common card (the two port version is already supported) so it's a useful fix.

>How-To-Repeat:
Not applicable.

>Fix:
Patch attached.

Patch attached with submission follows:

--- original/pucdata.c	2009-03-19 15:35:33.000000000 +0000
+++ pucdata.c	2009-08-04 21:17:11.000000000 +0100
@@ -1096,6 +1096,9 @@
 puc_config_timedia(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port,
     intptr_t *res)
 {
+	static uint16_t sngl[] = {
+	    0x4027, 0
+	};
 	static uint16_t dual[] = {
 	    0x0002, 0x4036, 0x4037, 0x4038, 0x4078, 0x4079, 0x4085,
 	    0x4088, 0x4089, 0x5037, 0x5078, 0x5079, 0x5085, 0x6079, 
@@ -1117,6 +1120,7 @@
 		int ports;
 		uint16_t *ids;
 	} subdevs[] = {
+	    { 1, sngl },
 	    { 2, dual },
 	    { 4, quad },
 	    { 8, octa },


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list