Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 2002 16:22:41 -0800 (PST)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 22730 for review
Message-ID:  <200212250022.gBP0MfaV047366@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=22730

Change 22730 by marcel@marcel_nfs on 2002/12/24 16:22:09

	De-weird-ify the siodescribe prototype. Only pass the softc.
	We have the device in there.

Affected files ...

.. //depot/projects/ia64/sys/dev/sio/sio.c#28 edit

Differences ...

==== //depot/projects/ia64/sys/dev/sio/sio.c#28 (text+ko) ====

@@ -304,7 +304,7 @@
 }
 
 static void
-siodescribe(device_t dev, struct com_s *sc)
+siodescribe(struct com_s *sc)
 {
 	int has_spr;
 	u_char spr;
@@ -321,25 +321,26 @@
 			 * XXX Should we try to see if we have a broken
 			 * 16550 or a fixed 16550A?
 			 */
-			device_set_desc(dev, "16550 or compatible");
+			device_set_desc(com->dev, "16550 or compatible");
 			break;
 		case 32:
 			/*
 			 * XXX Should we check that features like automatic
 			 * flow control exist?
 			 */
-			device_set_desc(dev, "16650 or compatible");
+			device_set_desc(com->dev, "16650 or compatible");
 			break;
 		case 64:
 			/*
 			 * XXX Should we check that features like automatic
 			 * flow control exist?
 			 */
-			device_set_desc(dev, "16750 or compatible");
+			device_set_desc(com->dev, "16750 or compatible");
 			break;
 		default:
 			/* XXX Probably not right. */
-			device_set_desc(dev, "16550 with non-standard FIFO");
+			device_set_desc(com->dev,
+			    "16550 with non-standard FIFO");
 			break;
 		}
 	} else {
@@ -355,9 +356,9 @@
 		sio_setreg(sc, com_scr, spr);
 		/* XXX barrier */
 		if (!has_spr)
-			device_set_desc(dev, "8250 or compatible");
+			device_set_desc(com->dev, "8250 or compatible");
 		else
-			device_set_desc(dev, "16450 or compatible");
+			device_set_desc(com->dev, "16450 or compatible");
 	}
 }
 
@@ -518,7 +519,7 @@
 	sioinitfifo(com);
 
 	if (device_get_desc(dev) == NULL)
-		siodescribe(dev, com);
+		siodescribe(com);
 
 	flags = device_get_flags(dev);
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212250022.gBP0MfaV047366>