CVS commit: src/sys/dev/ofw

2021-04-29 Thread Jason R Thorpe
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

CVS commit: src/sys/dev/ofw

2021-04-27 Thread Jason R Thorpe
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

CVS commit: src/sys/dev/ofw

2021-02-06 Thread Jason R Thorpe
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/d

CVS commit: src/sys/dev/ofw

2021-02-05 Thread Jason R Thorpe
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.

CVS commit: src/sys/dev/ofw

2021-02-04 Thread Jason R Thorpe
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 genera

CVS commit: src/sys/dev/ofw

2021-01-26 Thread Jason R Thorpe
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 -

CVS commit: src/sys/dev/ofw

2021-01-26 Thread Jason R Thorpe
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 t

CVS commit: src/sys/dev/ofw

2021-01-26 Thread Jason R Thorpe
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 t

CVS commit: src/sys/dev/ofw

2021-01-26 Thread Jason R Thorpe
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 n

CVS commit: src/sys/dev/ofw

2021-01-24 Thread Jason R Thorpe
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

CVS commit: src/sys/dev/ofw

2021-01-24 Thread Jason R Thorpe
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

CVS commit: src/sys/dev/ofw

2021-01-24 Thread Jason R Thorpe
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 Plea

CVS commit: src/sys/dev/ofw

2021-01-24 Thread Jason R Thorpe
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_strli

CVS commit: src/sys/dev/ofw

2021-01-24 Thread Jason R Thorpe
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 pu

CVS commit: src/sys/dev/ofw

2021-01-19 Thread Jared D. McNeill
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 th

CVS commit: src/sys/dev/ofw

2020-12-31 Thread Ryo Shimizu
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 -r

CVS commit: src/sys/dev/ofw

2020-07-16 Thread Jared D. McNeill
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

CVS commit: src/sys/dev/ofw

2020-06-26 Thread Martin Husemann
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 "c

CVS commit: src/sys/dev/ofw

2020-06-25 Thread Rin Okuyama
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 m

CVS commit: src/sys/dev/ofw

2020-06-25 Thread Jaromir Dolecek
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_

CVS commit: src/sys/dev/ofw

2020-06-12 Thread Jason R Thorpe
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

CVS commit: src/sys/dev/ofw

2020-04-03 Thread Michael Lorenz
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 report

CVS commit: src/sys/dev/ofw

2020-04-02 Thread Michael Lorenz
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 gen

CVS commit: src/sys/dev/ofw

2020-01-28 Thread Jason R Thorpe
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; the

CVS commit: src/sys/dev/ofw

2020-01-26 Thread Jason R Thorpe
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

CVS commit: src/sys/dev/ofw

2018-08-23 Thread Jared D. McNeill
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.3

CVS commit: src/sys/dev/ofw

2018-06-25 Thread Jason R Thorpe
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 o

CVS commit: src/sys/dev/ofw

2017-07-02 Thread Jared D. McNeill
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

CVS commit: src/sys/dev/ofw

2017-06-30 Thread Jared D. McNeill
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

CVS commit: src/sys/dev/ofw

2017-04-30 Thread Jared D. McNeill
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 -r

CVS commit: src/sys/dev/ofw

2017-03-09 Thread Michael Lorenz
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/of

CVS commit: src/sys/dev/ofw

2015-12-16 Thread Jared D. McNeill
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/o

CVS commit: src/sys/dev/ofw

2015-12-13 Thread Jared D. McNeill
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/of

CVS commit: src/sys/dev/ofw

2015-12-13 Thread Jared D. McNeill
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 dif

CVS commit: src/sys/dev/ofw

2015-12-12 Thread Jared D. McNeill
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 compatibili

CVS commit: src/sys/dev/ofw

2013-05-16 Thread Christos Zoulas
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 diff

CVS commit: src/sys/dev/ofw

2013-02-08 Thread Julian Coleman
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 c

CVS commit: src/sys/dev/ofw

2013-02-03 Thread Julian Coleman
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 a

CVS commit: src/sys/dev/ofw

2012-11-02 Thread Julian Coleman
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 bu

CVS commit: src/sys/dev/ofw

2010-08-08 Thread Chuck Silvers
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 pub