CVS commit: src/sys/dev/ofw
Module Name:src Committed By: jmcneill Date: Sat Dec 12 22:22:51 UTC 2015 Modified Files: src/sys/dev/ofw: ofw_subr.c openfirm.h Log Message: Change the meaning of of_compatible return values >= 0. Previously, the function would return the index of the matching compatibility string in the "strings" parameter on success. None of the callers in tree use this, so instead change the function to return a reverse index of the matching compatibility string in the phandle's "compatible" property. The result is that the function will return a higher number for earlier "compatible" matches. Add a new of_match_compatible() that simply returns of_compatible() + 1, for use in driver match functions. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/dev/ofw/ofw_subr.c cvs rdiff -u -r1.30 -r1.31 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: jmcneill Date: Sun Dec 13 11:00:02 UTC 2015 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: OF properties are stored in big endian, but the host might not be. Swap the value of the "reg" property where appropriate. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: jmcneill Date: Sun Dec 13 11:51:13 UTC 2015 Modified Files: src/sys/dev/ofw: ofw_subr.c openfirm.h Log Message: add an addr_shift parameter to of_enter_i2c_devs To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/dev/ofw/ofw_subr.c cvs rdiff -u -r1.31 -r1.32 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: jmcneill Date: Wed Dec 16 19:33:39 UTC 2015 Modified Files: src/sys/dev/ofw: ofw_subr.c openfirm.h Log Message: add of_getprop_bool and of_getprop_uint32 helpers To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/sys/dev/ofw/ofw_subr.c cvs rdiff -u -r1.32 -r1.33 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: chs Date: Sun Aug 8 18:22:39 UTC 2010 Modified Files: src/sys/dev/ofw: ofnet.c Log Message: remove an unused variable. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/sys/dev/ofw/ofnet.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: jdc Date: Fri Nov 2 15:44:07 UTC 2012 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: Only create the "i2c-child-devices" property if we actually found any child devices (rather than unconditionally). Allows indirect config of i2c busses to work (e,g. for Tadpole SPARCle). To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: jdc Date: Sun Feb 3 17:41:02 UTC 2013 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: The i2c bus number (0 or 1) is encoded in bit 33 of the register for a node, but we encode it in bit 8 of i2c_addr_t. If bit 33 is set, unset it and set bit 9 instead (we later shift by one bit). To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: jdc Date: Fri Feb 8 15:17:00 UTC 2013 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: Set the size for EEPROM's that we know about ("i2c-at24c64" is set to 8192). Allows seeprom(4) to attach correctly, when combined with the direct configuration support there. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: christos Date: Thu May 16 18:43:09 UTC 2013 Modified Files: src/sys/dev/ofw: openfirm.h Log Message: sort by name, add OF_quiesce To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: jmcneill Date: Fri Jun 30 09:17:05 UTC 2017 Modified Files: src/sys/dev/ofw: ofw_subr.c openfirm.h Log Message: Add of_search_compatible, which searches an array of compat_data structures for a matching "compatible" entry matching the supplied OFW node. This allows us to associate data with compatible strings. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/dev/ofw/ofw_subr.c cvs rdiff -u -r1.34 -r1.35 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: jmcneill Date: Mon Jul 3 00:47:34 UTC 2017 Modified Files: src/sys/dev/ofw: ofw_subr.c openfirm.h Log Message: Add of_match_compat_data. This routine searches an array of compat_data structures for a matching "compatible" entry matching the supplied OFW node. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/sys/dev/ofw/ofw_subr.c cvs rdiff -u -r1.35 -r1.36 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: ryo Date: Thu Dec 31 15:10:46 UTC 2020 Modified Files: src/sys/dev/ofw: ofw_subr.c openfirm.h Log Message: add of_getprop_uint32_array() To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/dev/ofw/ofw_subr.c cvs rdiff -u -r1.39 -r1.40 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: jmcneill Date: Wed Jan 20 00:41:15 UTC 2021 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: update comment to match new reality To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Sun Jan 24 16:45:41 UTC 2021 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: Update a comment. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Sun Jan 24 17:44:16 UTC 2021 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: Implement of_match_compat_data() using device_compatible_match_strlist(). Implement of_search_compatible() using device_compatible_lookup_strlist(). To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Sun Jan 24 19:38:37 UTC 2021 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: Rewrite of_compatible() using strlist_match(). To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Sun Jan 24 20:09:03 UTC 2021 Modified Files: src/sys/dev/ofw: ofw_network_subr.c Log Message: Rewrite of_network_decode_media() to use strlist_next() and device_compatible_lookup(). To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/dev/ofw/ofw_network_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Sun Jan 24 21:48:38 UTC 2021 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: malloc(9) -> kmem(9) To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Tue Jan 26 14:09:11 UTC 2021 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: Minor comment changes. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Tue Jan 26 14:55:57 UTC 2021 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: Replace use of of_match_compatible(). To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Wed Jan 27 02:31:35 UTC 2021 Modified Files: src/sys/dev/ofw: ofw_network_subr.c Log Message: Use DEVICE_COMPAT_EOL. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/dev/ofw/ofw_network_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Wed Jan 27 04:55:42 UTC 2021 Modified Files: src/sys/dev/ofw: ofw_subr.c openfirm.h Log Message: G/C of_match_compatible(). To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/sys/dev/ofw/ofw_subr.c cvs rdiff -u -r1.43 -r1.44 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Thu Feb 4 20:19:09 UTC 2021 Modified Files: src/sys/dev/ofw: files.ofw ofw_subr.c Added Files: src/sys/dev/ofw: ofw_i2c_subr.c ofw_spi_subr.c Log Message: Split the i2c and spi stuff out into their own files. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/dev/ofw/files.ofw cvs rdiff -u -r0 -r1.1 src/sys/dev/ofw/ofw_i2c_subr.c \ src/sys/dev/ofw/ofw_spi_subr.c cvs rdiff -u -r1.55 -r1.56 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Fri Feb 5 17:17:59 UTC 2021 Modified Files: src/sys/dev/ofw: ofw_subr.c openfirm.h Log Message: OpenFirmware device handle implementation. To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/sys/dev/ofw/ofw_subr.c cvs rdiff -u -r1.44 -r1.45 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Sat Feb 6 16:07:14 UTC 2021 Modified Files: src/sys/dev/ofw: openfirm.h Log Message: Wrap some definite-only-in-kernel-environment prototypees in _KERNEL. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Tue Apr 27 20:31:02 UTC 2021 Modified Files: src/sys/dev/ofw: ofbus.c Log Message: If we are attaching the OFW root, print out the banner-name and model properties, if they exist. To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/sys/dev/ofw/ofbus.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Fri Apr 30 02:34:13 UTC 2021 Modified Files: src/sys/dev/ofw: ofbus.c Log Message: If we're enumerating the root bus, skip some well-known nodes that don't have any useful device child nodes: aliases options openprom chosen packages ...and also allow machdep additions to this list (XXX which are temporarily declared here for arm32 until there's a consistent machine/ofw_machdep.h header file). To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/dev/ofw/ofbus.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Sun Jan 26 21:43:52 UTC 2020 Modified Files: src/sys/dev/ofw: ofdisk.c Log Message: Fix __HAVE_OLD_DISKLABEL bits so they at least compile. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/sys/dev/ofw/ofdisk.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Wed Jan 29 06:18:17 UTC 2020 Modified Files: src/sys/dev/ofw: ofnet.c Log Message: Adopt . To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys/dev/ofw/ofnet.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: macallan Date: Fri Apr 3 06:02:51 UTC 2020 Modified Files: src/sys/dev/ofw: files.ofw Added Files: src/sys/dev/ofw: ofw_sysctl.c Log Message: make OpenFirmware info available via sysctl.ofw tested on macppc, shark and sparc64 To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/dev/ofw/files.ofw cvs rdiff -u -r0 -r1.1 src/sys/dev/ofw/ofw_sysctl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: macallan Date: Fri Apr 3 21:55:07 UTC 2020 Modified Files: src/sys/dev/ofw: ofw_sysctl.c Log Message: various fixes: - don't create hw.ofw if there is no /openprom node - just copy 'model' and 'version' properties if present instead of reporting 'model' as 'version'... To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/dev/ofw/ofw_sysctl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Fri Jun 12 14:52:11 UTC 2020 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: Update for proplib(3) API changes. To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: jdolecek Date: Thu Jun 25 11:31:45 UTC 2020 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: no need for alloca() in of_compatible(), malloc() is fine To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: rin Date: Thu Jun 25 22:50:56 UTC 2020 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: Fix fallout from migration from alloca() to malloc() in the previous. of_compatible() is used at least for macppc in very early boot stage where malloc() is still not available. Therefore, for small (<= OFW_MAX_STACK_BUF_SIZE = 256) buffer, use statically allocated one in the stack. For larger one, we continue to use malloc() but KASSERT(!cold) is added for sure. Fix boot failure for macppc reported by martin: http://mail-index.netbsd.org/port-macppc/2020/06/25/msg002756.html To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: martin Date: Fri Jun 26 10:14:32 UTC 2020 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: Remove !cold KASSERT - it does not compile on all kernels, and it is not the right thing to test for anyway. XXX should we panic instead? Are "compatible" strings this long happening in real devices? To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: jmcneill Date: Thu Jul 16 21:32:44 UTC 2020 Modified Files: src/sys/dev/ofw: ofw_subr.c openfirm.h Log Message: Add of_find_bycompat helper to search a tree for a node by compat string. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/sys/dev/ofw/ofw_subr.c cvs rdiff -u -r1.38 -r1.39 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: macallan Date: Fri Mar 10 00:26:43 UTC 2017 Modified Files: src/sys/dev/ofw: ofbus.c Log Message: attach display devices first so we see more kernel output on shark To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/dev/ofw/ofbus.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: jmcneill Date: Sun Apr 30 16:46:09 UTC 2017 Modified Files: src/sys/dev/ofw: ofw_subr.c openfirm.h Log Message: Rename of_getprop_bool to of_hasprop and make of_getprop_bool an alias. To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/sys/dev/ofw/ofw_subr.c cvs rdiff -u -r1.33 -r1.34 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: thorpej Date: Tue Jun 26 06:24:52 UTC 2018 Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: In of_enter_i2c_devs(), we no longer need to set a "size" property for a couple of models of Atmel EEPROMs because the driver can figure this out on its own now (based on the same "compatible" criteria that we're using). To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/dev/ofw/ofw_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/ofw
Module Name:src Committed By: jmcneill Date: Thu Aug 23 13:24:44 UTC 2018 Modified Files: src/sys/dev/ofw: ofw_subr.c openfirm.h Log Message: Add of_getprop_uint64 To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/dev/ofw/ofw_subr.c cvs rdiff -u -r1.36 -r1.37 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.