The NetBSD Project

CVS log for src/sys/dev/ofw/ofw_subr.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / ofw

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.60 / (download) - annotate - [select for diffs], Sat Jan 22 11:49:18 2022 UTC (2 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.59: +14 -8 lines
Diff to previous 1.59 (colored)

Change the devhandle_from_*() functions to also take a "super handle",
from which the newly created handle will inherit it's implementation.
The root implementation for a new handle type is used if an invalid
"super handle" is passed.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Sep 15 17:33:08 2021 UTC (2 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.58: +6 -3 lines
Diff to previous 1.58 (colored)

Adjust the device_call() calling convention so as to provide type checking
of the arguments passed to the call, using auto-generated argument
structures and binding macros.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:57 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.57: +2 -10 lines
Diff to previous 1.57 (colored)

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.57 / (download) - annotate - [select for diffs], Fri Feb 5 17:17:59 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.56: +129 -2 lines
Diff to previous 1.56 (colored)

OpenFirmware device handle implementation.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Feb 4 20:19:09 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.55: +2 -126 lines
Diff to previous 1.55 (colored)

Split the i2c and spi stuff out into their own files.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Jan 27 04:55:42 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.54: +2 -14 lines
Diff to previous 1.54 (colored)

G/C of_match_compatible().

Revision 1.54 / (download) - annotate - [select for diffs], Wed Jan 27 03:10:21 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.53: +7 -7 lines
Diff to previous 1.53 (colored)

Rename of_match_compat_data() to of_compatible_match().  Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Jan 26 14:55:57 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

Replace use of of_match_compatible().

Revision 1.52 / (download) - annotate - [select for diffs], Tue Jan 26 14:49:41 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.51: +14 -31 lines
Diff to previous 1.51 (colored)

There is not much point in of_compatible() returning -1 for "no match"
and >= 0 for "match".  Just make it return 0 for "no match" and >0 for
"match" so it can be treated like a boolean expression.

As such of_match_compatible() (a wrapper around of_compatible()) is now
obsolete, and will be removed once all call sites are converted to an
appropriate replacement.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Jan 26 14:09:11 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.50: +9 -6 lines
Diff to previous 1.50 (colored)

Minor comment changes.

Revision 1.50 / (download) - annotate - [select for diffs], Mon Jan 25 19:59:49 2021 UTC (3 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.49: +4 -4 lines
Diff to previous 1.49 (colored)

s/boolean_t/bool/.  boolean_t is obsolete (from Mach), and this
also fixes a new build issue in libkvm on sparc*.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Jan 25 12:15:33 2021 UTC (3 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.48: +4 -2 lines
Diff to previous 1.48 (colored)

Add "cookietype" to i2c attach args, so the consumer knows if ia_cookie
is either an OF phandle or an ACPI_HANDLE. Add NXP0002 compatible mapping
while here.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Jan 24 21:48:38 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.47: +4 -5 lines
Diff to previous 1.47 (colored)

malloc(9) -> kmem(9)

Revision 1.47 / (download) - annotate - [select for diffs], Sun Jan 24 19:38:37 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.46: +21 -50 lines
Diff to previous 1.46 (colored)

Rewrite of_compatible() using strlist_match().

Revision 1.46 / (download) - annotate - [select for diffs], Sun Jan 24 17:44:16 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +41 -14 lines
Diff to previous 1.45 (colored)

Implement of_match_compat_data() using device_compatible_match_strlist().
Implement of_search_compatible() using device_compatible_lookup_strlist().

Revision 1.45 / (download) - annotate - [select for diffs], Sun Jan 24 16:45:41 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

Update a comment.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Jan 24 16:23:05 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.43: +4 -4 lines
Diff to previous 1.43 (colored)

Change of_search_compable() to return NULL on no-match, which is much more
sensible than the previous behavior.  As such, back out rev 1.7 of
sunxi_sramc.c.  All other of_search_compable() call sites have been audited.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jan 20 00:41:15 2021 UTC (3 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.42: +4 -3 lines
Diff to previous 1.42 (colored)

update comment to match new reality

Revision 1.42 / (download) - annotate - [select for diffs], Mon Jan 18 02:35:49 2021 UTC (3 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +8 -5 lines
Diff to previous 1.41 (colored)

Remove "struct of_compat_data" and replace its usage with
"struct device_compatible_entry"; they are ABI-compatible.

Fix several "loses const qualifier" bugs encountered during
this conversion.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Dec 31 15:10:46 2020 UTC (3 years, 3 months ago) by ryo
Branch: MAIN
Changes since 1.40: +19 -2 lines
Diff to previous 1.40 (colored)

add of_getprop_uint32_array()

Revision 1.40 / (download) - annotate - [select for diffs], Thu Jul 16 21:32:44 2020 UTC (3 years, 9 months ago) by jmcneill
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.39: +22 -2 lines
Diff to previous 1.39 (colored)

Add of_find_bycompat helper to search a tree for a node by compat string.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jun 26 10:14:32 2020 UTC (3 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.38: +2 -3 lines
Diff to previous 1.38 (colored)

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?

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jun 25 22:50:56 2020 UTC (3 years, 9 months ago) by rin
Branch: MAIN
Changes since 1.37: +12 -4 lines
Diff to previous 1.37 (colored)

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

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jun 25 11:31:45 2020 UTC (3 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.36: +5 -12 lines
Diff to previous 1.36 (colored)

no need for alloca() in of_compatible(), malloc() is fine

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jun 12 14:52:11 2020 UTC (3 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.35: +3 -8 lines
Diff to previous 1.35 (colored)

Update for proplib(3) API changes.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jun 11 02:39:30 2020 UTC (3 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

Update for proplib(3) API changes.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Aug 6 18:17:52 2019 UTC (4 years, 8 months ago) by tnn
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.33: +60 -2 lines
Diff to previous 1.33 (colored)

ofw: add of_enter_spi_devs helper method

For translating OFW child nodes of SPI controller into "spi-child-devices"
property. In similar spirit to the existing of_enter_i2c_devs method.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Sep 26 20:03:36 2018 UTC (5 years, 6 months ago) by jakllsch
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.32: +2 -4 lines
Diff to previous 1.32 (colored)

Set "i2c-indirect-config" to false in the right place so that iic(4)
better behaves itself.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Aug 23 13:24:44 2018 UTC (5 years, 7 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-0906, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Changes since 1.31: +20 -2 lines
Diff to previous 1.31 (colored)

Add of_getprop_uint64

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jun 26 06:24:52 2018 UTC (5 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728
Branch point for: phil-wifi
Changes since 1.30: +3 -11 lines
Diff to previous 1.30 (colored)

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).

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jul 3 00:47:34 2017 UTC (6 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Branch point for: pgoyette-compat
Changes since 1.29: +39 -2 lines
Diff to previous 1.29 (colored)

Add of_match_compat_data.

This routine searches an array of compat_data structures for a
matching "compatible" entry matching the supplied OFW node.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jun 30 09:17:05 2017 UTC (6 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.28: +34 -2 lines
Diff to previous 1.28 (colored)

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.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Apr 30 16:46:09 2017 UTC (6 years, 11 months ago) by jmcneill
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, netbsd-8-base
Branch point for: netbsd-8
Changes since 1.27: +4 -5 lines
Diff to previous 1.27 (colored)

Rename of_getprop_bool to of_hasprop and make of_getprop_bool an alias.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Dec 16 19:33:39 2015 UTC (8 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: prg-localcount2-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Changes since 1.26: +30 -2 lines
Diff to previous 1.26 (colored)

add of_getprop_bool and of_getprop_uint32 helpers

Revision 1.26 / (download) - annotate - [select for diffs], Sun Dec 13 11:51:13 2015 UTC (8 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.25: +5 -4 lines
Diff to previous 1.25 (colored)

add an addr_shift parameter to of_enter_i2c_devs

Revision 1.25 / (download) - annotate - [select for diffs], Sun Dec 13 11:00:01 2015 UTC (8 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

OF properties are stored in big endian, but the host might not be. Swap
the value of the "reg" property where appropriate.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Dec 12 22:22:51 2015 UTC (8 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.23: +52 -8 lines
Diff to previous 1.23 (colored)

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.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Oct 25 14:32:10 2013 UTC (10 years, 5 months ago) by jdc
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.22: +4 -2 lines
Diff to previous 1.22 (colored)

Add "i2c-at34c02" AT34C02 EEPROM.  This is compatible with the AT24C02
EEPROM, apart from software write protection (not supported in our driver).

Revision 1.22 / (download) - annotate - [select for diffs], Tue Sep 24 18:04:53 2013 UTC (10 years, 6 months ago) by jdc
Branch: MAIN
Changes since 1.21: +4 -2 lines
Diff to previous 1.21 (colored)

Add a property "i2c-indirect-config" to allow/disallow i2c indirect config.
If missing, "allowed" is assumed.  Set it to false for OFW machines.
Patch from martin@.  Removes erroneous i2c probe messages that appeared with
wildcard support.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Feb 8 15:17:00 2013 UTC (11 years, 2 months ago) by jdc
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.20: +7 -1 lines
Diff to previous 1.20 (colored)

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.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Feb 3 17:41:02 2013 UTC (11 years, 2 months ago) by jdc
Branch: MAIN
Changes since 1.19: +9 -2 lines
Diff to previous 1.19 (colored)

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).

Revision 1.19 / (download) - annotate - [select for diffs], Fri Nov 2 15:44:07 2012 UTC (11 years, 5 months ago) by jdc
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7
Changes since 1.18: +10 -7 lines
Diff to previous 1.18 (colored)

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).

Revision 1.18 / (download) - annotate - [select for diffs], Sun Feb 28 13:59:05 2010 UTC (14 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.17: +19 -23 lines
Diff to previous 1.17 (colored)

Interpret the "reg" property of i2c nodes more liberal, and depending
on the cell size in use.
I have been unable to find any documents about the i2c bindings for OF,
so this is all pretty much voodoo.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Feb 28 11:35:40 2010 UTC (14 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.16: +59 -2 lines
Diff to previous 1.16 (colored)

Supporting cast for i2c direct configuration on OF machines

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jan 21 15:56:08 2010 UTC (14 years, 3 months ago) by martin
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.15: +6 -3 lines
Diff to previous 1.15 (colored)

fix a ref counting leak

Revision 1.15 / (download) - annotate - [select for diffs], Wed Nov 11 16:56:52 2009 UTC (14 years, 5 months ago) by macallan
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.14: +33 -2 lines
Diff to previous 1.14 (colored)

add another convenience function - of_get_mode_string() to extract a Sun-like
video mode specifier from output-device

Revision 1.14 / (download) - annotate - [select for diffs], Sat Mar 14 21:04:21 2009 UTC (15 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.13: +3 -4 lines
Diff to previous 1.13 (colored)

ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 7 19:26:45 2007 UTC (16 years, 5 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap, jym-xensuspend
Changes since 1.12: +72 -3 lines
Diff to previous 1.12 (colored)

Add three new MI functions taken from macppc/autoconf.c:
of_getnode_byname(): Finds a node named X
of_to_uint32_prop(): sets an uint32_t prop_t from an OFW property
of_to_dataprop(): sets a data prop_t from an OFW property

These looked more generally useful, and seemed like something other
OFW-capable machines might want to take advantage of.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Oct 25 16:59:38 2007 UTC (16 years, 5 months ago) by garbled
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.11: +23 -9 lines
Diff to previous 1.11 (colored)

Add a new convenience function, of_find_firstchild_byname(), and apply
some minor KNF to this ofw_subr.c.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 11 12:22:48 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, reinoud-bufcleanup, post-newlock2-merge, peter-altq-base, peter-altq, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, hpcarm-cleanup, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

merge ktrace-lwp.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:32 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

nuke trailing whitespace

Revision 1.9 / (download) - annotate - [select for diffs], Thu Apr 22 00:17:12 2004 UTC (20 years ago) by itojun
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.8: +5 -7 lines
Diff to previous 1.8 (colored)

sprintf -> snprintf

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jan 6 13:26:27 2003 UTC (21 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, nathanw_sa_before_merge, nathanw_sa_base
Branch point for: ktrace-lwp
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

compatibility, not compatiblity.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Nov 13 07:26:29 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, ifpoll-base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Changes since 1.6: +4 -1 lines
Diff to previous 1.6 (colored)

add RCSIDs

Revision 1.6 / (download) - annotate - [select for diffs], Mon Mar 13 23:52:36 2000 UTC (24 years, 1 month ago) by soren
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: nathanw_sa, kqueue
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Fix doubled 'the's in comments.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Feb 24 07:14:17 1998 UTC (26 years, 2 months ago) by mycroft
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, fvdl-softdep, eeh-paddr_t-base, eeh-paddr_t, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base, chs-ubc2, chs-ubc-base, chs-ubc
Branch point for: thorpej_scsipi
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

Forcibly NUL-terminate the path name, just to be sure.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 3 16:58:26 1998 UTC (26 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.3: +5 -4 lines
Diff to previous 1.3 (colored)

s/of_nodename/of_packagename/.  Eventually, we'll probably want something
similar for instances.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 2 21:56:16 1998 UTC (26 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.2: +85 -7 lines
Diff to previous 1.2 (colored)

add of_nodename(), a function to stuff the last component of a node's
name into a caller-provided buffer (helpful for generating
autoconfiguration output).  Also, other minor cleanup.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jan 28 00:01:01 1998 UTC (26 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.1: +80 -1 lines
Diff to previous 1.1 (colored)

clean up comments and includes.  add an of_compatible() function
which checks for the presence of any of a set of caller-provided
strings in a node's "compatible" property (the _right_ way to
determine driver compatibility).

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jan 26 21:48:40 1998 UTC (26 years, 2 months ago) by cgd
Branch: MAIN

new file containing common OFW-related routines.  Right now just contains
of_decode_int(), a function which decodes OFW integer properties.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>