Module Name: src Committed By: joerg Date: Sun Nov 8 21:05:01 UTC 2015
Modified Files: src/sys/dev/usb: ucom.c Log Message: Add the port number to the device properties to make it easier to relate a specific ucom instance with the physical port of multi-port devices like the FTDI 4232. To generate a diff of this commit: cvs rdiff -u -r1.109 -r1.110 src/sys/dev/usb/ucom.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/ucom.c diff -u src/sys/dev/usb/ucom.c:1.109 src/sys/dev/usb/ucom.c:1.110 --- src/sys/dev/usb/ucom.c:1.109 Mon Apr 13 16:33:25 2015 +++ src/sys/dev/usb/ucom.c Sun Nov 8 21:05:01 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: ucom.c,v 1.109 2015/04/13 16:33:25 riastradh Exp $ */ +/* $NetBSD: ucom.c,v 1.110 2015/11/08 21:05:01 joerg Exp $ */ /* * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.109 2015/04/13 16:33:25 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.110 2015/11/08 21:05:01 joerg Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -219,6 +219,8 @@ ucom_attach(device_t parent, device_t se aprint_normal(": %s", uca->info); aprint_normal("\n"); + prop_dictionary_set_int32(device_properties(self), "port", uca->portno); + sc->sc_dev = self; sc->sc_udev = uca->device; sc->sc_iface = uca->iface;