The NetBSD Project

CVS log for src/sys/arch/sparc/dev/sbus.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.84 / (download) - annotate - [select for diffs], Sat Jan 22 11:49:16 2022 UTC (2 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: triaxx-drm, thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, 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.83: +5 -4 lines
Diff to previous 1.83 (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.83 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:05 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.82: +4 -6 lines
Diff to previous 1.82 (colored)

Merge thorpej-cfargs2.

Revision 1.82.4.1 / (download) - annotate - [select for diffs], Wed Aug 4 02:57:06 2021 UTC (2 years, 7 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.82: +4 -6 lines
Diff to previous 1.82 (colored) next main 1.83 (colored)

Adapt to CFARGS().

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

sync with head

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

Sync with HEAD.

Revision 1.82 / (download) - annotate - [select for diffs], Mon May 10 23:53:44 2021 UTC (2 years, 9 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.81: +4 -2 lines
Diff to previous 1.81 (colored)

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

Revision 1.81 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:49 2021 UTC (2 years, 10 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.80: +6 -4 lines
Diff to previous 1.80 (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.80.2.1 / (download) - annotate - [select for diffs], Sun Mar 21 21:09:07 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.80: +6 -4 lines
Diff to previous 1.80 (colored) next main 1.81 (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.79.8.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:02 2020 UTC (3 years, 2 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.79: +4 -3 lines
Diff to previous 1.79 (colored) next main 1.80 (colored)

Sync w/ HEAD.

Revision 1.80 / (download) - annotate - [select for diffs], Sun Nov 22 03:55:33 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.79: +4 -3 lines
Diff to previous 1.79 (colored)

malloc(9) -> kmem(9) (easy, straight-forward cases only, for now)

Revision 1.78.38.1 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:07 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.78: +4 -11 lines
Diff to previous 1.78 (colored) next main 1.79 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.79 / (download) - annotate - [select for diffs], Sun Nov 10 21:16:32 2019 UTC (4 years, 3 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.78: +4 -11 lines
Diff to previous 1.78 (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.77.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:01:43 2012 UTC (11 years, 3 months ago) by tls
Branch: tls-maxphys
Changes since 1.77: +8 -2 lines
Diff to previous 1.77 (colored) next main 1.78 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.75.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:20:21 2012 UTC (11 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.75.2.1: +9 -3 lines
Diff to previous 1.75.2.1 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored)

sync with head

Revision 1.78 / (download) - annotate - [select for diffs], Sun Sep 23 09:54:04 2012 UTC (11 years, 5 months ago) by jdc
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base-20171202, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, 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-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, 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-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, 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, khorben-n900, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: phil-wifi
Changes since 1.77: +8 -2 lines
Diff to previous 1.77 (colored)

Wrap sbuserr_handler and sbus_error with:
  #if (defined(SUN4M) && !defined(MSIIEP)) || defined(SUN4D)
to give them the same scope as the definitions in ../sparc/intr.c.
Allows SUN4C-only kernels to compile.
OK mrg

Revision 1.77 / (download) - annotate - [select for diffs], Sun Jul 29 00:04:05 2012 UTC (11 years, 7 months ago) by matt
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

Fix more -fno-common fallout.

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:54 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

sync with head

Revision 1.75.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:33:13 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored) next main 1.76 (colored)

merge to -current.

Revision 1.76 / (download) - annotate - [select for diffs], Mon Jan 30 04:25:14 2012 UTC (12 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, 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, 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
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

avoid writing 1 byte beyond the end of the string promlib.c has given us.
instead of forcing a nul byte afterwards, KASSERT() that the final byte
already is a nul.  if there are broken proms... well, we can fix them.

this, plus one more change, allows my SS20 to boot multiuser.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Jul 1 18:50:41 2011 UTC (12 years, 8 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

#include <sys/bus.h> instead of <machine/bus.h>.

Revision 1.67.64.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:02:57 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.67.64.2: +3 -57 lines
Diff to previous 1.67.64.2 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored)

sync with head

Revision 1.74 / (download) - annotate - [select for diffs], Sun Jan 3 23:03:20 2010 UTC (14 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

add an explicit "bool mpsafe" to intr_establish().  only set it to true
for the sun4m timer/counter interrupts.  this gets lev10/14 working again
on SMP systems, where those interrupts started taking the kernel lock and
hanging...

Revision 1.73 / (download) - annotate - [select for diffs], Thu Sep 17 16:28:12 2009 UTC (14 years, 5 months ago) by tsutsui
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.72: +2 -56 lines
Diff to previous 1.72 (colored)

Remove struct sbusdev and related functions sbus_establish() and sbusreset().
They are derived from 4.4BSD/sparc and have been there since initial import
of NetBSD/sparc in 1993, but the struct sbusdev is almost unused for years,
nothing calls sbusreset(), and all (*sd->sd_reset)() functions look bogus.

Suggested by mrg@ and martin@, and tested on SS1+ and SS20.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:18:36 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.67.64.2 / (download) - annotate - [select for diffs], Mon May 4 08:11:54 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.67.64.1: +47 -43 lines
Diff to previous 1.67.64.1 (colored) to branchpoint 1.67 (colored)

sync with head.

Revision 1.70.4.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:34:41 2009 UTC (14 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.70.4.1: +4 -4 lines
Diff to previous 1.70.4.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

Sync with HEAD.

Revision 1.72 / (download) - annotate - [select for diffs], Wed Mar 18 16:00:14 2009 UTC (14 years, 11 months ago) by cegger
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
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored)

bzero -> memset

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:16:44 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.70: +4 -4 lines
Diff to previous 1.70 (colored)

Sync with HEAD.

Revision 1.67.60.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:30 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.67.60.2: +2 -2 lines
Diff to previous 1.67.60.2 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored)

Sync with HEAD.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Dec 16 22:35:25 2008 UTC (15 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.70: +4 -4 lines
Diff to previous 1.70 (colored)

replace bitmask_snprintf(9) with snprintb(3)

Revision 1.67.60.2 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:00 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.67.60.1: +1 -1 lines
Diff to previous 1.67.60.1 (colored) to branchpoint 1.67 (colored)

Sync with HEAD.

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:30:42 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.68: +43 -39 lines
Diff to previous 1.68 (colored) next main 1.69 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:32:48 2008 UTC (15 years, 8 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

Sync with head.

Revision 1.67.62.2 / (download) - annotate - [select for diffs], Tue Jun 17 09:14:12 2008 UTC (15 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.67.62.1: +3 -3 lines
Diff to previous 1.67.62.1 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored)

sync with head.

Revision 1.70 / (download) - annotate - [select for diffs], Fri Jun 13 13:10:18 2008 UTC (15 years, 8 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, 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, 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, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

use device_lookup_private to get softc

Revision 1.67.60.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:40 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.67: +43 -46 lines
Diff to previous 1.67 (colored)

Sync with HEAD.

Revision 1.67.62.1 / (download) - annotate - [select for diffs], Sun May 18 12:32:46 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.67: +43 -46 lines
Diff to previous 1.67 (colored)

sync with head.

Revision 1.69 / (download) - annotate - [select for diffs], Sat May 17 18:11:32 2008 UTC (15 years, 9 months ago) by macallan
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, hpcarm-cleanup-nbase
Branch point for: simonb-wapbl
Changes since 1.68: +43 -39 lines
Diff to previous 1.68 (colored)

more device_t-ification

Revision 1.67.64.1 / (download) - annotate - [select for diffs], Fri May 16 02:23:11 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.67: +2 -9 lines
Diff to previous 1.67 (colored)

sync with head.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:35 2008 UTC (15 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: yamt-nfs-mp-base2
Branch point for: wrstuden-revivesa
Changes since 1.67: +2 -9 lines
Diff to previous 1.67 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.65.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:43:09 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.65: +5 -5 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

sync with head

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:45:28 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored) next main 1.67 (colored)

sync with head.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:55:54 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.64: +53 -92 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

sync with head.

Revision 1.66.8.1 / (download) - annotate - [select for diffs], Mon Jun 19 03:45:06 2006 UTC (17 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored) next main 1.67 (colored)

Sync with head.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Jun 7 22:38:49 2006 UTC (17 years, 9 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pf42-baseX, yamt-pf42-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, rpaulo-netinet-merge-pcb-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, ppcoea-renovation-base, ppcoea-renovation, post-newlock2-merge, nick-net80211-sync-base, nick-net80211-sync, 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, mjf-devfs-base, mjf-devfs, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-base, hpcarm-cleanup, gdamore-uart-base, gdamore-uart, cube-autoconf-base, cube-autoconf, chap-midi-nbase, chap-midi-base, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored)

convert to timecounters (from branch simonb-timecounters)

Revision 1.65.6.2 / (download) - annotate - [select for diffs], Sat May 27 22:45:09 2006 UTC (17 years, 9 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.65.6.1: +4 -4 lines
Diff to previous 1.65.6.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

convert to timecounters (struct time gone)

Revision 1.65.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:37:57 2006 UTC (17 years, 10 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

Sync with head.

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:02 2006 UTC (18 years ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

sync with head.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Feb 23 05:37:48 2006 UTC (18 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, peter-altq-base, peter-altq, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, chap-midi
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

Use device_parent().

Revision 1.56.2.6 / (download) - annotate - [select for diffs], Sun Dec 11 10:28:26 2005 UTC (18 years, 2 months ago) by christos
Branch: ktrace-lwp
Changes since 1.56.2.5: +50 -89 lines
Diff to previous 1.56.2.5 (colored) to branchpoint 1.56 (colored) next main 1.57 (colored)

Sync with head.

Revision 1.64.8.1 / (download) - annotate - [select for diffs], Tue Nov 22 16:08:02 2005 UTC (18 years, 3 months ago) by yamt
Branch: yamt-readahead
Changes since 1.64: +50 -89 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

sync with head.

Revision 1.65 / (download) - annotate - [select for diffs], Wed Nov 16 00:49:03 2005 UTC (18 years, 3 months ago) by uwe
Branch: MAIN
CVS Tags: yamt-readahead-base3, yamt-readahead-base2, ktrace-lwp-base
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.64: +50 -89 lines
Diff to previous 1.64 (colored)

ANSIify function declarations/defintions.  Use uint<N>_t.
Propagate "static" to function definitions.  Drop trailing whitespace.
Same binary code is produced for GENERIC.MP + KGDB + DDB.

Revision 1.56.2.5 / (download) - annotate - [select for diffs], Thu Nov 10 13:58:55 2005 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.4: +3 -3 lines
Diff to previous 1.56.2.4 (colored) to branchpoint 1.56 (colored)

Sync with HEAD. Here we go again...

Revision 1.64 / (download) - annotate - [select for diffs], Sat Jun 4 04:40:57 2005 UTC (18 years, 9 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead, yamt-lazymbuf
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored)

Add const.

Revision 1.56.2.4 / (download) - annotate - [select for diffs], Sat Dec 18 09:31:35 2004 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.3: +6 -11 lines
Diff to previous 1.56.2.3 (colored) to branchpoint 1.56 (colored)

Sync with HEAD.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Dec 13 02:39:07 2004 UTC (19 years, 2 months ago) by chs
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, 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, kent-audio2-base, kent-audio2, kent-audio1-beforemerge
Changes since 1.62: +6 -11 lines
Diff to previous 1.62 (colored)

for drivers that support only one instance, use a global variable to ensure
that only one instance is configured rather than requiring that its
unit number be zero.

Revision 1.56.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:22:02 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.2: +2 -2 lines
Diff to previous 1.56.2.2 (colored) to branchpoint 1.56 (colored)

Fix the sync with head I botched.

Revision 1.56.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:40:28 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.1: +0 -0 lines
Diff to previous 1.56.2.1 (colored) to branchpoint 1.56 (colored)

Sync with HEAD.

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:40:45 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56: +27 -45 lines
Diff to previous 1.56 (colored)

Sync with HEAD

Revision 1.62 / (download) - annotate - [select for diffs], Mon Jul 5 08:51:19 2004 UTC (19 years, 8 months ago) by pk
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.61: +7 -24 lines
Diff to previous 1.61 (colored)

Use bus_space_tag_alloc().

Revision 1.61 / (download) - annotate - [select for diffs], Sun Jun 27 18:24:47 2004 UTC (19 years, 8 months ago) by pk
Branch: MAIN
Changes since 1.60: +5 -5 lines
Diff to previous 1.60 (colored)

Always use `full bus space'. In order to implement this more efficiently,
require that all bus tags have pointers to bus_space_read/write functions,
i.e. no run-time hunting for the first "upstream" implementation.
Since this changes the way bus tags should be constructed it makes sense
to do the same thing for the rest of the bus space methods.
So, now bus space tags are generally constructed by copying the parent's bus
tag and then overriding the methods that the bus driver needs to handle,
instead of starting with an empty bus tag and fiiling in only the fields needed.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Mar 17 17:04:59 2004 UTC (19 years, 11 months ago) by pk
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
Changes since 1.59: +14 -14 lines
Diff to previous 1.59 (colored)

Rename PROM_getprop*() => prom_getprop*().

Revision 1.59 / (download) - annotate - [select for diffs], Wed Aug 27 15:59:50 2003 UTC (20 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.58: +8 -8 lines
Diff to previous 1.58 (colored)

change PROM_getprop() from taking a "void **" for the storage, to a
"void *", and do the extra de-reference directly in the function.  this
avoids having to cast dozens of different types to "void **", which sets
of GCC3's strict-aliasing.  testing by martin@

Revision 1.58 / (download) - annotate - [select for diffs], Thu Aug 7 16:29:36 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.57: +3 -7 lines
Diff to previous 1.57 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Jul 15 00:04:56 2003 UTC (20 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.56: +4 -1 lines
Diff to previous 1.56 (colored)

__KERNEL_RCSID()

Revision 1.42.4.7 / (download) - annotate - [select for diffs], Fri Jan 3 16:55:23 2003 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.42.4.6: +5 -5 lines
Diff to previous 1.42.4.6 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Sync with HEAD.

XXX ALT_SWITCH_CODE is not yet LWP'ified.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Jan 1 02:20:47 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Branch point for: ktrace-lwp
Changes since 1.55: +5 -5 lines
Diff to previous 1.55 (colored)

Use aprint_normal() for cfprint routines.

Revision 1.42.4.6 / (download) - annotate - [select for diffs], Wed Dec 11 06:12:04 2002 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.42.4.5: +7 -12 lines
Diff to previous 1.42.4.5 (colored) to branchpoint 1.42 (colored)

Sync with HEAD.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Dec 10 13:44:50 2002 UTC (21 years, 2 months ago) by pk
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.54: +2 -4 lines
Diff to previous 1.54 (colored)

Remove the `flags' argument from bus_intr_establish().

Revision 1.54 / (download) - annotate - [select for diffs], Tue Dec 10 12:16:25 2002 UTC (21 years, 2 months ago) by pk
Branch: MAIN
Changes since 1.53: +8 -11 lines
Diff to previous 1.53 (colored)

bus_intr_establish() now takes an optional `fast trap' handler argument.
BUS_INTR_ESTABLISH_FASTTRAP and BUS_INTR_ESTABLISH_SOFTINTR are no longer used.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Dec 6 16:04:11 2002 UTC (21 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

Pass the `device class interrupt level' on to intr_establish() and use to
raise the ipl in the interrupt handlers to the appropriate level. This avoids
interrupt handler interference if one of the devices actually interrupts at
a lower hardware level than the maximum level assined to a device class.

Based on code from Art Grabowski in openbsd.

Revision 1.45.6.1 / (download) - annotate - [select for diffs], Fri Nov 22 17:36:49 2002 UTC (21 years, 3 months ago) by tron
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.45: +33 -31 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Pull up revision 1.46 (requested by martin in ticket #948):
Use the structures defined in bsd_openprom.h for "reg", "range",
and "intr" properties, rather than having identical-except-for-names
sbus_* and iommu_* versions.

Revision 1.42.4.5 / (download) - annotate - [select for diffs], Fri Oct 18 02:39:55 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.4.4: +12 -13 lines
Diff to previous 1.42.4.4 (colored) to branchpoint 1.42 (colored)

Catch up to -current.

Revision 1.39.4.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:36:13 2002 UTC (21 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.39.4.3: +12 -13 lines
Diff to previous 1.39.4.3 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.52 / (download) - annotate - [select for diffs], Wed Oct 2 16:02:16 2002 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Oct 1 18:57:52 2002 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.50: +9 -10 lines
Diff to previous 1.50 (colored)

Use CFATTACH_DECL().

Revision 1.50 / (download) - annotate - [select for diffs], Fri Sep 27 20:35:52 2002 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.49: +4 -4 lines
Diff to previous 1.49 (colored)

Declare all cfattach structures const.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Sep 27 02:24:24 2002 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.48: +4 -4 lines
Diff to previous 1.48 (colored)

Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver.  The cfdriver is then looked
up in a list which is built at run-time.

Revision 1.39.4.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:40:51 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.39.4.2: +29 -94 lines
Diff to previous 1.39.4.2 (colored) to branchpoint 1.39 (colored)

sync kqueue branch with HEAD

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Sat Aug 31 14:52:15 2002 UTC (21 years, 6 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.45: +29 -94 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

catch up with -current.

Revision 1.42.4.4 / (download) - annotate - [select for diffs], Tue Aug 27 23:45:29 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.4.3: +29 -94 lines
Diff to previous 1.42.4.3 (colored) to branchpoint 1.42 (colored)

Catch up to -current.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Aug 25 17:54:58 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.47: +6 -55 lines
Diff to previous 1.47 (colored)

Put a bus's ranges in the bus space tag, and make sparc_bus_map()
perform the translation and recursion if t->ranges != NULL.  Make
sbus, cpuunit, and bootbus inherit the parent's map/mmap routines,
and delete the now-unused mapping functions.  Update all places where
bus space tags are statically allocated.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Aug 25 16:05:41 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.46: +16 -34 lines
Diff to previous 1.46 (colored)

Add a generic function to translate a device address using a
parent's "ranges" property, and use it.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Aug 23 02:53:11 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +33 -31 lines
Diff to previous 1.45 (colored)

Use the structures defined in bsd_openprom.h for "reg", "range",
and "intr" properties, rather than having identical-except-for-names
sbus_* and iommu_* versions.

Revision 1.42.4.3 / (download) - annotate - [select for diffs], Mon Apr 1 07:42:43 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.4.2: +29 -33 lines
Diff to previous 1.42.4.2 (colored) to branchpoint 1.42 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.39.4.2 / (download) - annotate - [select for diffs], Sat Mar 16 15:59:47 2002 UTC (21 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.39.4.1: +29 -33 lines
Diff to previous 1.39.4.1 (colored) to branchpoint 1.39 (colored)

Catch up with -current.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Mar 11 16:27:02 2002 UTC (21 years, 11 months ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.44: +29 -33 lines
Diff to previous 1.44 (colored)

* `bus_type_t' is gone.
* Use BUS_ADDR() where appropriate to encode I/O space and physical
  address offset into a `bus_addr_t' value.
* Drop obio_bus_map() since it's now completely equivalent to bus_space_map()
* Use bus_space_map2() to map device space at a fixed virtual address.
* Remove the virtual address argument from sbus_sbus_addr()

Revision 1.39.4.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:48:47 2002 UTC (22 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.39: +40 -29 lines
Diff to previous 1.39 (colored)

Sync kqueue branch with -current.

Revision 1.42.4.2 / (download) - annotate - [select for diffs], Tue Jan 8 00:27:35 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.4.1: +821 -0 lines
Diff to previous 1.42.4.1 (colored) to branchpoint 1.42 (colored)

Catch up to -current.

Revision 1.44 / (download) - annotate - [select for diffs], Mon Dec 31 15:00:58 2001 UTC (22 years, 2 months ago) by uwe
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base
Changes since 1.43: +3 -17 lines
Diff to previous 1.43 (colored)

Now that sbus_bus_mmap was converted to do the proper address
translation, get rid of sbus_bus_addr.  Since sbus_bus_addr is used by
framebuffer drivers that are shared with sparc64 we cannot just change
the callers to use BUS_ADDR() w/out coordinating the change with
sparc64 that uses a different calling protocol, so stub our
sbus_bus_addr to just return BUS_ADDR.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Dec 20 07:53:59 2001 UTC (22 years, 2 months ago) by uwe
Branch: MAIN
Changes since 1.42: +14 -16 lines
Diff to previous 1.42 (colored)

Rewrite sbus_bus_mmap to conform to new signature and unbreak bus_space_mmap.
This fixes the problem with X server killing the kernel by writing to
the middle of physical memory instead of the frame buffer.

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Thu Oct 11 00:01:51 2001 UTC (22 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.39.2.1: +4 -2 lines
Diff to previous 1.39.2.1 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.

Revision 1.42.4.1, Fri Oct 5 13:32:23 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42: +0 -837 lines
FILE REMOVED

file sbus.c was added on branch nathanw_sa on 2002-01-08 00:27:35 +0000

Revision 1.42 / (download) - annotate - [select for diffs], Fri Oct 5 13:32:23 2001 UTC (22 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3
Branch point for: nathanw_sa
Changes since 1.41: +4 -2 lines
Diff to previous 1.41 (colored)

avoid a memory leak

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:41:59 2001 UTC (22 years, 5 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.39: +45 -20 lines
Diff to previous 1.39 (colored)

Catch up with -current.

Revision 1.41 / (download) - annotate - [select for diffs], Wed Sep 26 20:53:05 2001 UTC (22 years, 5 months ago) by eeh
Branch: MAIN
CVS Tags: thorpej-devvp-base2
Changes since 1.40: +13 -13 lines
Diff to previous 1.40 (colored)

getprop* -> PROM_getprop*

Revision 1.40 / (download) - annotate - [select for diffs], Mon Sep 24 23:49:31 2001 UTC (22 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.39: +33 -8 lines
Diff to previous 1.39 (colored)

Change bus_space_mmap() signature to the official one.

Revision 1.35.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:01:37 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.35.2.1: +2 -1 lines
Diff to previous 1.35.2.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

Sync with HEAD.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 20:25:33 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.35: +24 -27 lines
Diff to previous 1.35 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Nov 1 06:27:45 2000 UTC (23 years, 4 months ago) by eeh
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp, kqueue
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)

Pass on the sbus frequency.

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Wed Jul 19 02:53:12 2000 UTC (23 years, 7 months ago) by mrg
Branch: netbsd-1-5
CVS Tags: 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
Changes since 1.36: +15 -10 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

pull up sparc/sparc64 bus_intr_establish() changes, necessary for sparc64
(originally done by pk, approved by thorpej):

>Add a `device class' interrupt level argument (from machine/intr.h)
>to bus_interrupt_establish().
>
>It's currently only used in sparc64/dev/psycho.c to assign a CPU interrupt
>level to devices in PCI slots.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Jul 9 20:57:47 2000 UTC (23 years, 8 months ago) by pk
Branch: MAIN
Changes since 1.37: +15 -10 lines
Diff to previous 1.37 (colored)

Add a `device class' interrupt level argument (from machine/intr.h)
to bus_interrupt_establish().

It's currently only used in sparc64/dev/psycho.c to assign a CPU interrupt
level to devices in PCI slots.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jun 29 07:40:08 2000 UTC (23 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored)

remove include of <vm/vm.h> and <machine/pmap.h>. <vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jan 11 12:59:46 2000 UTC (24 years, 1 month ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl, chs-ubc2-newbase
Branch point for: netbsd-1-5
Changes since 1.35: +8 -17 lines
Diff to previous 1.35 (colored)

Remove old-style boot device recognition.

Revision 1.34.2.1.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:01:42 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.34.2.1: +0 -0 lines
Diff to previous 1.34.2.1 (colored) next main 1.35 (colored)

Sync w/ -current.

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Wed Apr 14 21:18:30 1999 UTC (24 years, 10 months ago) by pk
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.34: +12 -1 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Pull up rev 1.35 from trunk.

Revision 1.35 / (download) - annotate - [select for diffs], Wed Apr 14 09:50:01 1999 UTC (24 years, 10 months ago) by pk
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: thorpej_scsipi
Changes since 1.34: +12 -1 lines
Diff to previous 1.34 (colored)

Mask out 64-bit burst capability on sun4m's, since some models (SS20)
erroneously report this in their sbus properties.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Feb 14 12:44:31 1999 UTC (25 years ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Use the PROMLIB interface.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Sep 20 20:08:52 1998 UTC (25 years, 5 months ago) by pk
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.32: +3 -2 lines
Diff to previous 1.32 (colored)

Don't map sbus `registers' on sun4c (i.e. sbus @ mainbus); it's almost
certainly not the control space we want..

Revision 1.32 / (download) - annotate - [select for diffs], Sat Sep 19 15:49:50 1998 UTC (25 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.31: +70 -5 lines
Diff to previous 1.31 (colored)

Map Sbus control registers.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Sep 7 07:11:11 1998 UTC (25 years, 6 months ago) by pk
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

Undo last change (we're passing the address of a pointer here).

Revision 1.30 / (download) - annotate - [select for diffs], Sat Sep 5 22:37:08 1998 UTC (25 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

The `address' field from the prom is really an unsigned 32-bit value.
Make it so.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Sep 5 22:15:51 1998 UTC (25 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.28: +5 -5 lines
Diff to previous 1.28 (colored)

Remove function naming conflict.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Aug 30 21:26:46 1998 UTC (25 years, 6 months ago) by pk
Branch: MAIN
Changes since 1.27: +10 -10 lines
Diff to previous 1.27 (colored)

getpropA() => getprop().

Revision 1.27 / (download) - annotate - [select for diffs], Fri Aug 21 14:07:37 1998 UTC (25 years, 6 months ago) by pk
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Convert to [pv]addr_t.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jul 29 18:42:32 1998 UTC (25 years, 7 months ago) by pk
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.25: +86 -38 lines
Diff to previous 1.25 (colored)

Switch to new sbus attach arguments layout.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jul 27 22:34:48 1998 UTC (25 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Get headers from <dev/sbus>

Revision 1.24 / (download) - annotate - [select for diffs], Sat Apr 18 19:00:18 1998 UTC (25 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.23: +47 -1 lines
Diff to previous 1.23 (colored)

Skeleton code for the SBus expander box.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Apr 7 20:43:58 1998 UTC (25 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.22: +7 -1 lines
Diff to previous 1.22 (colored)

No need to export bus_intr_establish().

Revision 1.22 / (download) - annotate - [select for diffs], Tue Apr 7 20:13:33 1998 UTC (25 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.21: +17 -15 lines
Diff to previous 1.21 (colored)

The bus space functions now take care of "pass-through" methods.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Mar 29 22:06:58 1998 UTC (25 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Fill in the bus tag's `bus_space_unmap' method.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Mar 21 22:03:33 1998 UTC (25 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.19: +58 -27 lines
Diff to previous 1.19 (colored)

Direct the Sbus bus map function through the bus tag.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Mar 21 19:55:31 1998 UTC (25 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.18: +407 -92 lines
Diff to previous 1.18 (colored)

Switch to a bus_space(9)-based device attachment scheme.

	- device attachment arguments contain bus-specific
	  address and interrupt levels.

	- devices must call back on bus map functions to get their
	  addresses and interrupt levels translated properly.

	- sun4m's obio bus is treated like an Sbus slot.

	- the sun4-style obio bus has its own attach arguments
	  and map functions.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jan 12 20:23:56 1998 UTC (26 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.17: +2 -4 lines
Diff to previous 1.17 (colored)

Update for changes to config.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jun 1 22:10:39 1997 UTC (26 years, 9 months ago) by pk
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Changes since 1.16: +8 -3 lines
Diff to previous 1.16 (colored)

Set `rr_iospace' to PMAP_OBIO when translating relative sbus addresses.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Apr 8 20:08:21 1997 UTC (26 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.15: +12 -3 lines
Diff to previous 1.15 (colored)

Move "range" property description out of generic `romaux'.
Allocate room for this property when needed in bus attachment.

Revision 1.14.6.1 / (download) - annotate - [select for diffs], Wed Mar 12 13:55:14 1997 UTC (26 years, 11 months ago) by is
Branch: is-newarp
Changes since 1.14: +6 -5 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Merge in changes from The Trunk

Revision 1.15 / (download) - annotate - [select for diffs], Mon Mar 10 23:01:42 1997 UTC (27 years ago) by pk
Branch: MAIN
CVS Tags: is-newarp-before-merge
Changes since 1.14: +6 -5 lines
Diff to previous 1.14 (colored)

Replace `cpumod' with `cpuinfo.cpu_type' equivalents.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Dec 10 22:55:02 1996 UTC (27 years, 3 months ago) by pk
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-base
Branch point for: is-newarp
Changes since 1.13: +5 -5 lines
Diff to previous 1.13 (colored)

Comply with recent autoconfiguration changes. Diffs graciously
supplied by Chris Demetriou.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 13 03:00:08 1996 UTC (27 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.12: +7 -7 lines
Diff to previous 1.12 (colored)

backout previous kprintf change

Revision 1.12 / (download) - annotate - [select for diffs], Fri Oct 11 00:46:53 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.11: +7 -7 lines
Diff to previous 1.11 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.11 / (download) - annotate - [select for diffs], Tue Aug 27 21:57:18 1996 UTC (27 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

change cfprint_t type definition to take a const char *, rather than
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).

Revision 1.10 / (download) - annotate - [select for diffs], Mon Apr 22 02:35:03 1996 UTC (27 years, 10 months ago) by abrown
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.9: +6 -1 lines
Diff to previous 1.9 (colored)

- Changed Sun4m DMA chip support to detect and use maximum available SBus
  burst size when transferring data.
- Changed ledma attach code to pay attention to the PROM's notion of what
  cable type is being used. Note that this patch does not fix the problem
  recently discussed on port-sparc; in most cases the PROM doesn't know
  what cable type is being used. The default is now TP rather than AUI,
  though. A complete fix is forthcoming.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Mar 31 22:27:15 1996 UTC (27 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.8: +74 -16 lines
Diff to previous 1.8 (colored)

Add sbus_translate() to deal with slot address translations, including
new v3 PROM style "range" properties. This routine is also called from obio.c
(which can be viewed upon as just a another Sbus slot).

Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 17 02:01:14 1996 UTC (27 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.7: +11 -7 lines
Diff to previous 1.7 (colored)

New device attachment scheme:

	- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 14 19:45:13 1996 UTC (27 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.6: +5 -1 lines
Diff to previous 1.6 (colored)

Bring prototypes into scope and fix compiler warnings.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Feb 1 12:37:28 1995 UTC (29 years, 1 month ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.5: +7 -0 lines
Diff to previous 1.5 (colored)

Integrate changes from Chuck Cranor for the Sun 4/100.
Support for multiple register banks on SBUS devices (based on patches
from Francis Dupont).
Highlights:
	romaux defines an array of register spaces.
	pay attention to `vactype'.
	quirks handling 4/100 idiosyncracies.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Nov 23 07:02:19 1994 UTC (29 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

XXmatch change (and a few __P() as well)

Revision 1.4 / (download) - annotate - [select for diffs], Sun Nov 20 20:52:25 1994 UTC (29 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +2 -3 lines
Diff to previous 1.3 (colored)

copyright/Id cleanup

Revision 1.3 / (download) - annotate - [select for diffs], Sun Oct 2 22:00:30 1994 UTC (29 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +17 -30 lines
Diff to previous 1.2 (colored)

sun4/300 support works

Revision 1.2 / (download) - annotate - [select for diffs], Sat Sep 17 23:57:38 1994 UTC (29 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +52 -22 lines
Diff to previous 1.1 (colored)

sbus/* --> dev/*
deal with multiple bus types (start of vme/obio support)

Revision 1.1 / (download) - annotate - [select for diffs], Sat Oct 2 10:23:55 1993 UTC (30 years, 5 months ago) by deraadt
Branch: MAIN

Chris Torek's sparc port. Missing lots of things.

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>