History log of /netbsd-current/sys/arch/macppc/conf/files.macppc
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.123 10-Sep-2021 macallan

this driver allows to read the speeds of fans controlled via mac-io/fans/*
found in some G5, for example my 7,3
based on guesswork and observation


# 1.122 03-Sep-2021 macallan

switch smu to common fan control code


Revision tags: thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base thorpej-i2c-spi-conf-base
# 1.121 27-Jul-2021 macallan

branches: 1.121.6;
first step towards abstracting thermal zone management out of the fcu driver
( and eventually, the smu driver )
todo:
- add sysctl()s to set zone parameters
- handle envsys
- adapt smu


# 1.120 27-Jul-2021 macallan

move the fcu driver into arch/macppc where it belongs


# 1.119 18-Jun-2021 macallan

defflag LMU_DEBUG and PSOC_DEBUG


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.118 12-May-2021 thorpej

- Define a device call for PCI bus instances to fetch a direct child's
device handle given the device's device/function #s (extracted from
a pcitag_t). Use it to associate the handle with the child device
at config_found() time.
- Implement this device call for ACPI and OpenFirmware.
- Enable the OpenFirmware variant for evbarm FDT, macppc, ofppc, sparc64.
- Obsolete acpi_device_register(); it is no longer needed.
- Obsolete setting the OpenFirmware handle in PCI devices in the
sparc64 device_register(); it is no longer needed.


Revision tags: cjep_staticlib_x-base
# 1.117 01-May-2021 thorpej

branches: 1.117.2;
Remove unnecessary interface attributes from "smu".


# 1.116 24-Apr-2021 thorpej

branches: 1.116.2;
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.115 08-Aug-2020 macallan

branches: 1.115.4;
add support for the onewire bus found in some macs, namely Quicksilver.
This can be used to read the EEPROM content from Apple Pro speakers, or to
hook up other onewire devices.


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1
# 1.114 10-Jan-2020 macallan

add driver for the ambient light sensor / keyboard light controller found in
PowerBook5,6 and probably others


# 1.113 09-Jan-2020 macallan

defflag KI2C_DEBUG


Revision tags: ad-namecache-base phil-wifi-20191119
# 1.112 01-Nov-2019 macallan

branches: 1.112.2;
the beginning of a driver for the 'Psoc' fan controller found in my 1GHz
TiBook. So far it does:
- initialize the fan controller via OF
- report temperatures to envsys
there is no documentation, only guesswork from looking at OF methods

With this my TiBook doesn't seem to overheat anymore.


Revision tags: netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.111 08-May-2019 isaki

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c


Revision tags: isaki-audio2-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 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.110 02-May-2018 macallan

branches: 1.110.2; 1.110.4;
don't pull in pic_u3_ht with uninorth - it's part of ibmcpc


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422
# 1.109 20-Apr-2018 macallan

overhaul SMU i2c handling:
- get rid of the special smuiicbus, use generic i2cbus
- use shifted i2c addresses like everyone else
- use direct config
with this generic i2c drivers should work on the smu's i2c bus.


Revision tags: pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.108 04-Mar-2018 christos

branches: 1.108.2;
remove 'define foo {}' for non-bus-like devices


# 1.107 26-Feb-2018 sevan

Remove support for macofcons(4), it's not actually possible to build a kernel
with it enabled - See PR port-macppc/53004 and it may have further problems even
so.
From <macallan>:
"There is some early console code that uses OF output but it causes problems
when we get close to MMU setup - I think it can go, it hasn't been enabled in
any config in at least a decade as far as I know."


# 1.106 18-Dec-2017 skrll

Generalise FDT and OFW


Revision tags: tls-maxphys-base-20171202
# 1.105 22-Sep-2017 macallan

no more special attachment for dbcool, deq attaches to iic now


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base
# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


# 1.122 03-Sep-2021 macallan

switch smu to common fan control code


Revision tags: thorpej-i2c-spi-conf2-base thorpej-futex2-base thorpej-cfargs2-base thorpej-i2c-spi-conf-base
# 1.121 27-Jul-2021 macallan

branches: 1.121.6;
first step towards abstracting thermal zone management out of the fcu driver
( and eventually, the smu driver )
todo:
- add sysctl()s to set zone parameters
- handle envsys
- adapt smu


# 1.120 27-Jul-2021 macallan

move the fcu driver into arch/macppc where it belongs


# 1.119 18-Jun-2021 macallan

defflag LMU_DEBUG and PSOC_DEBUG


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.118 12-May-2021 thorpej

- Define a device call for PCI bus instances to fetch a direct child's
device handle given the device's device/function #s (extracted from
a pcitag_t). Use it to associate the handle with the child device
at config_found() time.
- Implement this device call for ACPI and OpenFirmware.
- Enable the OpenFirmware variant for evbarm FDT, macppc, ofppc, sparc64.
- Obsolete acpi_device_register(); it is no longer needed.
- Obsolete setting the OpenFirmware handle in PCI devices in the
sparc64 device_register(); it is no longer needed.


Revision tags: cjep_staticlib_x-base
# 1.117 01-May-2021 thorpej

branches: 1.117.2;
Remove unnecessary interface attributes from "smu".


# 1.116 24-Apr-2021 thorpej

branches: 1.116.2;
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.115 08-Aug-2020 macallan

branches: 1.115.4;
add support for the onewire bus found in some macs, namely Quicksilver.
This can be used to read the EEPROM content from Apple Pro speakers, or to
hook up other onewire devices.


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1
# 1.114 10-Jan-2020 macallan

add driver for the ambient light sensor / keyboard light controller found in
PowerBook5,6 and probably others


# 1.113 09-Jan-2020 macallan

defflag KI2C_DEBUG


Revision tags: ad-namecache-base phil-wifi-20191119
# 1.112 01-Nov-2019 macallan

branches: 1.112.2;
the beginning of a driver for the 'Psoc' fan controller found in my 1GHz
TiBook. So far it does:
- initialize the fan controller via OF
- report temperatures to envsys
there is no documentation, only guesswork from looking at OF methods

With this my TiBook doesn't seem to overheat anymore.


Revision tags: netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.111 08-May-2019 isaki

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c


Revision tags: isaki-audio2-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 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.110 02-May-2018 macallan

branches: 1.110.2; 1.110.4;
don't pull in pic_u3_ht with uninorth - it's part of ibmcpc


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422
# 1.109 20-Apr-2018 macallan

overhaul SMU i2c handling:
- get rid of the special smuiicbus, use generic i2cbus
- use shifted i2c addresses like everyone else
- use direct config
with this generic i2c drivers should work on the smu's i2c bus.


Revision tags: pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.108 04-Mar-2018 christos

branches: 1.108.2;
remove 'define foo {}' for non-bus-like devices


# 1.107 26-Feb-2018 sevan

Remove support for macofcons(4), it's not actually possible to build a kernel
with it enabled - See PR port-macppc/53004 and it may have further problems even
so.
From <macallan>:
"There is some early console code that uses OF output but it causes problems
when we get close to MMU setup - I think it can go, it hasn't been enabled in
any config in at least a decade as far as I know."


# 1.106 18-Dec-2017 skrll

Generalise FDT and OFW


Revision tags: tls-maxphys-base-20171202
# 1.105 22-Sep-2017 macallan

no more special attachment for dbcool, deq attaches to iic now


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base
# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


# 1.121 27-Jul-2021 macallan

first step towards abstracting thermal zone management out of the fcu driver
( and eventually, the smu driver )
todo:
- add sysctl()s to set zone parameters
- handle envsys
- adapt smu


# 1.120 27-Jul-2021 macallan

move the fcu driver into arch/macppc where it belongs


# 1.119 18-Jun-2021 macallan

defflag LMU_DEBUG and PSOC_DEBUG


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 thorpej-i2c-spi-conf-base
# 1.118 12-May-2021 thorpej

- Define a device call for PCI bus instances to fetch a direct child's
device handle given the device's device/function #s (extracted from
a pcitag_t). Use it to associate the handle with the child device
at config_found() time.
- Implement this device call for ACPI and OpenFirmware.
- Enable the OpenFirmware variant for evbarm FDT, macppc, ofppc, sparc64.
- Obsolete acpi_device_register(); it is no longer needed.
- Obsolete setting the OpenFirmware handle in PCI devices in the
sparc64 device_register(); it is no longer needed.


Revision tags: cjep_staticlib_x-base
# 1.117 01-May-2021 thorpej

branches: 1.117.2;
Remove unnecessary interface attributes from "smu".


# 1.116 24-Apr-2021 thorpej

branches: 1.116.2;
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.115 08-Aug-2020 macallan

branches: 1.115.4;
add support for the onewire bus found in some macs, namely Quicksilver.
This can be used to read the EEPROM content from Apple Pro speakers, or to
hook up other onewire devices.


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1
# 1.114 10-Jan-2020 macallan

add driver for the ambient light sensor / keyboard light controller found in
PowerBook5,6 and probably others


# 1.113 09-Jan-2020 macallan

defflag KI2C_DEBUG


Revision tags: ad-namecache-base phil-wifi-20191119
# 1.112 01-Nov-2019 macallan

branches: 1.112.2;
the beginning of a driver for the 'Psoc' fan controller found in my 1GHz
TiBook. So far it does:
- initialize the fan controller via OF
- report temperatures to envsys
there is no documentation, only guesswork from looking at OF methods

With this my TiBook doesn't seem to overheat anymore.


Revision tags: netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.111 08-May-2019 isaki

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c


Revision tags: isaki-audio2-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 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.110 02-May-2018 macallan

branches: 1.110.2; 1.110.4;
don't pull in pic_u3_ht with uninorth - it's part of ibmcpc


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422
# 1.109 20-Apr-2018 macallan

overhaul SMU i2c handling:
- get rid of the special smuiicbus, use generic i2cbus
- use shifted i2c addresses like everyone else
- use direct config
with this generic i2c drivers should work on the smu's i2c bus.


Revision tags: pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.108 04-Mar-2018 christos

branches: 1.108.2;
remove 'define foo {}' for non-bus-like devices


# 1.107 26-Feb-2018 sevan

Remove support for macofcons(4), it's not actually possible to build a kernel
with it enabled - See PR port-macppc/53004 and it may have further problems even
so.
From <macallan>:
"There is some early console code that uses OF output but it causes problems
when we get close to MMU setup - I think it can go, it hasn't been enabled in
any config in at least a decade as far as I know."


# 1.106 18-Dec-2017 skrll

Generalise FDT and OFW


Revision tags: tls-maxphys-base-20171202
# 1.105 22-Sep-2017 macallan

no more special attachment for dbcool, deq attaches to iic now


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base
# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


# 1.119 18-Jun-2021 macallan

defflag LMU_DEBUG and PSOC_DEBUG


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 thorpej-i2c-spi-conf-base
# 1.118 12-May-2021 thorpej

- Define a device call for PCI bus instances to fetch a direct child's
device handle given the device's device/function #s (extracted from
a pcitag_t). Use it to associate the handle with the child device
at config_found() time.
- Implement this device call for ACPI and OpenFirmware.
- Enable the OpenFirmware variant for evbarm FDT, macppc, ofppc, sparc64.
- Obsolete acpi_device_register(); it is no longer needed.
- Obsolete setting the OpenFirmware handle in PCI devices in the
sparc64 device_register(); it is no longer needed.


Revision tags: cjep_staticlib_x-base
# 1.117 01-May-2021 thorpej

branches: 1.117.2;
Remove unnecessary interface attributes from "smu".


# 1.116 24-Apr-2021 thorpej

branches: 1.116.2;
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.115 08-Aug-2020 macallan

branches: 1.115.4;
add support for the onewire bus found in some macs, namely Quicksilver.
This can be used to read the EEPROM content from Apple Pro speakers, or to
hook up other onewire devices.


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1
# 1.114 10-Jan-2020 macallan

add driver for the ambient light sensor / keyboard light controller found in
PowerBook5,6 and probably others


# 1.113 09-Jan-2020 macallan

defflag KI2C_DEBUG


Revision tags: ad-namecache-base phil-wifi-20191119
# 1.112 01-Nov-2019 macallan

branches: 1.112.2;
the beginning of a driver for the 'Psoc' fan controller found in my 1GHz
TiBook. So far it does:
- initialize the fan controller via OF
- report temperatures to envsys
there is no documentation, only guesswork from looking at OF methods

With this my TiBook doesn't seem to overheat anymore.


Revision tags: netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.111 08-May-2019 isaki

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c


Revision tags: isaki-audio2-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 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.110 02-May-2018 macallan

branches: 1.110.2; 1.110.4;
don't pull in pic_u3_ht with uninorth - it's part of ibmcpc


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422
# 1.109 20-Apr-2018 macallan

overhaul SMU i2c handling:
- get rid of the special smuiicbus, use generic i2cbus
- use shifted i2c addresses like everyone else
- use direct config
with this generic i2c drivers should work on the smu's i2c bus.


Revision tags: pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.108 04-Mar-2018 christos

branches: 1.108.2;
remove 'define foo {}' for non-bus-like devices


# 1.107 26-Feb-2018 sevan

Remove support for macofcons(4), it's not actually possible to build a kernel
with it enabled - See PR port-macppc/53004 and it may have further problems even
so.
From <macallan>:
"There is some early console code that uses OF output but it causes problems
when we get close to MMU setup - I think it can go, it hasn't been enabled in
any config in at least a decade as far as I know."


# 1.106 18-Dec-2017 skrll

Generalise FDT and OFW


Revision tags: tls-maxphys-base-20171202
# 1.105 22-Sep-2017 macallan

no more special attachment for dbcool, deq attaches to iic now


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base
# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


Revision tags: thorpej-i2c-spi-conf-base
# 1.118 12-May-2021 thorpej

- Define a device call for PCI bus instances to fetch a direct child's
device handle given the device's device/function #s (extracted from
a pcitag_t). Use it to associate the handle with the child device
at config_found() time.
- Implement this device call for ACPI and OpenFirmware.
- Enable the OpenFirmware variant for evbarm FDT, macppc, ofppc, sparc64.
- Obsolete acpi_device_register(); it is no longer needed.
- Obsolete setting the OpenFirmware handle in PCI devices in the
sparc64 device_register(); it is no longer needed.


Revision tags: cjep_staticlib_x-base
# 1.117 01-May-2021 thorpej

Remove unnecessary interface attributes from "smu".


# 1.116 24-Apr-2021 thorpej

branches: 1.116.2;
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.115 08-Aug-2020 macallan

branches: 1.115.4;
add support for the onewire bus found in some macs, namely Quicksilver.
This can be used to read the EEPROM content from Apple Pro speakers, or to
hook up other onewire devices.


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1
# 1.114 10-Jan-2020 macallan

add driver for the ambient light sensor / keyboard light controller found in
PowerBook5,6 and probably others


# 1.113 09-Jan-2020 macallan

defflag KI2C_DEBUG


Revision tags: ad-namecache-base phil-wifi-20191119
# 1.112 01-Nov-2019 macallan

branches: 1.112.2;
the beginning of a driver for the 'Psoc' fan controller found in my 1GHz
TiBook. So far it does:
- initialize the fan controller via OF
- report temperatures to envsys
there is no documentation, only guesswork from looking at OF methods

With this my TiBook doesn't seem to overheat anymore.


Revision tags: netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.111 08-May-2019 isaki

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c


Revision tags: isaki-audio2-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 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.110 02-May-2018 macallan

branches: 1.110.2; 1.110.4;
don't pull in pic_u3_ht with uninorth - it's part of ibmcpc


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422
# 1.109 20-Apr-2018 macallan

overhaul SMU i2c handling:
- get rid of the special smuiicbus, use generic i2cbus
- use shifted i2c addresses like everyone else
- use direct config
with this generic i2c drivers should work on the smu's i2c bus.


Revision tags: pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.108 04-Mar-2018 christos

branches: 1.108.2;
remove 'define foo {}' for non-bus-like devices


# 1.107 26-Feb-2018 sevan

Remove support for macofcons(4), it's not actually possible to build a kernel
with it enabled - See PR port-macppc/53004 and it may have further problems even
so.
From <macallan>:
"There is some early console code that uses OF output but it causes problems
when we get close to MMU setup - I think it can go, it hasn't been enabled in
any config in at least a decade as far as I know."


# 1.106 18-Dec-2017 skrll

Generalise FDT and OFW


Revision tags: tls-maxphys-base-20171202
# 1.105 22-Sep-2017 macallan

no more special attachment for dbcool, deq attaches to iic now


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base
# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


# 1.117 01-May-2021 thorpej

Remove unnecessary interface attributes from "smu".


Revision tags: thorpej-i2c-spi-conf-base
# 1.116 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.115 08-Aug-2020 macallan

branches: 1.115.4;
add support for the onewire bus found in some macs, namely Quicksilver.
This can be used to read the EEPROM content from Apple Pro speakers, or to
hook up other onewire devices.


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1
# 1.114 10-Jan-2020 macallan

add driver for the ambient light sensor / keyboard light controller found in
PowerBook5,6 and probably others


# 1.113 09-Jan-2020 macallan

defflag KI2C_DEBUG


Revision tags: ad-namecache-base phil-wifi-20191119
# 1.112 01-Nov-2019 macallan

branches: 1.112.2;
the beginning of a driver for the 'Psoc' fan controller found in my 1GHz
TiBook. So far it does:
- initialize the fan controller via OF
- report temperatures to envsys
there is no documentation, only guesswork from looking at OF methods

With this my TiBook doesn't seem to overheat anymore.


Revision tags: netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.111 08-May-2019 isaki

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c


Revision tags: isaki-audio2-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 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.110 02-May-2018 macallan

branches: 1.110.2; 1.110.4;
don't pull in pic_u3_ht with uninorth - it's part of ibmcpc


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422
# 1.109 20-Apr-2018 macallan

overhaul SMU i2c handling:
- get rid of the special smuiicbus, use generic i2cbus
- use shifted i2c addresses like everyone else
- use direct config
with this generic i2c drivers should work on the smu's i2c bus.


Revision tags: pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.108 04-Mar-2018 christos

branches: 1.108.2;
remove 'define foo {}' for non-bus-like devices


# 1.107 26-Feb-2018 sevan

Remove support for macofcons(4), it's not actually possible to build a kernel
with it enabled - See PR port-macppc/53004 and it may have further problems even
so.
From <macallan>:
"There is some early console code that uses OF output but it causes problems
when we get close to MMU setup - I think it can go, it hasn't been enabled in
any config in at least a decade as far as I know."


# 1.106 18-Dec-2017 skrll

Generalise FDT and OFW


Revision tags: tls-maxphys-base-20171202
# 1.105 22-Sep-2017 macallan

no more special attachment for dbcool, deq attaches to iic now


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base
# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


# 1.116 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.115 08-Aug-2020 macallan

branches: 1.115.4;
add support for the onewire bus found in some macs, namely Quicksilver.
This can be used to read the EEPROM content from Apple Pro speakers, or to
hook up other onewire devices.


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1
# 1.114 10-Jan-2020 macallan

add driver for the ambient light sensor / keyboard light controller found in
PowerBook5,6 and probably others


# 1.113 09-Jan-2020 macallan

defflag KI2C_DEBUG


Revision tags: ad-namecache-base phil-wifi-20191119
# 1.112 01-Nov-2019 macallan

branches: 1.112.2;
the beginning of a driver for the 'Psoc' fan controller found in my 1GHz
TiBook. So far it does:
- initialize the fan controller via OF
- report temperatures to envsys
there is no documentation, only guesswork from looking at OF methods

With this my TiBook doesn't seem to overheat anymore.


Revision tags: netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.111 08-May-2019 isaki

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c


Revision tags: isaki-audio2-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 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.110 02-May-2018 macallan

branches: 1.110.2; 1.110.4;
don't pull in pic_u3_ht with uninorth - it's part of ibmcpc


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422
# 1.109 20-Apr-2018 macallan

overhaul SMU i2c handling:
- get rid of the special smuiicbus, use generic i2cbus
- use shifted i2c addresses like everyone else
- use direct config
with this generic i2c drivers should work on the smu's i2c bus.


Revision tags: pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.108 04-Mar-2018 christos

branches: 1.108.2;
remove 'define foo {}' for non-bus-like devices


# 1.107 26-Feb-2018 sevan

Remove support for macofcons(4), it's not actually possible to build a kernel
with it enabled - See PR port-macppc/53004 and it may have further problems even
so.
From <macallan>:
"There is some early console code that uses OF output but it causes problems
when we get close to MMU setup - I think it can go, it hasn't been enabled in
any config in at least a decade as far as I know."


# 1.106 18-Dec-2017 skrll

Generalise FDT and OFW


Revision tags: tls-maxphys-base-20171202
# 1.105 22-Sep-2017 macallan

no more special attachment for dbcool, deq attaches to iic now


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base
# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


# 1.115 08-Aug-2020 macallan

add support for the onewire bus found in some macs, namely Quicksilver.
This can be used to read the EEPROM content from Apple Pro speakers, or to
hook up other onewire devices.


Revision tags: bouyer-xenpvh-base2 phil-wifi-20200421 bouyer-xenpvh-base1 phil-wifi-20200411 bouyer-xenpvh-base is-mlppp-base phil-wifi-20200406 ad-namecache-base3 ad-namecache-base2 ad-namecache-base1
# 1.114 10-Jan-2020 macallan

add driver for the ambient light sensor / keyboard light controller found in
PowerBook5,6 and probably others


# 1.113 09-Jan-2020 macallan

defflag KI2C_DEBUG


Revision tags: ad-namecache-base phil-wifi-20191119
# 1.112 01-Nov-2019 macallan

branches: 1.112.2;
the beginning of a driver for the 'Psoc' fan controller found in my 1GHz
TiBook. So far it does:
- initialize the fan controller via OF
- report temperatures to envsys
there is no documentation, only guesswork from looking at OF methods

With this my TiBook doesn't seem to overheat anymore.


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.111 08-May-2019 isaki

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c


Revision tags: isaki-audio2-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 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.110 02-May-2018 macallan

branches: 1.110.2; 1.110.4;
don't pull in pic_u3_ht with uninorth - it's part of ibmcpc


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422
# 1.109 20-Apr-2018 macallan

overhaul SMU i2c handling:
- get rid of the special smuiicbus, use generic i2cbus
- use shifted i2c addresses like everyone else
- use direct config
with this generic i2c drivers should work on the smu's i2c bus.


Revision tags: pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.108 04-Mar-2018 christos

branches: 1.108.2;
remove 'define foo {}' for non-bus-like devices


# 1.107 26-Feb-2018 sevan

Remove support for macofcons(4), it's not actually possible to build a kernel
with it enabled - See PR port-macppc/53004 and it may have further problems even
so.
From <macallan>:
"There is some early console code that uses OF output but it causes problems
when we get close to MMU setup - I think it can go, it hasn't been enabled in
any config in at least a decade as far as I know."


# 1.106 18-Dec-2017 skrll

Generalise FDT and OFW


Revision tags: tls-maxphys-base-20171202
# 1.105 22-Sep-2017 macallan

no more special attachment for dbcool, deq attaches to iic now


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base
# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


# 1.114 10-Jan-2020 macallan

add driver for the ambient light sensor / keyboard light controller found in
PowerBook5,6 and probably others


# 1.113 09-Jan-2020 macallan

defflag KI2C_DEBUG


Revision tags: ad-namecache-base phil-wifi-20191119
# 1.112 01-Nov-2019 macallan

the beginning of a driver for the 'Psoc' fan controller found in my 1GHz
TiBook. So far it does:
- initialize the fan controller via OF
- report temperatures to envsys
there is no documentation, only guesswork from looking at OF methods

With this my TiBook doesn't seem to overheat anymore.


Revision tags: netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.111 08-May-2019 isaki

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c


Revision tags: isaki-audio2-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 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.110 02-May-2018 macallan

branches: 1.110.2; 1.110.4;
don't pull in pic_u3_ht with uninorth - it's part of ibmcpc


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422
# 1.109 20-Apr-2018 macallan

overhaul SMU i2c handling:
- get rid of the special smuiicbus, use generic i2cbus
- use shifted i2c addresses like everyone else
- use direct config
with this generic i2c drivers should work on the smu's i2c bus.


Revision tags: pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.108 04-Mar-2018 christos

branches: 1.108.2;
remove 'define foo {}' for non-bus-like devices


# 1.107 26-Feb-2018 sevan

Remove support for macofcons(4), it's not actually possible to build a kernel
with it enabled - See PR port-macppc/53004 and it may have further problems even
so.
From <macallan>:
"There is some early console code that uses OF output but it causes problems
when we get close to MMU setup - I think it can go, it hasn't been enabled in
any config in at least a decade as far as I know."


# 1.106 18-Dec-2017 skrll

Generalise FDT and OFW


Revision tags: tls-maxphys-base-20171202
# 1.105 22-Sep-2017 macallan

no more special attachment for dbcool, deq attaches to iic now


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base
# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


# 1.112 01-Nov-2019 macallan

the beginning of a driver for the 'Psoc' fan controller found in my 1GHz
TiBook. So far it does:
- initialize the fan controller via OF
- report temperatures to envsys
there is no documentation, only guesswork from looking at OF methods

With this my TiBook doesn't seem to overheat anymore.


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.111 08-May-2019 isaki

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c


Revision tags: isaki-audio2-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 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.110 02-May-2018 macallan

branches: 1.110.2; 1.110.4;
don't pull in pic_u3_ht with uninorth - it's part of ibmcpc


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422
# 1.109 20-Apr-2018 macallan

overhaul SMU i2c handling:
- get rid of the special smuiicbus, use generic i2cbus
- use shifted i2c addresses like everyone else
- use direct config
with this generic i2c drivers should work on the smu's i2c bus.


Revision tags: pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.108 04-Mar-2018 christos

branches: 1.108.2;
remove 'define foo {}' for non-bus-like devices


# 1.107 26-Feb-2018 sevan

Remove support for macofcons(4), it's not actually possible to build a kernel
with it enabled - See PR port-macppc/53004 and it may have further problems even
so.
From <macallan>:
"There is some early console code that uses OF output but it causes problems
when we get close to MMU setup - I think it can go, it hasn't been enabled in
any config in at least a decade as far as I know."


# 1.106 18-Dec-2017 skrll

Generalise FDT and OFW


Revision tags: tls-maxphys-base-20171202
# 1.105 22-Sep-2017 macallan

no more special attachment for dbcool, deq attaches to iic now


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base
# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


# 1.111 08-May-2019 isaki

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c


Revision tags: isaki-audio2-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 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.110 02-May-2018 macallan

branches: 1.110.4;
don't pull in pic_u3_ht with uninorth - it's part of ibmcpc


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422
# 1.109 20-Apr-2018 macallan

overhaul SMU i2c handling:
- get rid of the special smuiicbus, use generic i2cbus
- use shifted i2c addresses like everyone else
- use direct config
with this generic i2c drivers should work on the smu's i2c bus.


Revision tags: pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.108 04-Mar-2018 christos

branches: 1.108.2;
remove 'define foo {}' for non-bus-like devices


# 1.107 26-Feb-2018 sevan

Remove support for macofcons(4), it's not actually possible to build a kernel
with it enabled - See PR port-macppc/53004 and it may have further problems even
so.
From <macallan>:
"There is some early console code that uses OF output but it causes problems
when we get close to MMU setup - I think it can go, it hasn't been enabled in
any config in at least a decade as far as I know."


# 1.106 18-Dec-2017 skrll

Generalise FDT and OFW


Revision tags: tls-maxphys-base-20171202
# 1.105 22-Sep-2017 macallan

no more special attachment for dbcool, deq attaches to iic now


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base
# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


Revision tags: isaki-audio2-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 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.110 02-May-2018 macallan

don't pull in pic_u3_ht with uninorth - it's part of ibmcpc


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422
# 1.109 20-Apr-2018 macallan

overhaul SMU i2c handling:
- get rid of the special smuiicbus, use generic i2cbus
- use shifted i2c addresses like everyone else
- use direct config
with this generic i2c drivers should work on the smu's i2c bus.


Revision tags: pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.108 04-Mar-2018 christos

branches: 1.108.2;
remove 'define foo {}' for non-bus-like devices


# 1.107 26-Feb-2018 sevan

Remove support for macofcons(4), it's not actually possible to build a kernel
with it enabled - See PR port-macppc/53004 and it may have further problems even
so.
From <macallan>:
"There is some early console code that uses OF output but it causes problems
when we get close to MMU setup - I think it can go, it hasn't been enabled in
any config in at least a decade as far as I know."


# 1.106 18-Dec-2017 skrll

Generalise FDT and OFW


Revision tags: tls-maxphys-base-20171202
# 1.105 22-Sep-2017 macallan

no more special attachment for dbcool, deq attaches to iic now


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base
# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


# 1.106 18-Dec-2017 skrll

Generalise FDT and OFW


Revision tags: tls-maxphys-base-20171202
# 1.105 22-Sep-2017 macallan

no more special attachment for dbcool, deq attaches to iic now


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base
# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: matt-nb8-mediatek-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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


Revision tags: 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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


# 1.105 22-Sep-2017 macallan

no more special attachment for dbcool, deq attaches to iic now


Revision tags: nick-nhusb-base-20170825 perseant-stdc-iso10646-base
# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: 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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


Revision tags: 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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


# 1.104 06-Jun-2017 macallan

SMU config goo


Revision tags: 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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


Revision tags: 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 netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.


Revision tags: 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
# 1.103 16-Jun-2016 macallan

make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...


# 1.102 10-Jun-2016 macallan

add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole


Revision tags: 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
# 1.101 11-Oct-2014 uebayasi

branches: 1.101.2;
Probably agp_apple is never used.


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 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.100 18-Apr-2013 macallan

support OpenPIC variant found in PowerMac G5s
from Phileas Fogg


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 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 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-base2 netbsd-6-base
# 1.99 24-Jan-2012 macallan

branches: 1.99.6;
drivers to support the onboard video circuitry found in for example the
Performa 6360


Revision tags: jmcneill-usbmp-pre-base2 jmcneill-usbmp-base jmcneill-audiomp3-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.98 13-Jul-2011 macallan

branches: 1.98.2; 1.98.6;
provide EDID blocks for hardware where we know the parameters but neither the
firmware nor DDC provide any. So far there's only a parameter block for the
PowerBook Pismo's built-in TFT, now Xorg works out of the box without config.
The same parameter block will probably do the right thing on Lombard, PDQ and
TFT-equipped Wallstreet PowerBooks.


# 1.97 22-Jun-2011 matt

Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE rmind-uvmplock-nbase cherry-xenmp-base jym-xensuspend-nbase uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base jruoho-x86intr-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base uebayasi-xip-base6 uebayasi-xip-base5 netbsd-5-1-RELEASE uebayasi-xip-base4 uebayasi-xip-base3 yamt-nfs-mp-base11 netbsd-5-1-RC4 matt-nb5-mips64-k15 uebayasi-xip-base2 yamt-nfs-mp-base10 netbsd-5-1-RC3 netbsd-5-1-RC2 uebayasi-xip-base1 netbsd-5-1-RC1 rmind-uvmplock-base yamt-nfs-mp-base9 uebayasi-xip-base netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 yamt-nfs-mp-base8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 yamt-nfs-mp-base7 netbsd-5-0-1-RELEASE jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 yamt-nfs-mp-base4 yamt-nfs-mp-base3 nick-hppapmap-base4 nick-hppapmap-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 nick-hppapmap-base2 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 haad-dm-base2 haad-nbase2 ad-audiomp2-base netbsd-5-base nick-hppapmap-base matt-mips64-base2 haad-dm-base1 wrstuden-revivesa-base-4 haad-dm-base mjf-devfs2-base
# 1.96 07-Oct-2008 pgoyette

Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.


# 1.95 02-Oct-2008 pgoyette

Add dbcool ki2c attachment for macppc


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.94 26-Aug-2008 macallan

let ibmcpc pull in openpic stuff


# 1.93 26-Aug-2008 macallan

add memory at mainbus, for spdmem


Revision tags: 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.92 20-Feb-2008 drochner

branches: 1.92.6; 1.92.10; 1.92.12; 1.92.16;
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: vmlocking2-base3 bouyer-xeni386-nbase yamt-kmem-base3 bouyer-xeni386-base mjf-devfs-base matt-armv6-base
# 1.91 11-Dec-2007 macallan

switch to majors.powerpc


Revision tags: cube-autoconf-base yamt-kmem-base2 yamt-kmem-base vmlocking2-base2 reinoud-bufcleanup-nbase vmlocking2-base1 vmlocking-nbase jmcneill-pm-base reinoud-bufcleanup-base
# 1.90 03-Dec-2007 ad

branches: 1.90.2; 1.90.4; 1.90.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.


# 1.89 26-Nov-2007 garbled

Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc. In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.


Revision tags: bouyer-xenamd64-base2 bouyer-xenamd64-base
# 1.88 17-Nov-2007 macallan

have uninorth and bandit pull in their resp. IPI support stuff


# 1.87 07-Nov-2007 garbled

Convert macppc to shared ofw_autoconf.c. Compile tested only.


Revision tags: jmcneill-base
# 1.86 25-Oct-2007 aymeric

branches: 1.86.2;
include bluetooth conf file


Revision tags: yamt-x86pmap-base4
# 1.85 17-Oct-2007 garbled

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 nick-csl-alignment-base matt-mips64-base yamt-idlelwp-base8 ppcoea-renovation-base mjf-ufs-trans-base vmlocking-base
# 1.84 12-Apr-2007 dogcow

branches: 1.84.2; 1.84.10; 1.84.12; 1.84.14; 1.84.16;
unb0rk config(1) of GENERIC and friends.


Revision tags: thorpej-atomic-base
# 1.83 26-Mar-2007 dogcow

fix build, after the moving around of the agp stuff


# 1.82 25-Mar-2007 macallan

remove some accidentially committed stuff :/


# 1.81 25-Mar-2007 macallan

add smartbat driver, defflag some debug stuff


Revision tags: ad-audiomp-base
# 1.80 15-Feb-2007 macallan

branches: 1.80.2; 1.80.6; 1.80.8; 1.80.10;
gah, fix botched merge in previous commit


# 1.79 15-Feb-2007 macallan

add battery at pmu


# 1.78 10-Feb-2007 macallan

add missing defflags from previous commits


Revision tags: post-newlock2-merge newlock2-nbase newlock2-base
# 1.77 17-Jan-2007 macallan

add pmu and cuda at obio


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 yamt-splraiseipl-base5 yamt-splraiseipl-base4 yamt-splraiseipl-base3 netbsd-4-base
# 1.76 08-Nov-2006 macallan

split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.


Revision tags: yamt-splraiseipl-base2 yamt-splraiseipl-base yamt-pdpolicy-base9 rpaulo-netinet-merge-pcb-base
# 1.75 07-Sep-2006 itohy

branches: 1.75.2; 1.75.4;
Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.


Revision tags: abandoned-netbsd-4-base yamt-pdpolicy-base8 yamt-pdpolicy-base7
# 1.74 05-Aug-2006 sanjayl

1st cut of Powermac G5 support (uses bridge mode).


Revision tags: yamt-pdpolicy-base6 chap-midi-nbase gdamore-uart-base yamt-pdpolicy-base5 chap-midi-base yamt-pdpolicy-base4 elad-kernelauth-base simonb-timecounters-base
# 1.73 04-Apr-2006 gdamore

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.


Revision tags: yamt-pdpolicy-base3 peter-altq-base yamt-pdpolicy-base2 yamt-pdpolicy-base yamt-uio_vmspace-base5
# 1.72 12-Feb-2006 macallan

branches: 1.72.2; 1.72.4; 1.72.6;
Add support for colour and virtual consoles


# 1.71 06-Feb-2006 jmmv

Include files.usb earlier so that "pbms at uhidbus" works.


# 1.70 05-Feb-2006 christos

glue for powerbook mouse.


# 1.69 27-Dec-2005 chs

branches: 1.69.2; 1.69.4; 1.69.6;
switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.


# 1.68 11-Dec-2005 christos

merge ktrace-lwp.


Revision tags: yamt-readahead-base3 yamt-readahead-base2 yamt-readahead-pervnode yamt-readahead-perfile yamt-readahead-base yamt-vop-base3 yamt-vop-base2 thorpej-vnode-attr-base yamt-vop-base ktrace-lwp-base
# 1.67 27-Sep-2005 macallan

fix a typo


# 1.66 27-Sep-2005 macallan

rename gpio -> macgpio to avoid conflicts with gpio framework


# 1.65 10-Aug-2005 macallan

added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c


# 1.64 25-Jun-2005 dyoung

branches: 1.64.2;
Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now. Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.


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 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 yamt-km-base4 netbsd-2-0-2-RELEASE yamt-km-base3 netbsd-3-base yamt-km-base2 yamt-km-base kent-audio2-base netbsd-2-0-1-RELEASE kent-audio1-beforemerge netbsd-2-base kent-audio1-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.63 25-Mar-2004 matt

Enable generic software interrupts on macppc.


# 1.62 20-Jan-2004 jdolecek

cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue


# 1.61 27-Dec-2003 grant

add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.


# 1.60 19-Nov-2003 matt

Add missing lpt entries.


# 1.59 13-Nov-2003 christos

we could have lpt at puc.


# 1.58 11-Jun-2003 hamajima

branches: 1.58.2;
Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.


# 1.57 05-Mar-2003 matt

Remove port-specific procfs_machdep.c (since they are all identical and
a better one resides in powerpc/powerpc/).


# 1.56 04-Mar-2003 soren

G/c old macppc grf entries.


Revision tags: nathanw_sa_before_merge fvdl_fs64_base gmcgarry_ctxsw_base gmcgarry_ucred_base nathanw_sa_base
# 1.55 30-Oct-2002 manu

Moved binary compatibility options from arch directory to cpu directory


# 1.54 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.53 13-Oct-2002 wiz

Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!


Revision tags: kqueue-base
# 1.52 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.51 18-Jun-2002 itojun

apm emulation, from openbsd


Revision tags: 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.50 22-Apr-2002 augustss

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


# 1.49 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.


Revision tags: eeh-devprop-base newlock-base
# 1.48 03-Mar-2002 nathanw

The cpu device now requires sysmon_envsys.


Revision tags: ifpoll-base
# 1.47 06-Jan-2002 dbj

add support for kgdb over zs


Revision tags: thorpej-mips-cache-base thorpej-devvp-base3 thorpej-devvp-base2 post-chs-ubcperf pre-chs-ubcperf thorpej-devvp-base
# 1.46 26-Aug-2001 matt

branches: 1.46.6;
Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports. Make
other mpc6xx ports use it. Add evcnts for mpc6xx traps.


# 1.45 03-Aug-2001 tsubai

Cosmetics.


# 1.44 24-Jun-2001 wiz

branches: 1.44.2;
Adapt to linux emul trap change.


# 1.43 08-Jun-2001 simonb

For ports that wire up pciide in compatibility mode, have
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.

Ports that don't need to do this no longer need to supply a
dummy function.


# 1.42 16-May-2001 tsubai

Add AirMac frontend.


Revision tags: thorpej_scsipi_beforemerge thorpej_scsipi_nbase thorpej_scsipi_base
# 1.41 27-Feb-2001 matt

branches: 1.41.2;
Add a gpio device to handle the gpio device & extint-gpio1
interrupt. (think ibook/powerbook)


# 1.40 18-Feb-2001 matt

Add devsw entries for "ld" (logical disks).


# 1.39 19-Jan-2001 manu

Added previously created files for powerpc Linux compatibility to the kernel
config system


# 1.38 17-Jan-2001 fvdl

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.37 15-Nov-2000 matt

back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c


# 1.36 10-Nov-2000 hannken

Pull in dev/i2o/files.i2o.


# 1.35 08-Nov-2000 tsubai

defopt L2CR_CONFIG.


# 1.34 05-Nov-2000 matt

Add files.ieee1394


# 1.33 29-Oct-2000 tsutsui

Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.


# 1.32 25-Aug-2000 tsubai

Add (experimental) awacs audio driver. Output (play) only.


Revision tags: netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.31 26-Mar-2000 tsubai

branches: 1.31.4;
esp declaration was moved to conf/files.


# 1.30 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.29 27-Feb-2000 tsubai

Add gmac. (commented out)


Revision tags: chs-ubc2-newbase
# 1.28 09-Feb-2000 tsubai

Use dev/rasops instead of dev/rcons.


# 1.27 03-Feb-2000 tsubai

* Split bandit and grackle.
* Add UniNorth support.

Now pcibus is attached like:
bandit0 at mainbus0
pci0 at bandit0 bus 0
...


# 1.26 25-Jan-2000 tsubai

Use MII device layer.
XXX still 100Mbps receive side is very slow...


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base fvdl-softdep-base
# 1.25 15-Oct-1999 tsubai

branches: 1.25.2;
Fix typo.


# 1.24 15-Oct-1999 tsubai

Define fdc, because dev/pcmcia needs it.


# 1.23 15-Oct-1999 haya

This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h


Revision tags: chs-ubc2-base
# 1.22 21-Jul-1999 tsubai

branches: 1.22.2;
media-bay CD support.


# 1.21 12-Jul-1999 tsubai

Add PowerBook LCD brightness and speaker volume button device.
Only brightness works for now.


# 1.20 07-Jun-1999 thorpej

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


# 1.19 16-Apr-1999 thorpej

Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.


Revision tags: netbsd-1-4-base
# 1.18 29-Dec-1998 tsubai

branches: 1.18.2;
Add USB.


# 1.17 10-Dec-1998 tsubai

Add ata/atapi disk support.


Revision tags: kenh-if-detach-base
# 1.16 28-Nov-1998 thorpej

Add an RCS ID.


Revision tags: chs-ubc-base
# 1.15 20-Oct-1998 tsubai

Add via-pmu support.


# 1.14 18-Oct-1998 tsubai

Add wsmouse support.


# 1.13 14-Oct-1998 tsubai

Add wsdisplay.


# 1.12 13-Oct-1998 tsubai

Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse). adb is a bus now. (from Colin Wood)


# 1.11 16-Aug-1998 wrstuden

We claim to support some mii-equiped pci ethernet drivers, so we
need to include dev/mii/files.mii. :-)


Revision tags: eeh-paddr_t-base
# 1.10 28-Jul-1998 thorpej

Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.


# 1.9 17-Jul-1998 tsubai

Add bus_dma support.


# 1.8 13-Jul-1998 tsubai

Add support for G3 Mac.


# 1.7 03-Jul-1998 tsubai

Add nvram device support.


# 1.6 02-Jul-1998 tsubai

Console support.


# 1.5 24-Jun-1998 tsubai

Add memory disk support.


# 1.4 05-Jun-1998 tsubai

Add support for UVM and MACHINE_NEW_NONCONTIG.


# 1.3 29-May-1998 tsubai

Use arch/powerpc/.


# 1.2 20-May-1998 is

Fix tyop.


# 1.1 15-May-1998 tsubai

Initial import of macppc port.