The NetBSD Project

CVS log for src/sys/arch/sparc64/dev/cbus.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.8 / (download) - annotate - [select for diffs], Sat Jan 22 11:49:17 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.7: +3 -2 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:05 2021 UTC (2 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored)

Merge thorpej-cfargs2.

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Wed Aug 4 02:57:07 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Adapt to CFARGS().

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Mon May 31 22:15:16 2021 UTC (2 years, 10 months ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.5: +5 -4 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

sync with head

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Thu May 13 00:47:28 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.5: +5 -4 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync with HEAD.

Revision 1.6 / (download) - annotate - [select for diffs], Mon May 10 23:53:44 2021 UTC (2 years, 11 months ago) by thorpej
Branch: 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
Branch point for: thorpej-cfargs2
Changes since 1.5: +5 -4 lines
Diff to previous 1.5 (colored)

Associate the OpenBoot / OpenFirmware node with attached devices
at config_found() time.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:49 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (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.3.8.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:38 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with HEAD.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Sun Mar 21 21:09:07 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Give config_found() the same variadic arguments treatment as
config_search().  This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls.  Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jan 4 14:48:51 2021 UTC (3 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

malloc(9) -> kmem(9) -- just the simple, straightforward conversions for now.

Revision 1.2.18.1 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:08 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.2: +2 -5 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.3 / (download) - annotate - [select for diffs], Sun Nov 10 21:16:33 2019 UTC (4 years, 5 months ago) by chs
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
Branch point for: thorpej-futex
Changes since 1.2: +2 -5 lines
Diff to previous 1.2 (colored)

in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.

Revision 1.2.14.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:44 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.2.14.1: +314 -0 lines
Diff to previous 1.2.14.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

update from HEAD

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:36 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.2: +3 -3 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Revision 1.1.4.1 / (download) - annotate - [select for diffs], Tue Jul 26 03:24:19 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Revision 1.2.14.1, Mon Jul 18 19:32:44 2016 UTC (7 years, 9 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.2: +0 -314 lines
FILE REMOVED

file cbus.c was added on branch tls-maxphys on 2017-12-03 11:36:44 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jul 18 19:32:44 2016 UTC (7 years, 9 months ago) by palle
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, 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, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, 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, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: tls-maxphys, phil-wifi
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

sun4v: reset cbus debug back to zero

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sat Jul 9 20:24:57 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.1: +314 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Revision 1.1.2.1, Wed Jun 22 20:13:51 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1: +0 -314 lines
FILE REMOVED

file cbus.c was added on branch nick-nhusb on 2016-07-09 20:24:57 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 22 20:13:51 2016 UTC (7 years, 9 months ago) by palle
Branch: MAIN
CVS Tags: pgoyette-localcount-base, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount, nick-nhusb

sun4v: add cbus driver - from OpenBSD

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>