History log of /src/sys/arch/sparc/conf/files.sparc
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base thorpej-ifq-base thorpej-altq-separation-base
# 1.164 26-Oct-2023 andvar

Build db_machdep.c when KGDB option is enabled.
Do not cast (regs)->db_tf.tf_pc to db_addr_t (thus ifdef block is redundant).
Adjust ifdef conditions in db_interface.c to make it build with KGDB option.
While here, add #endif comments for longer blocks.

These changes should make sparc build with KGDB option, once ddb/db_access.c
code will be fixed to build with it.


Revision tags: 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-base bouyer-sunxi-drm-base thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base thorpej-i2c-spi-conf-base
# 1.163 24-Apr-2021 thorpej

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 tags: thorpej-cfargs-base thorpej-futex-base
# 1.162 21-Oct-2020 christos

branches: 1.162.4;
make process_machdep.c included always since it provides register i/o used by
sys_process_getlwpstatus.c which is always included.


# 1.161 20-Oct-2020 christos

harmonize process_machdep.c inclusion.


# 1.160 12-Sep-2020 isaki

Improve am7930 family drivers to share more code.
audioamd(4) on sparc, vsaudio(4) on vax, and bba(4) are.
- Remove complex and useless callbacks: onopen, onclose, and
indirect_{read,write}. This makes audioamd and vsaudio almost the same.
- Remove (already disabled) assembly fast interrupt path from audioamd(4).
cf. http://mail-index.netbsd.org/source-changes/2009/12/19/msg004585.html
- Use trigger_* method rather than start_* method. It's more suitable.
vsaudio(4) was tested by naru@, bba(4) was tested by tsutsui@.


Revision tags: netbsd-9-4-RELEASE netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 netbsd-9-0-RELEASE netbsd-9-0-RC2 ad-namecache-base2 ad-namecache-base1 ad-namecache-base netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 isaki-audio2-base
# 1.159 01-Mar-2019 macallan

defflag SX_DEBUG


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.158 19-Dec-2018 maxv

Remove compat_svr4 and compat_svr4_32, as discussed on tech-kern@ recently,
but also as discussed several times in the past.


Revision tags: pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-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 pgoyette-compat-base tls-maxphys-base-20171202 nick-nhusb-base-20170825
# 1.157 21-Jul-2017 nakayama

branches: 1.157.2; 1.157.4;
Move the ddb registers and empty command table used for crash(8) into
db_machdep.c like other archs.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 jdolecek-ncq-base pgoyette-localcount-20170320 nick-nhusb-base-20170204 bouyer-socketcan-base pgoyette-localcount-20170107 nick-nhusb-base-20161204 pgoyette-localcount-20161104 nick-nhusb-base-20161004 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base nick-nhusb-base-20160907 nick-nhusb-base-20160529
# 1.156 30-Apr-2016 macallan

branches: 1.156.10;
cgfourteen needs glyphcache now


Revision tags: nick-nhusb-base-20160422
# 1.155 21-Apr-2016 macallan

cgfourteen needs vcons


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE nick-nhusb-base-20160319 nick-nhusb-base-20151226 netbsd-7-0-RELEASE nick-nhusb-base-20150921 netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 nick-nhusb-base-20150606 nick-nhusb-base-20150406 nick-nhusb-base netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 rmind-smpnet-nbase riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base rmind-smpnet-base tls-maxphys-base
# 1.154 16-Apr-2013 jdc

branches: 1.154.12;
Add PCI fixup for MicroSPARC-IIep.
Unconfigured PCI-PCI bridges and devices behind them are configured.


Revision tags: agc-symver-base
# 1.153 05-Feb-2013 macallan

attachment and initialization for SX


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.152 06-Nov-2012 alnsn

Enable bpfjit on sparc.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 jmcneill-usbmp-base10 yamt-pagecache-base5 jmcneill-usbmp-base9 yamt-pagecache-base4 jmcneill-usbmp-base8 jmcneill-usbmp-base7 jmcneill-usbmp-base6 jmcneill-usbmp-base5 jmcneill-usbmp-base4 jmcneill-usbmp-base3 jmcneill-usbmp-pre-base2 jmcneill-usbmp-base2 netbsd-6-base jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.151 12-Jun-2011 rmind

branches: 1.151.2; 1.151.12;
Welcome to 5.99.53! Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
kernel-lock on some ports). Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.


Revision tags: rmind-uvmplock-nbase cherry-xenmp-base uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 uebayasi-xip-base6 uebayasi-xip-base5 uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 rmind-uvmplock-base jym-xensuspend-nbase jym-xensuspend-base
# 1.150 20-Sep-2010 tsutsui

branches: 1.150.6;
Prepare sparc optimized (by 32 bit add-with-carry insns) cpu_in_cksum()
which is reusing in_cksum_internal() in old sparc/in_cksum.c.

~4% improvements of ttcp(1) xfer rates on SS1+ with le(4).


Revision tags: uebayasi-xip-base2 yamt-nfs-mp-base10 uebayasi-xip-base1 yamt-nfs-mp-base9 uebayasi-xip-base
# 1.149 15-Jan-2010 bouyer

branches: 1.149.2; 1.149.4;
Add apc(4), a driver for the Aurora Personality Chip (APC) found
on SPARCstation-4/5, and emulated by qemu to idle the simulator
when the CPU is idle. Infos about the registers from the linux driver.
Not enabled by default because it can cause some Sparc systems to
hang (so says the linux driver).
Only the CPU idle part implemented at this time; fan speed and
Convenience power outlet management to be added.
Tested on qemu.


Revision tags: matt-premerge-20091211
# 1.148 27-Sep-2009 tsutsui

Remove commented out and nonexistent cgthree at obio stuff.

SPARCclassic has onboard CG3 but it's internally connected via SBus,
and there is no info about sun4m machines which actually require
cgthree at obio attachment. Info from jdc@.


Revision tags: yamt-nfs-mp-base8 yamt-nfs-mp-base7 jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 nick-hppapmap-base2 haad-dm-base2 haad-nbase2 ad-audiomp2-base nick-hppapmap-base haad-dm-base mjf-devfs2-base
# 1.147 19-Nov-2008 ad

Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime


Revision tags: netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 simonb-wapbl-nbase yamt-pf42-base4 simonb-wapbl-base yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 yamt-nfs-mp-base2 wrstuden-revivesa-base yamt-nfs-mp-base yamt-pf42-base ad-socklock-base1 yamt-lazymbuf-base15 yamt-lazymbuf-base14 keiichi-mipv6-nbase nick-net80211-sync-base keiichi-mipv6-base matt-armv6-nbase hpcarm-cleanup-base
# 1.146 20-Feb-2008 drochner

branches: 1.146.6; 1.146.10; 1.146.16; 1.146.18; 1.146.20; 1.146.24;
Since files.wscons et al. are included by ~all ports anyway, include
them in the mi "files" file, and remove include statements from md files.
These shouldn't pull in additional kernel code when not in use, so it
shouldn't do any harm except a risk of namespace collisions which
should be easy to fix.


Revision tags: mjf-devfs-base
# 1.145 14-Feb-2008 ad

Make sparc use atomic_cas_ulong() for mutex and rwlock operations, and
disable the custom mutex/rwlock code. PR port-sparc/37930. ok martin@


# 1.144 25-Jan-2008 joerg

Refactor in_cksum/in4_cksum/in6_cksum implementations:
- All three functions are included in the kernel by default.
They call a backend function cpu_in_cksum after possibly
computing the checksum of the pseudo header.
- cpu_in_cksum is the core to implement the one-complement sum.
The default implementation is moderate fast on most platforms
and provides a 32bit accumulator with 16bit addends for L32 platforms
and a 64bit accumulator with 32bit addends for L64 platforms.
It handles edge cases like very large mbuf chains (could happen with
native IPv6 in the future) and provides a good base for new native
implementations.
- Modify i386 and amd64 assembly to use the new interface.

This disables the MD implementations on !x86 until the conversion is
done. For Alpha, the portable version is faster.


Revision tags: bouyer-xeni386-nbase bouyer-xeni386-base matt-armv6-base
# 1.143 06-Jan-2008 ad

Add MODULAR option. Include kernel linker stuff if MODULAR.


Revision tags: vmlocking2-base3 yamt-kmem-base3 cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 jmcneill-base bouyer-xenamd64-base2 vmlocking-nbase yamt-x86pmap-base4 bouyer-xenamd64-base jmcneill-pm-base reinoud-bufcleanup-base
# 1.142 17-Oct-2007 garbled

branches: 1.142.2; 1.142.8;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.


Revision tags: nick-csl-alignment-base5 yamt-x86pmap-base3 yamt-x86pmap-base2 yamt-x86pmap-base matt-mips64-base ppcoea-renovation-base vmlocking-base
# 1.141 30-Jul-2007 macallan

branches: 1.141.6;
add wsdisplay support for cg14
The console will run in 8bit but switch to 32bit in mapped mode so XFree86
with wsfb can run in 24bit colour.


Revision tags: nick-csl-alignment-base mjf-ufs-trans-base
# 1.140 07-Jul-2007 tsutsui

branches: 1.140.2; 1.140.4;
Remove leftover netns stuff.


Revision tags: yamt-idlelwp-base8 thorpej-atomic-base
# 1.139 10-Apr-2007 macallan

branches: 1.139.4;
include files.wsfb


# 1.138 18-Mar-2007 jdc

Add USB support (for the Javastation Espresso).


Revision tags: ad-audiomp-base post-newlock2-merge
# 1.137 09-Feb-2007 ad

branches: 1.137.2; 1.137.6; 1.137.8; 1.137.10;
Merge newlock2 to head.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 matt-nb4-arm-base netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base newlock2-nbase yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 abandoned-netbsd-4-base yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 newlock2-base yamt-pdpolicy-base8 yamt-pdpolicy-base7 netbsd-4-base yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base simonb-timcounters-final yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 elad-kernelauth-base yamt-pdpolicy-base yamt-uio_vmspace-base5 simonb-timecounters-base rpaulo-netinet-merge-pcb-base yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base ktrace-lwp-base
# 1.136 13-Nov-2005 uwe

branches: 1.136.22;
G/c arch/sparc/sparc/sys_process.c that has been commented out since
revision 1.1 anyway.


Revision tags: yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base
# 1.135 25-Sep-2005 macallan

Put the SPARCbook 3GX and 3GS CPU to sleep when idle


# 1.134 10-Jul-2005 christos

- add syscall_{plain,fancy}
- make it use mi_userret


# 1.133 06-Jul-2005 macallan

sysmon_* attributes for device tctrl


# 1.132 06-Jul-2005 macallan

Add support for the TS102 PCMCIA controller found in SPARCbooks


# 1.131 30-Jun-2005 macallan

branches: 1.131.2;
Allow sparc64-style attachment of mouse and keyboard via zstty, needed for
wscons support.
Reviewed by uwe.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE 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 yamt-km-base4 yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base kent-audio1-beforemerge kent-audio1-base
# 1.130 14-Sep-2004 jdolecek

do not include "compat/aout/files.aout", COMPAT_AOUT is soon to be removed


# 1.129 30-Aug-2004 drochner

Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.


# 1.128 03-Apr-2004 chs

add some SUN4D stuff.
zs and zstty no longer need "needs-count" or "needs-flag",
so get rid of those and wild-card the extra zs devices on SUN4D.


Revision tags: netbsd-2-0-3-RELEASE 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-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-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-base
# 1.127 17-Mar-2004 matt

Fix typo (pckbort -> pckbport)


# 1.126 13-Mar-2004 bjh21

Abstract the interface between pckbc(4), and the pckbd(4) and pms(4)
drivers that attach to it. This allows for other host interface chips
that use the same keyboards and mice, such as the ones in the ARM
IOMD20, ARM7500, and SA-1111. The PC-compatible driver is still
called pckbc(4), and the new abstraction layer is "pckbport", so the
child devices have moved from sys/dev/pckbc to sys/dev/pckbport, which
also contains some code shared between all host controllers. To avoid
incompatibility, pckbdreg.h is still installed in
/usr/include/dev/pckbc.

In theory, this shouldn't cause any behavioural changes in the drivers
concerned. Thy just use rather more function pointers than before. Tested
on i386 and (with a new host driver) acorn32. Compiled on several other
affected architectures.


# 1.125 14-Feb-2004 bjh21

Add a new MI attribute, pckbc_machdep_cnattach, and change pckbc_cnattach()
to only call pckbc_machdep_cnattach() if this is present. This allows
pckbc_machdep_cnattach() to be omitted entirely on most ports, where it only
returns ENXIO anyway.

The devices with this attribute at the moment are pc(4) on i386 and bebox, and
pckbc on sparc, where pckbc_machdep_cnattach() mysteriously returns 0 rather
than ENXIO.


# 1.124 15-Nov-2003 bouyer

Commit changes proposed on tech-kern Thu, 6 Nov 2003
- factor out disksubr.c between sun3, sparc and sparc64. Keep the sun3
groveling code to find a NetBSD disklabel in the first sector (so that it
can find a label at the old sun3 LABELOFFSET) as a fallback is not
label at LABELOFFSET, or sun label is present.
- Fix the sun3 LABELOFFSET (was 64, but the kernel wrote the NetBSD label at
128)
- Make next68k disksubr.c always write a next-compatible disklabel.
- remove #ifdef __sparc__ hack from disklabel(8), and change it to issue
a DIOCWDINFO after writing the disklabel to the raw partition in the
-r/-I case (so that the kernel can convert the label if needed).


# 1.123 27-Jul-2003 thorpej

Since everyone uses clock_subr.c (or should, if they don't currently),
list it in conf/files instead of in every port's files.*.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.122 07-Dec-2002 pk

branches: 1.122.6;
Use MI versions of {set,rem}runqueue().


# 1.121 26-Oct-2002 jdolecek

now that mem_no is emitted by config(8), there is no reason to keep
copy of more or less identical iskmemdev() for every arch; move the function
to spec_vnop.c, and g/c machine-dependant copies


Revision tags: kqueue-aftermerge kqueue-beforemerge
# 1.120 21-Oct-2002 uwe

Correct zstty interface attribute (cf files.sparc64 1.69).
Comment out unused kbd_tty and ms_tty attachments.


# 1.119 15-Oct-2002 jdc

Add audioamd at obio attachment. Now we have working audio on 4/600's :

audioamd0 at obio0 slot 0 offset 0x500000 level 13 softpri 4
audio0 at audioamd0: full duplex


# 1.118 03-Oct-2002 uwe

Refactor kbd and mouse drivers so that they can use different middle
layers. Common middle layer shared by kbd_zs and sunkbd is moved into
the new file. Move shared config directives to files.sun and adjust
ports' files.* accordingly.

Need this to support console/Xsun on Mr.Coffee JavaStation.

Tested on sparc, sparc64 (by martin) and sun3 (by jdc).


Revision tags: kqueue-base
# 1.117 06-Sep-2002 gehenna

Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.

- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.

- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.


Revision tags: gehenna-devsw-base
# 1.116 25-Aug-2002 thorpej

Split the timer code up into Sun4/Sun4c, Sun4m, and MS-IIep bits, mostly
to make it more readable.


# 1.115 24-Aug-2002 thorpej

Add autoconfiguration support for the Sun4d "bootbus". Add a
zs @ bootbus attachment.


# 1.114 23-Aug-2002 thorpej

Add autoconfiguration glue for the Sun4d "cpu-unit". Each processor
board has 2 CPU units (one for each processor), one of which also has
a "bootbus", to which the serial ports, etc. are attached.

We can now probe/attach CPUs on a SPARCserver 1000.


# 1.113 17-Jul-2002 thorpej

Add SUN4D to the list of arch's in opt_sparc_arch.h.


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.112 22-Apr-2002 augustss

branches: 1.112.2;
Rename the audio "bus" attribute audiobus to avoid confusion with audio
device.


# 1.111 16-Apr-2002 thorpej

* Move the mii_bitbang attribute into dev/mii/files.mii
* Pull in dev/mii/files.mii from conf/files, rather than playing
the magic "files include order" dance in N machine-dependent
configuration definitions.


# 1.110 28-Mar-2002 uwe

Move ms-IIep PCIC driver into mspcic0 at msiiep0. msiiep0 now serves
as a stub bus that knows how to attach drivers for various functions
of PCIC.

This change is a follow up to timer0 at msiiep0 change, since all
children must share same attach arguments and so we no longer can
attach pci0 directly under msiiep0.


# 1.109 28-Mar-2002 pk

Untangle clock.c:
* put various time-of-day clock, timer and eeprom drivers in separate files
* avoid unnecessary overhead in interrupt handlers
* make the MSIIEP timer attach through the regular autoconf mechanisms


Revision tags: eeh-devprop-base
# 1.108 12-Mar-2002 uwe

Rework the driver to add EBus DMA support and improve APC DMA support.
Audio-related stuff is left almost intact.

* support audiocs at ebus playback and capture
tested on krups and u5 (thanks, martin)
* make first attempt at supporting audiocs at sbus capture
* nb: full-duplex is not tested
* while here, fix CSAUDIO_MONITOR_MUTE to be of CSAUDIO_MONITOR_CLASS
i.e. outputs.monitor.mute -> monitor.monitor.mute

Ok by pk, eeh.


Revision tags: newlock-base ifpoll-base
# 1.107 21-Jan-2002 jdolecek

branches: 1.107.4;
Switch to MI dev/md_root.c for archs which don't have any special
memory disk hooks (i.e. everything except atari).


# 1.106 11-Dec-2001 uwe

Add microSPARC-IIep support.


# 1.105 04-Dec-2001 lukem

s/defopt/defflag/


# 1.104 04-Dec-2001 darrenr

defopt "options SUN4*", put #define for each of SUN4, SUN4C, SUN4M and SUN4U
into opt_arch_sparc.h and include this wherever they are used.


# 1.103 28-Nov-2001 lukem

- convert usage of "defopt" to "defflag" where the relevant option does
not support a value (e.g., it's to be used as "options FOO" instead of
"options FOO=xxx"). options that take a value were converted to
defparam recently.
- minor whitespace & formatting cleanups


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.102 08-Jun-2001 mrg

branches: 1.102.2; 1.102.8;
split {sunos,svr4}_sigcode out for LKMs


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.101 21-Mar-2001 pk

Merge in4_cksum().


# 1.100 17-Jan-2001 fvdl

branches: 1.100.2;
Add machdep file for procfs. Currently only used for linux-style
/proc/cpuinfo (only active when procfs is mounted with -o linux).
For ports other than the i386 this currently produces an empty
string.


# 1.99 14-Nov-2000 kleink

Defopt BLINK.


# 1.98 11-Nov-2000 pk

Pull in the mk48txx and intersil7170 drivers.


# 1.97 12-Oct-2000 christos

add sunkbd.c and sunms.c; apparently these are now needed because
tty_conf.c brings them in.


# 1.96 23-Aug-2000 pk

Use common fb.c from sys/dev/sun.


# 1.95 22-Aug-2000 pk

Remove driver declarations that are now in /sys/dev/{sbus,sun}


# 1.94 03-Jul-2000 pk

The `si' driver has been transformed into an MI VME frontend.


# 1.93 26-Jun-2000 pk

Split si & sw drivers.


Revision tags: netbsd-1-5-base minoura-xpg4dl-base
# 1.92 05-May-2000 augustss

branches: 1.92.4;
Use correct file name for amd7930.


# 1.91 02-May-2000 augustss

Adapt to new am7930 driver. PR 10033 from Gregory McGarry.


# 1.90 19-Mar-2000 pk

kd.c should not depend on `kbd'.


# 1.89 14-Mar-2000 oster

Add the RAIDframe device major to the machine-dependent config files
so that the right entries get added to dev_name2blk[]. Needed for / on RAID.
(Whoops! I missed checking these in when adding the RAID_AUTOCONFIG stuff.)


# 1.88 25-Feb-2000 jdc

Add auxiotwo (Tadpole 3GX aux 2 register) entry.


# 1.87 25-Feb-2000 pk

Remove out-dated comment.


# 1.86 14-Feb-2000 thorpej

Allow arch-specific code to specify in4_cksum() like it can specify
in_cksum().


Revision tags: chs-ubc2-newbase wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.85 10-Aug-1999 christos

branches: 1.85.2;
s/(sbus | obio)/sbus for the sbus attachments. These were vestiges from
the old code.


# 1.84 10-Aug-1999 christos

split bwtwo driver in obio and sbus parts


# 1.83 09-Aug-1999 matt

add entries for the tadpole microcontroller (tctrl) and the
tadpole pcmcia controller (tpcic). Drivers for the former will
show up today, and the latter later this week or next weekend.


Revision tags: chs-ubc2-base
# 1.82 01-Aug-1999 matt

Initial stab at a P9100 console FB driver for the Tadpole 3GX.
It supports RASTERCONSOLE only and the colormap support is
broken (the hardware doesn't seem to be doing what the tech.
docs. say it should be doing). But it is usable as a console
(but with blue on white as the only color choice). I figured
I'd check it in since it is somewhat usable and someone else
might figure what I screwed up in the color map support.


# 1.81 30-Jul-1999 matt

Add preliminary support for the built-in modem on Tadpole 3GX/S
laptops. There is currently something wrong with the interrupt
code but it does attach and sense a 16550a. (anyways the built
in modem is only a 14.4Kb and you'd really want to use a PCMCIA
modem to get faster dialup rates).


# 1.80 28-Jul-1999 drochner

back out previous - there is really a "vmebus" attribute


# 1.79 28-Jul-1999 christos

make the vme stuff compile again; I am not sure this is correct as I don't
have the hardware to test, but it has been broken for 3+ weeks now. Hi
Mr. Drochner!


# 1.78 30-Jun-1999 drochner

update for new VME framework


# 1.77 20-Jun-1999 pk

Pull in `sparc/compat_13_machdep.c' for SunOS compatibility too.


# 1.76 07-Jun-1999 thorpej

Only declare block major numbers for devices which can be the root device.


# 1.75 14-May-1999 mrg

split the sun ms/kbd drivers into frontend/backend parts at the serial
interface border, so that other serial interfaces can be attached to the
ms/kbd. zero functional changes and mostly involves moving code around
a bit. tested on the SS2.

this is necessary to attach the PCI ultrasparc keyboard/mouse drivers.


# 1.74 12-May-1999 mrg

pull in files.aout


# 1.73 26-Apr-1999 ad

Update configuration to match `rasops' fixes and config glue.


# 1.72 17-Apr-1999 kleink

Inclusions are already relative to the root of the kernel source tree, no need
to traverse the path all the way up again.


# 1.71 13-Apr-1999 ad

Bring sparc/sparc64 fb code and kernel configuration into line with
rcons changes.


Revision tags: kame_14_19990705 kame_14_19990628 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.70 14-Feb-1999 pk

branches: 1.70.2; 1.70.4; 1.70.6;
Exit: obp.c; Enter: promlib.c & openfirm.c


Revision tags: kenh-if-detach-base
# 1.69 22-Nov-1998 pk

Add busses: PCMCIA, MII, ATA


Revision tags: chs-ubc-base
# 1.68 26-Sep-1998 pk

Add file obp.c


# 1.67 23-Sep-1998 pk

Make cgsix_sbus & cgsix_obio dependent on their respective attribute.s


# 1.66 18-Sep-1998 pk

Add `eccmemctl' device.


# 1.65 13-Sep-1998 pk

Add compat_13_machdep.c


# 1.64 30-Aug-1998 pk

Define floppy device major number.


# 1.63 29-Aug-1998 pk

Sbus `esp' and `le' front-ends now attach in `sys/dev/sbus/files.sbus'.


# 1.62 27-Aug-1998 mrg

move isp sbus attachment to dev/sbus


Revision tags: eeh-paddr_t-base
# 1.61 28-Jul-1998 pk

Magma driver has been moved to <dev/sbus>


# 1.60 28-Jul-1998 pk

`le' and `en' now attach to sbus (and lebuffer) in <dev/sbus>
Other `le' front-ends split into separate files.


# 1.59 27-Jul-1998 pk

Use <dev/sbus/files.sbus>.


# 1.58 27-Jul-1998 mrg

use lebuffer.c from dev/sbus.


# 1.57 21-Jul-1998 drochner

adapt to LANCE driver split


# 1.56 15-Jul-1998 thorpej

Remove the raw HYPERchannel kludge.


# 1.55 24-Jun-1998 jonathan

Split sparc am7930 driver into sparc attach and "MI" sys/dev/ic/am7930
chipset driver. Needs bus'ifying and register-access.


# 1.54 06-Jun-1998 thorpej

needs-flag'ize the power device.


# 1.53 20-May-1998 pk

Add entries for the magma SBus serial/parallel port driver.


# 1.52 18-Apr-1998 pk

Define `xbox'.


# 1.51 31-Mar-1998 pk

Accommodate cgsix bus-attach split.


# 1.50 21-Mar-1998 pk

Declare separate bus attachments for devices that can occur on multiple busses.


# 1.49 16-Feb-1998 thorpej

Remove "class" declarations, and add "devclass" declarations where
appropriate. Fix several inconsistencies between device class and
attributes. Mostly from Chris Demetriou.


# 1.48 25-Jan-1998 pk

VME device declaration changes:
- `vmes,vmel' => `vme'
- interrupt locator is the VME interrupt priority (`pri')


# 1.47 12-Jan-1998 thorpej

Update for changes to config.


# 1.46 23-Dec-1997 tv

Exclude /dev/fb code if no framebuffer is compiled into the system.
Adds a fb.h flag file with '#define NFB 1' if any such card is configured
in to the kernel.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.45 17-Oct-1997 gwr

Use common zs code.


Revision tags: thorpej-signal-base marc-pcmcia-base
# 1.44 31-Aug-1997 pk

Switch to MI kgdb code.


# 1.43 27-Aug-1997 bouyer

Merge scsipi branch in the mainline. This add support for ATAPI devices
(currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2
busses to which devices can attach (scsibus and atapibus). This needed to
change some include files and structure names in the low level scsi drivers.


# 1.42 22-Aug-1997 augustss

Make it possible for audio to attach to audioamd.


# 1.41 19-Aug-1997 augustss

Change the MI audio driver so it attaches to the MD driver in the
normal way. This requires adding a line to the config files to
get audio to work again.


Revision tags: marc-pcmcia-bp
# 1.40 07-Jul-1997 pk

branches: 1.40.2;
Raise max maxusers to 1024


# 1.39 18-May-1997 pk

branches: 1.39.2;
Define a `vme' device on `iommu' and allow `vmes' and `vmel' as sub-busses.


# 1.38 15-Mar-1997 is

New ARP system, supports IPv4 over any hardware link.

Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.


# 1.37 15-Mar-1997 christos

add emul.c


Revision tags: is-newarp-before-merge
# 1.36 12-Mar-1997 cgd

specs for ISP 10x0 (isp) driver Sbus attachment. From Matt Jacob.


# 1.35 27-Feb-1997 thorpej

esp carries ncr53c9x attribute


Revision tags: is-newarp-base
# 1.34 21-Jan-1997 thorpej

branches: 1.34.4;
"md" is declared in sys/conf/files, now.


# 1.33 28-Dec-1996 pk

rename: ramdisk => md


# 1.32 06-Dec-1996 pk

Declare lebuffer


# 1.31 12-Nov-1996 thorpej

Centralize the declaration of the "en" driver (Efficient Networks, Inc.
155Mb/sec ATM interface).


# 1.30 01-Nov-1996 pk

Declare device `audio' at sbus where it resides on Microsparc machines,
from Nick Sayer's PR#2908.


# 1.29 30-Sep-1996 abrown

Add cgfourteen driver as device "cgfourteen"


# 1.28 22-Jun-1996 chuck

sbus specific stuff for eni155s sbus atm card.
XXX: only works on sun4c, needs something better than vtophys() for
machines with IOMMUs(?).


# 1.27 20-Jun-1996 pk

`rd_root.c' => `md_root.c'


# 1.26 20-Jun-1996 pk

ramdisk stuff.


# 1.25 19-Jun-1996 pk

Add tcx definition.


# 1.24 29-May-1996 pk

Switch to `sys/dev/sun/event.c'.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
# 1.23 21-May-1996 pk

Remove the `espdma' special case; all `esp' related dma channels are now
called `dma' on all architectures. Note: `ledma' remains in place.

Also delete a couple of unneeded `needs-flag's in files.sparc.


# 1.22 16-May-1996 pk

Change attributes of `dma', `espdma' and `ledma' (the attributes on the latter
two didn't seem to make much sense anyway..) to allow `esp' devices to be
attached to one of `sbus', `dma' and `espdma'.

Remove the wildcarded `espdma?' and `ledma?' attachments of `esp' and `le'
respectively, in favour of `dma?' and `lebuffer?' (but the latter is not
yet implemented), which seems to better match reality: additional SBus
SCSI/Lance boards call themselves `dma' and `lebuffer'.


# 1.21 07-May-1996 thorpej

Make the MI LANCE driver standalone, and use cfattach to resolve
naming conflicts between bus attachments on ports that can have
multiple instances of the LANCE.


# 1.20 11-Apr-1996 thorpej

If the power device is configured, don't forget to compile the driver.
Also, add some whitespace for readability.


# 1.19 04-Apr-1996 pk

Include fd.c if (fdc | fd), so we're not obliged to define a device
at fdc.


# 1.18 31-Mar-1996 pk

sun4m device definitions and bus structure.


# 1.17 17-Mar-1996 cgd

adjust to deal with expression support for optional file specs


# 1.16 17-Mar-1996 thorpej

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.


# 1.15 02-Mar-1996 pk

Add ns_cksum.


# 1.14 27-Feb-1996 thorpej

First-cut support for P4 framebuffers. Currently supports P4 variants
of bwtwo, cgfour, cgsix, and cgeight. Includes support for attaching
the overlay plane of the cgfour and cgeight as a bwtwo instance (a'la
SunOS).

P4 register descriptions, cgfour driver, and cgeight driver partially
derived from OpenBSD.

This code may still need polishing.


# 1.13 01-Jan-1996 thorpej

"si" and "sw" now have the ncr5380sbc attribute.


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.12 05-Oct-1995 pk

include `files.rcons'.


# 1.11 25-Sep-1995 chuck

add "xy" xylogics 450/451 config stuff


# 1.10 17-Sep-1995 pk

Remove rcons lines.
Add cgtwo.


# 1.9 05-Sep-1995 pk

Add `sw' scsi adapter on obio (per Jason Thorpe, PR#1422).


# 1.8 29-Aug-1995 pk

Define bwtwo at obio & vme (from Jason Thorpe).


# 1.7 08-Jul-1995 pk

si scsi driver configs.


# 1.6 26-Jun-1995 pk

xd definitions, from Chuck Cranor.


# 1.5 02-Jun-1995 pk

Update SCSI decls.


# 1.4 29-May-1995 pk

eeprom device (from Jason Thorpe).


# 1.3 08-May-1995 christos

Added sunos_machdep.c; from Matthew Green


# 1.2 28-Apr-1995 cgd

rename files files for new config/config.old naming


# 1.1 02-Oct-1993 deraadt

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