The NetBSD Project

CVS log for src/sys/arch/sparc64/dev/jbus-i2c.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 9 00:30:08 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf2
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -50 lines
Port over the changes from thorpej-i2c-spi-conf to thorpej-i2c-spi-conf2,
which is based on a newer HEAD revision.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:05 2021 UTC (3 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-1-RELEASE, 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
Branch point for: thorpej-i2c-spi-conf2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
Merge thorpej-cfargs2.

Revision 1.6.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 02:57:07 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +3 -3 lines
Adapt to CFARGS().

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Fri May 14 03:11:49 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +6 -50 lines
Adapt jbusi2c to the new i2c device enumeration scheme.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:49 2021 UTC (3 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf, thorpej-cfargs2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -4 lines
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.5.4.1: download - view: text, markup, annotated - select for diffs
Tue Mar 23 07:14:51 2021 UTC (3 years, 10 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +3 -4 lines
Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Jun 12 03:41:57 2020 UTC (4 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -7 lines
Update for proplib(3) API changes.

Revision 1.3.6.3: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:54 2020 UTC (4 years, 9 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.3.6.2: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.6.2: +3 -26 lines
Merge changes from current as of 20200406

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Dec 22 23:23:31 2019 UTC (5 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, 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
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -26 lines
Cleanup i2c bus acquire / release, centralizing all of the logic into
iic_acquire_bus() / iic_release_bus().  "acquire" and "release" hooks
no longer need to be provided by back-end controller drivers (only if
they need special handling, e.g. powering on the i2c controller).
This results in the removal of a bunch of rendundant code from each
back-end controller driver.

Assert that we are not in hard interrupt context in iic_acquire_bus(),
iic_exec(), and iic_release_bus().

Revision 1.3.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:06:47 2019 UTC (5 years, 7 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.3.6.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.6.1: +282 -0 lines
Sync with HEAD

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:27 2018 UTC (6 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.1: +282 -0 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.3.6.1
Sat Nov 3 14:56:36 2018 UTC (6 years, 2 months ago) by christos
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.3: +0 -282 lines
file jbus-i2c.c was added on branch phil-wifi on 2019-06-10 22:06:47 +0000

Revision 1.3.2.1
Sat Nov 3 14:56:36 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
FILE REMOVED
Changes since revision 1.3: +0 -282 lines
file jbus-i2c.c was added on branch pgoyette-compat on 2018-11-26 01:52:27 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Nov 3 14:56:36 2018 UTC (6 years, 2 months ago) by martin
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, netbsd-9-base, netbsd-9-4-RELEASE, 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
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3 lines
Use PRIx64 printf format to make the 32bit version compile.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Oct 26 01:57:59 2018 UTC (6 years, 2 months ago) by macallan
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +44 -28 lines
- map registers ourselves, no more schizo hackery
- remove some leftover debug code
- print address when attaching
- actually lock/unlock in acquire_bus()/release_bus()
should be ready for general consumption now

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Oct 20 06:25:46 2018 UTC (6 years, 3 months ago) by macallan
Branches: MAIN
support for jbus-i2c found in US-IIIi machines
this needs help from schizo to access its registers, which is suboptimal and
should go away. So, for now this is for documentation purposes only.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>