The NetBSD Project

CVS log for src/sys/arch/hppa/hppa/mainbus.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11.2.1 / (download) - annotate - [select for diffs], Sat Feb 17 16:02:22 2024 UTC (10 days, 18 hours ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC5
Changes since 1.11: +4 -2 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Pull up following revision(s) (requested by macallan in ticket #592):

	sys/arch/hppa/hppa/mainbus.c: revision 1.13
	sys/arch/hppa/dev/elroy.c: revision 1.7
	sys/arch/hppa/dev/dino.c: revision 1.17
	sys/arch/hppa/include/bus_funcs.h: revision 1.2
	sys/arch/hppa/include/bus_defs.h: revision 1.3

add missing bus_space_*_stream() methods instead of quietly aliasing them
to their potentially byte-swapping regular counterparts

ok skrll@

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 28 09:03:22 2024 UTC (4 weeks, 3 days ago) by macallan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +4 -2 lines
Diff to previous 1.12 (colored)

add missing bus_space_*_stream() methods instead of quietly aliasing them
to their potentially byte-swapping regular counterparts

ok skrll@

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jan 18 10:34:29 2024 UTC (5 weeks, 6 days ago) by macallan
Branch: MAIN
Changes since 1.11: +7 -8 lines
Diff to previous 1.11 (colored)

rearrange things so we:
- find machine_ledaddr on Cxxx and the like without lcd at mainbus
- build without options USELEDS

Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 11 22:03:37 2022 UTC (16 months, 2 weeks ago) by andvar
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Branch point for: netbsd-10
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

fix typos in log messages s/bus_dmamem_create/bus_dmamap_create/ and
s/bus_dmamem_load/bus_dmamap_load/.
Inspired by recent similar fixes in OpenBSD.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 26 20:08:55 2022 UTC (19 months ago) by andvar
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

s/functin/function/ in copy pasted comment.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Mar 30 22:34:48 2022 UTC (22 months, 4 weeks ago) by macallan
Branch: MAIN
Changes since 1.8: +18 -12 lines
Diff to previous 1.8 (colored)

get machine_ledaddr from PDC if we find one
now USELEDS works on my c360

Revision 1.8 / (download) - annotate - [select for diffs], Sat Aug 7 16:18:55 2021 UTC (2 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.7: +7 -9 lines
Diff to previous 1.7 (colored)

Merge thorpej-cfargs2.

Revision 1.7.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 01:03:37 2021 UTC (2 years, 6 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.7: +7 -9 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Adapt to CFARGS().

Revision 1.7 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:39 2021 UTC (2 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, 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-cfargs2
Changes since 1.6: +11 -7 lines
Diff to previous 1.6 (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.6.2.3 / (download) - annotate - [select for diffs], Mon Mar 22 16:23:42 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.6.2.2: +2 -4 lines
Diff to previous 1.6.2.2 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Audit CFARG_IATTR in config_found() calls, and remove it in situations
where the interface attribute is not ambiguous.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Mon Mar 22 02:00:57 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.6.2.1: +10 -4 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored)

Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Sun Mar 21 21:09:01 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.6: +5 -5 lines
Diff to previous 1.6 (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.5.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:37:56 2020 UTC (3 years, 2 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.5: +19 -14 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync w/ HEAD.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Nov 21 21:01:16 2020 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.5: +19 -14 lines
Diff to previous 1.5 (colored)

malloc(9) -> kmem(9)

Revision 1.5 / (download) - annotate - [select for diffs], Fri Oct 16 17:50:44 2020 UTC (3 years, 4 months ago) by macallan
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.4: +3 -4 lines
Diff to previous 1.4 (colored)

support *_mmap()

Revision 1.1.36.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:19 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.1: +28 -28 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Revision 1.4 / (download) - annotate - [select for diffs], Fri Apr 26 18:37:24 2019 UTC (4 years, 10 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, 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, 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.3: +23 -23 lines
Diff to previous 1.3 (colored)

KNF

Revision 1.3 / (download) - annotate - [select for diffs], Mon Apr 15 20:45:08 2019 UTC (4 years, 10 months ago) by skrll
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.2: +6 -6 lines
Diff to previous 1.2 (colored)

Trailing whitespace

Revision 1.1.34.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:34 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.2 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:24 2018 UTC (5 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.1.10.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:04 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.1.10.1: +1495 -0 lines
Diff to previous 1.1.10.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.1.6.2 / (download) - annotate - [select for diffs], Thu May 22 11:39:50 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.1.6.1: +1495 -0 lines
Diff to previous 1.1.6.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Sun May 18 17:45:11 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.1.4.1: +1495 -0 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head

Revision 1.1.10.1, Mon Feb 24 07:23:43 2014 UTC (10 years ago) by tls
Branch: tls-maxphys
Changes since 1.1: +0 -1495 lines
FILE REMOVED

file mainbus.c was added on branch tls-maxphys on 2014-08-20 00:03:04 +0000

Revision 1.1.6.1, Mon Feb 24 07:23:43 2014 UTC (10 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.1: +0 -1495 lines
FILE REMOVED

file mainbus.c was added on branch yamt-pagecache on 2014-05-22 11:39:50 +0000

Revision 1.1.4.1, Mon Feb 24 07:23:43 2014 UTC (10 years ago) by rmind
Branch: rmind-smpnet
Changes since 1.1: +0 -1495 lines
FILE REMOVED

file mainbus.c was added on branch rmind-smpnet on 2014-05-18 17:45:11 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Mon Feb 24 07:23:43 2014 UTC (10 years ago) by skrll
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base-20171202, 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, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, 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, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, 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, 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, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet, phil-wifi, pgoyette-compat

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.

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>