History log of /openbsd-current/sys/arch/macppc/conf/files.macppc
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.92 24-Jan-2020 krw

mesh(4) is old world and only new world macppc hardware is supported.

ok tedu@ jsg@


# 1.91 21-Jan-2020 tedu

remove unfinished macppc esp driver.
ok deraadt krw


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.90 14-Feb-2018 jsg

prune files.* entries that refer to files not in tree
ok krw@ mpi@


# 1.89 11-Oct-2017 deraadt

input files should not be .o; from Scott Cheloha


Revision tags: OPENBSD_6_2_BASE
# 1.88 13-Jun-2017 deraadt

Split early startup code out of locore.S into locore0.S. Adjust link
run so that this locore0.o is always at the start of the executable.
But randomize the link order of all other .o files in the kernel, so
that their exec/rodata/data/bss segments land all over the place.

As a result, the internal layout of every newly build bsd kernel is
different from past kernels. Internal relative offsets are not known
to an outside attacker. The only known offsets are in the startup code
(which will be gone when it is smashed).

The bootstrap code unmapping or smashing isn't done yet, and there is
some potential for more bits from locore.S to move to locore0.S


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.87 20-May-2016 mglocker

Add a thermal management framework for macppc which controls the fan speed
based on the temperature sensor values. A driver can register it fans or
temperature sensors there. Ported from FreeBSD.

ok deraadt kettenis


# 1.86 05-Mar-2016 mpi

One ddb interface is enough for ppc.


Revision tags: OPENBSD_5_9_BASE
# 1.85 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


# 1.84 23-Nov-2015 mpi

Attaches zs(4) as "zs" not "zsc".

Incoherency brought by jmc@ and schwarze@ because the SYNOPSIS of the
corresponding manual do not match its NAME.

This is one step further in the zs(4) unification... Go dokey go!

Tested by jmatthew@, ok sebastia@, deraadt@


Revision tags: OPENBSD_5_8_BASE
# 1.83 26-Jun-2015 dlg

move the ppc mplock implementation from macppc to powerpc.

ok mpi@


# 1.82 02-Jun-2015 mpi

Add a new HT-PCI bridge driver and the necessary glue to openpic(4)
to get interrupts working on U4 machines.

With this OpenBSD can run on PowerMac11,2 (Quad G5).

With inputs from and ok kettenis@, miod@, dlg@


# 1.81 11-May-2015 ratchov

Remove all audio format conversion code from the kernel (btw holding
the kernel_lock), as we already do better conversions in
user-mode. Yet, no need for every single driver to fiddle with the
conversion code as they are done transparently by common MI code. With
help from armani and miod, support from mpi

ok armani@


Revision tags: OPENBSD_5_7_BASE
# 1.80 20-Jan-2015 mpi

Merge two copies of the same dma code into one file and sync the headers.

ok kettenis@


# 1.79 18-Oct-2014 miod

Remove even more unnecessary `needs-flag' attributes from config machinery,
as well as useless include of the generated flag files.


Revision tags: OPENBSD_5_6_BASE
# 1.78 11-Jul-2014 tedu

"It's not the years, honey; it's the mileage."

bluetooth support doesn't work and isn't going anywhere. the current
design is a dead end, and should not be the basis for any future support.
general consensus says to whack it so as to not mislead the unwary.


Revision tags: OPENBSD_5_5_BASE
# 1.77 04-Nov-2013 deraadt

remove iop(4) driver. it is entirely unmaintained and supports something
which basically doesn't exist at all.
reminded about it by brad


# 1.76 28-Aug-2013 mpi

Fix build, reported by jsg@


# 1.75 27-Aug-2013 mpi

Since we are no longer attaching radeondrm(4) to this driver there is
no reason to pretend being compatible with the MI vga layer. So stop
using the vga_pci_bar interface and reduce the differences with the
sparc64 driver.


# 1.74 15-Aug-2013 kettenis

Include files.agp and files.drm from files.pci. Makes sure "drm.h" gets
generated on all architectures that support pci, making alpha and loongson
compile again.

ok todd@, miod@ seemed to agree with the idea


# 1.73 12-Aug-2013 mpi

radeondrm now attaches directly to pci.


# 1.72 12-Aug-2013 jsg

Add a port of the TTM and Radeon DRM code from Linux 3.8.13.
Includes kernel modesetting, framebuffer console and support
for newer hardware.

Firmware needs to be present for acceleration and in some cases
modesetting to work. It can be installed via fw_update
or manually via pkg_add.

With lots of help from kettenis@ some macppc bits from mpi@
and some ttm refcount/queue bits from FreeBSD.

Thanks to M:Tier and the OpenBSD Foundation for sponsoring this work.


# 1.71 07-Aug-2013 mpi

Mimic what's done on sparc64 and parse the OpenFirmware device tree to
enumerate the pci devices. This allow us to not store the interrupt
vector in the interrupt line register and to not try to attach pci
devices disabled by firmware.

With inputs from and ok kettenis@


Revision tags: OPENBSD_5_4_BASE
# 1.70 31-May-2013 mpi

Rename tpms(4), the driver for Apple USB touchpads, to utpms(4) and move
it to dev/usb because it could be used on intel based mac laptops.

Discussed with jcs@, ok deraadt@


# 1.69 21-Apr-2013 sebastia

Unify the zs tty driver.

Most of the hard work by mpi@, who provided the initial diff.
Fixes for sparc from myself. Tested on sgi and sparc myself.
Compiles and detects zstty on my powerbook, compile tested on
sparc64 by me. Real testing with zs device on sparc64 by miod@
who also gave a lot of help and feedback.

ok miod@, mpi@


Revision tags: OPENBSD_5_3_BASE
# 1.68 04-Dec-2012 mpi

Add support for Uninorth AGP bridges found in most if not all the macppc
machines with a G3 or G4 microprocessor. It would not be difficult to add
support for U3 bridges found in G5 powered macppc to this driver but I
don't have such hardware.


# 1.67 08-Sep-2012 mpi

Include files.agp to be able to check against NAGP in the drm agp glue.


# 1.66 30-Aug-2012 mpi

Determine the memory and mmio regions based on previously initialzed BAR
structures and add the necessary glue to attach drm(4).

ok kettenis@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.65 15-Nov-2011 deraadt

Simplify various parts of the puc(4) attachment code. Tested lightly
by krw and myself.


Revision tags: OPENBSD_5_0_BASE
# 1.64 25-May-2011 mpi

Add dfs(4), a driver to support the Dynamic Frequency Switching feature
found on some G4 PowerBook.

Tested by many, thanks.

ok sthen@, kettenis@, miod@


Revision tags: OPENBSD_4_9_BASE
# 1.63 06-Dec-2010 jasper

- use consistent 'include' rules without a full relative path.
tested on a GENERIC config from all arches.

ok deraadt@ miod@


Revision tags: OPENBSD_4_8_BASE
# 1.62 09-Apr-2010 jasper

- add and enable pgs(4), a driver for the Programmers Switch found on
recent-ish macs with macgpio(4). Basically dropping one to DDB when pushed.
...and not to be confused by the "reset" button ;-)

feedback and ok drahn@


Revision tags: OPENBSD_4_7_BASE
# 1.61 07-Sep-2009 miod

Sync mplock code with the current paradigm used in all other MP platforms.
macppc was left unchanged by mistake.


Revision tags: OPENBSD_4_6_BASE
# 1.60 03-May-2009 kettenis

Get rid of pci_addr_fixup machinery; set up the appropriate extents and pass
them along when we attach pci(4). Simplify the rbus code by using extents
too.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.59 21-Mar-2008 deraadt

crank maxusers on some architectures


Revision tags: OPENBSD_4_3_BASE
# 1.58 12-Nov-2007 kettenis

/dev/openprom

ok miod@, deraadt@


# 1.57 14-Oct-2007 kettenis

Provide a way to attach spdmem(4) by faking an I2C bus with EEPROMs with
contents from OpenFirmware.

ok deraadt@


Revision tags: OPENBSD_4_2_BASE
# 1.56 08-Jun-2007 jasper

include files.bluetooth, so that bluetooth support can be compiled,
if enabled.

ok gwk@


# 1.55 01-Jun-2007 deraadt

remove ofw devices which we don't use; that way of mixing devices is crazy
(means i also don not have to fix the daddr_t problems)
ok miod


# 1.54 23-Apr-2007 deraadt

rename drivers with numbers in them; ok gwk drahn


# 1.53 22-Apr-2007 gwk

Add sysbutton a driver for the 'System identifier' button found on the
fornt panel of the xserve (the button with the triangle on it). This driver
will dump you into ddb at the press of a button if the ddb.console sysctl
is set. The bug still has one unresolved issue if ddb.console is not set
and you press and hold the button you will cause a interrupt storm that will
slow the system down. So if you keep your xserve near a toddler or you
yourself are a toddler you might want to consider disabling this device
remember buttons arn't toys.

ok deraadt.


# 1.52 22-Apr-2007 deraadt

rename a very long driver name to something shorter, and more clear
and while there, fix the interrupt name for vmstat -iz; ok gwk


# 1.51 21-Apr-2007 gwk

Add blinkenlights(4) a driver to control the 16 leds found on the front
panel of the Xserve G4 and G5. The leds will provide an indication of the
system load slowing as the load climbs, and system health e.g. no
lights means its dead or in DDB.

Split some of the shared registers and clock divisors from i2s into
i2sreg.h while there nuke some evil C++ style comments.
Man page to follow shortly.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.50 06-Dec-2006 gwk

Enable mesh and mc device drivers in GENERIC, booting on old world macs is
pointless without these two.
ok martin@, deraadt@ durring h2k6


# 1.49 27-Sep-2006 grange

Add files.onewire to all our USB archs, it will be used soon.


Revision tags: OPENBSD_4_0_BASE
# 1.48 19-Jun-2006 deraadt

move clock_subr.c to a better place, and now it is always in the kernel
so that things can use it; tested on all architectures; ok kettenis


# 1.47 23-Apr-2006 kettenis

Add puc(4) and com at puc.
ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.46 18-Jan-2006 miod

Factorize akbd and ams drivers between mac68k and macppc; while there, start
moving out common adb code as well, and merge adb_direct.c into adb.c to
simplify external header files.

No functional change; more cleanups to come.


# 1.45 03-Jan-2006 xsa

work in progress on the Apple Sudden Motion Sensor found in recent
PowerBooks and iBooks, driver is commented out for now;
with prodding, help and ok from kettenis@, ok deraadt@.


# 1.44 01-Jan-2006 deraadt

switch from macppc-specific maciic(4) driver to the generic iic(4),
after teaching it to use a function pointer to get back to the OFW
scan.. this will also help the sparc64 later; ok kettenis


# 1.43 21-Dec-2005 miod

Remove aed(4) on macppc, nothing uses its functionality since key repeat is
handled by wscons and mouse emulation was never enabled or documented.


# 1.42 20-Dec-2005 brad

Add a Apple touchpad driver for newer PowerBook's and iBook's.

From Johan Wall�n on NetBSD's macppc list.

ok deraadt@


# 1.41 19-Nov-2005 kettenis

Apple "onyx" audio device driver.


# 1.40 17-Nov-2005 drahn

add attachment for openpic behind memc, for newer G5 systems.
only attaches a parent openpic, not a slave openpic. ok kettenis


# 1.39 16-Nov-2005 kettenis

Add support for the I2C controller on via-pmu.
ok deraadt@


# 1.38 16-Nov-2005 deraadt

macppc can have gpio


# 1.37 15-Nov-2005 deraadt

move lm87 to dev/i2c; ok kettenis


# 1.36 14-Nov-2005 kettenis

Add lmenv(4), an System Hardware Minitor device that attaches to the I2C bus.
ok deraadt@


# 1.35 13-Nov-2005 kettenis

maciic at ki2c
ok deraadt@


# 1.34 12-Nov-2005 kettenis

Add i2cbus to smu and i2c to maciic.


# 1.33 11-Nov-2005 kettenis

Add maciic(4), an OpenFirware aware version of iic(4).


# 1.32 06-Nov-2005 drahn

Add attachment of ki2c at memc as well as macobio, wil be used on G5.


# 1.31 31-Oct-2005 brad

work in progress on a tumbler driver, driver is commented out for now.


# 1.30 31-Oct-2005 joris

add aoa audio support, found in several macppc machines
ok drahn@


# 1.29 30-Oct-2005 joris

add daca audio support, found in some macppc machines;
ok drahn@


# 1.28 26-Oct-2005 joris

add an i2s framework, which can be reused in new audio drivers
for macppc, as most modern Apple machines have i2s-based audio.

also let snapper use i2s.c right away;

tested by Antoine Jacoutot, drahn@ and kettenis@
"yes, commit!" drahn@, ok kettenis@


# 1.27 19-Oct-2005 kettenis

Add smu(4).
ok drahn@


# 1.26 29-Sep-2005 kettenis

Add driver for HyperTransport as found in G5 Macs.
ok drahn@


Revision tags: OPENBSD_3_8_BASE
# 1.25 04-May-2005 drahn

move gpio(_obio) stuff to macgpio, currently it collides with the MI gpio
ok miod@ grange@


Revision tags: OPENBSD_3_7_BASE
# 1.24 08-Mar-2005 tdeval

Cosmetics...
Mainly remove space between locators parens, replace spaces with tabs
where appropriate and consistently align dependencies.


# 1.23 05-Mar-2005 tdeval

Clean up the tree from incomplete, unreliable and unsupported IEEE1394 code.
Ok deraadt@, miod@


# 1.22 08-Oct-2004 grange

Move dev/cons.c to MI conf/files.

ok miod@


# 1.21 16-Sep-2004 mickey

cleanup deafult locators (blah ?); please check that your most hated architecture is still fluffy (;


Revision tags: OPENBSD_3_6_BASE
# 1.20 20-Jul-2004 miod

Allow a kernel to specify wd* as root or swap device;
spotted by Waldemar Brodkorb.


Revision tags: SMP_SYNC_A SMP_SYNC_B
# 1.19 10-May-2004 drahn

mediabay driver to configure ata bus attached to CD on pismo Powerbook
tested by Glen Barney and Okan Demirmen.


Revision tags: OPENBSD_3_5_BASE
# 1.18 11-Jan-2004 drahn

plug snapper audio into build. ok dhartmei@


Revision tags: OPENBSD_3_4_BASE
# 1.17 05-Jun-2003 drahn

ATA100 driver for apple's new machines, aka kauai.
This is working with udma on a 12" PBG4, but dma is disabled for now,
too many hardcoded values. 'wdc...flags 0x1' will enable it.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_SYNC_A UBC_SYNC_B
# 1.16 14-Sep-2002 deraadt

spaces


# 1.15 06-Sep-2002 drahn

Remove the gm driver, the MI gem works better at this point.


# 1.14 06-Sep-2002 drahn

Serial console support for macppc. Serial console will work if the modem
has been replaced with a serial port adapter on any machine that has
a real serial port internally. This will also power on the internal modem
for keylargo based machines (tested on original PBG4) when the serial port
is open. ok miod@


# 1.13 23-Jul-2002 drahn

Cardbus/pcmcia support for macppc. parts borrowed from NetBSD, and other
portions of the tree.


# 1.12 25-Jun-2002 itojun

IEEE1394 infrastructure part.
IP-over-FW and SCSI over FW are being worked on.


# 1.11 23-Jun-2002 itojun

committed by mistake


# 1.10 23-Jun-2002 itojun

make CAPS_IS_CONTROL a default. pvalchev ok
(translates weird ADB capslock keycode to more normal behavior)


# 1.9 08-Jun-2002 miod

One ddb to rule them all.

Move the ddb files form macppc/macppc to powerpc/ddb, so that mvmeppc
can benefit from the better ddb that was in macppc.
db_interface.c is left as an md part.


# 1.8 29-Apr-2002 drahn

Change macppc vgafb from rcons to rasops, a faster color supporting virtual
terminal emulator for gfx console. tested by mattheiu, miod.


# 1.7 29-Apr-2002 drahn

cleanup, remove devices which macppc is likely to never have, comment
drivers not currently present in source space.


Revision tags: OPENBSD_3_1_BASE
# 1.6 23-Mar-2002 deraadt

typo repair; openbsd@davidkrause.com


Revision tags: UBC_BASE
# 1.5 14-Dec-2001 drahn

branches: 1.5.2;
hme can build on macppc, and and would work if the pci-pci bridge would
route the interrupts correctly.


Revision tags: OPENBSD_3_0_BASE
# 1.4 03-Oct-2001 drahn

branches: 1.4.4;
apm support for macppc. This is not fully implemented, sleep modes
and power event are not handled, however it is enough support
to poll the battery/AC/charging states of the system.
Code by Alexander Guy.


# 1.3 16-Sep-2001 drahn

Update the bmac (if_bm) to a newer version from NetBSD.
Now uses mii/mii_bitbang.
Driver still has performance issues, It does not transfer
as fast data as it should. No worse than before.
Need to investigate a dhclient reported error:
'ip length 331 disagrees with bytes recieved 336'. only on if_bm.


# 1.2 01-Sep-2001 drahn

correct typo in file conversion.


# 1.1 01-Sep-2001 drahn

The "powerpc" port which has supported the newer Apple Macintosh powerpc based
is being renamed to macppc. This is to allow sharing of common code
between different powerpc base platforms.

Most of the work involved in the renaming process was performed by miod@

Files moved from powerpc/conf to macppc/conf

files.powerpc was modified to keep powerpc common files.


# 1.91 21-Jan-2020 tedu

remove unfinished macppc esp driver.
ok deraadt krw


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.90 14-Feb-2018 jsg

prune files.* entries that refer to files not in tree
ok krw@ mpi@


# 1.89 11-Oct-2017 deraadt

input files should not be .o; from Scott Cheloha


Revision tags: OPENBSD_6_2_BASE
# 1.88 13-Jun-2017 deraadt

Split early startup code out of locore.S into locore0.S. Adjust link
run so that this locore0.o is always at the start of the executable.
But randomize the link order of all other .o files in the kernel, so
that their exec/rodata/data/bss segments land all over the place.

As a result, the internal layout of every newly build bsd kernel is
different from past kernels. Internal relative offsets are not known
to an outside attacker. The only known offsets are in the startup code
(which will be gone when it is smashed).

The bootstrap code unmapping or smashing isn't done yet, and there is
some potential for more bits from locore.S to move to locore0.S


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.87 20-May-2016 mglocker

Add a thermal management framework for macppc which controls the fan speed
based on the temperature sensor values. A driver can register it fans or
temperature sensors there. Ported from FreeBSD.

ok deraadt kettenis


# 1.86 05-Mar-2016 mpi

One ddb interface is enough for ppc.


Revision tags: OPENBSD_5_9_BASE
# 1.85 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


# 1.84 23-Nov-2015 mpi

Attaches zs(4) as "zs" not "zsc".

Incoherency brought by jmc@ and schwarze@ because the SYNOPSIS of the
corresponding manual do not match its NAME.

This is one step further in the zs(4) unification... Go dokey go!

Tested by jmatthew@, ok sebastia@, deraadt@


Revision tags: OPENBSD_5_8_BASE
# 1.83 26-Jun-2015 dlg

move the ppc mplock implementation from macppc to powerpc.

ok mpi@


# 1.82 02-Jun-2015 mpi

Add a new HT-PCI bridge driver and the necessary glue to openpic(4)
to get interrupts working on U4 machines.

With this OpenBSD can run on PowerMac11,2 (Quad G5).

With inputs from and ok kettenis@, miod@, dlg@


# 1.81 11-May-2015 ratchov

Remove all audio format conversion code from the kernel (btw holding
the kernel_lock), as we already do better conversions in
user-mode. Yet, no need for every single driver to fiddle with the
conversion code as they are done transparently by common MI code. With
help from armani and miod, support from mpi

ok armani@


Revision tags: OPENBSD_5_7_BASE
# 1.80 20-Jan-2015 mpi

Merge two copies of the same dma code into one file and sync the headers.

ok kettenis@


# 1.79 18-Oct-2014 miod

Remove even more unnecessary `needs-flag' attributes from config machinery,
as well as useless include of the generated flag files.


Revision tags: OPENBSD_5_6_BASE
# 1.78 11-Jul-2014 tedu

"It's not the years, honey; it's the mileage."

bluetooth support doesn't work and isn't going anywhere. the current
design is a dead end, and should not be the basis for any future support.
general consensus says to whack it so as to not mislead the unwary.


Revision tags: OPENBSD_5_5_BASE
# 1.77 04-Nov-2013 deraadt

remove iop(4) driver. it is entirely unmaintained and supports something
which basically doesn't exist at all.
reminded about it by brad


# 1.76 28-Aug-2013 mpi

Fix build, reported by jsg@


# 1.75 27-Aug-2013 mpi

Since we are no longer attaching radeondrm(4) to this driver there is
no reason to pretend being compatible with the MI vga layer. So stop
using the vga_pci_bar interface and reduce the differences with the
sparc64 driver.


# 1.74 15-Aug-2013 kettenis

Include files.agp and files.drm from files.pci. Makes sure "drm.h" gets
generated on all architectures that support pci, making alpha and loongson
compile again.

ok todd@, miod@ seemed to agree with the idea


# 1.73 12-Aug-2013 mpi

radeondrm now attaches directly to pci.


# 1.72 12-Aug-2013 jsg

Add a port of the TTM and Radeon DRM code from Linux 3.8.13.
Includes kernel modesetting, framebuffer console and support
for newer hardware.

Firmware needs to be present for acceleration and in some cases
modesetting to work. It can be installed via fw_update
or manually via pkg_add.

With lots of help from kettenis@ some macppc bits from mpi@
and some ttm refcount/queue bits from FreeBSD.

Thanks to M:Tier and the OpenBSD Foundation for sponsoring this work.


# 1.71 07-Aug-2013 mpi

Mimic what's done on sparc64 and parse the OpenFirmware device tree to
enumerate the pci devices. This allow us to not store the interrupt
vector in the interrupt line register and to not try to attach pci
devices disabled by firmware.

With inputs from and ok kettenis@


Revision tags: OPENBSD_5_4_BASE
# 1.70 31-May-2013 mpi

Rename tpms(4), the driver for Apple USB touchpads, to utpms(4) and move
it to dev/usb because it could be used on intel based mac laptops.

Discussed with jcs@, ok deraadt@


# 1.69 21-Apr-2013 sebastia

Unify the zs tty driver.

Most of the hard work by mpi@, who provided the initial diff.
Fixes for sparc from myself. Tested on sgi and sparc myself.
Compiles and detects zstty on my powerbook, compile tested on
sparc64 by me. Real testing with zs device on sparc64 by miod@
who also gave a lot of help and feedback.

ok miod@, mpi@


Revision tags: OPENBSD_5_3_BASE
# 1.68 04-Dec-2012 mpi

Add support for Uninorth AGP bridges found in most if not all the macppc
machines with a G3 or G4 microprocessor. It would not be difficult to add
support for U3 bridges found in G5 powered macppc to this driver but I
don't have such hardware.


# 1.67 08-Sep-2012 mpi

Include files.agp to be able to check against NAGP in the drm agp glue.


# 1.66 30-Aug-2012 mpi

Determine the memory and mmio regions based on previously initialzed BAR
structures and add the necessary glue to attach drm(4).

ok kettenis@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.65 15-Nov-2011 deraadt

Simplify various parts of the puc(4) attachment code. Tested lightly
by krw and myself.


Revision tags: OPENBSD_5_0_BASE
# 1.64 25-May-2011 mpi

Add dfs(4), a driver to support the Dynamic Frequency Switching feature
found on some G4 PowerBook.

Tested by many, thanks.

ok sthen@, kettenis@, miod@


Revision tags: OPENBSD_4_9_BASE
# 1.63 06-Dec-2010 jasper

- use consistent 'include' rules without a full relative path.
tested on a GENERIC config from all arches.

ok deraadt@ miod@


Revision tags: OPENBSD_4_8_BASE
# 1.62 09-Apr-2010 jasper

- add and enable pgs(4), a driver for the Programmers Switch found on
recent-ish macs with macgpio(4). Basically dropping one to DDB when pushed.
...and not to be confused by the "reset" button ;-)

feedback and ok drahn@


Revision tags: OPENBSD_4_7_BASE
# 1.61 07-Sep-2009 miod

Sync mplock code with the current paradigm used in all other MP platforms.
macppc was left unchanged by mistake.


Revision tags: OPENBSD_4_6_BASE
# 1.60 03-May-2009 kettenis

Get rid of pci_addr_fixup machinery; set up the appropriate extents and pass
them along when we attach pci(4). Simplify the rbus code by using extents
too.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.59 21-Mar-2008 deraadt

crank maxusers on some architectures


Revision tags: OPENBSD_4_3_BASE
# 1.58 12-Nov-2007 kettenis

/dev/openprom

ok miod@, deraadt@


# 1.57 14-Oct-2007 kettenis

Provide a way to attach spdmem(4) by faking an I2C bus with EEPROMs with
contents from OpenFirmware.

ok deraadt@


Revision tags: OPENBSD_4_2_BASE
# 1.56 08-Jun-2007 jasper

include files.bluetooth, so that bluetooth support can be compiled,
if enabled.

ok gwk@


# 1.55 01-Jun-2007 deraadt

remove ofw devices which we don't use; that way of mixing devices is crazy
(means i also don not have to fix the daddr_t problems)
ok miod


# 1.54 23-Apr-2007 deraadt

rename drivers with numbers in them; ok gwk drahn


# 1.53 22-Apr-2007 gwk

Add sysbutton a driver for the 'System identifier' button found on the
fornt panel of the xserve (the button with the triangle on it). This driver
will dump you into ddb at the press of a button if the ddb.console sysctl
is set. The bug still has one unresolved issue if ddb.console is not set
and you press and hold the button you will cause a interrupt storm that will
slow the system down. So if you keep your xserve near a toddler or you
yourself are a toddler you might want to consider disabling this device
remember buttons arn't toys.

ok deraadt.


# 1.52 22-Apr-2007 deraadt

rename a very long driver name to something shorter, and more clear
and while there, fix the interrupt name for vmstat -iz; ok gwk


# 1.51 21-Apr-2007 gwk

Add blinkenlights(4) a driver to control the 16 leds found on the front
panel of the Xserve G4 and G5. The leds will provide an indication of the
system load slowing as the load climbs, and system health e.g. no
lights means its dead or in DDB.

Split some of the shared registers and clock divisors from i2s into
i2sreg.h while there nuke some evil C++ style comments.
Man page to follow shortly.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.50 06-Dec-2006 gwk

Enable mesh and mc device drivers in GENERIC, booting on old world macs is
pointless without these two.
ok martin@, deraadt@ durring h2k6


# 1.49 27-Sep-2006 grange

Add files.onewire to all our USB archs, it will be used soon.


Revision tags: OPENBSD_4_0_BASE
# 1.48 19-Jun-2006 deraadt

move clock_subr.c to a better place, and now it is always in the kernel
so that things can use it; tested on all architectures; ok kettenis


# 1.47 23-Apr-2006 kettenis

Add puc(4) and com at puc.
ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.46 18-Jan-2006 miod

Factorize akbd and ams drivers between mac68k and macppc; while there, start
moving out common adb code as well, and merge adb_direct.c into adb.c to
simplify external header files.

No functional change; more cleanups to come.


# 1.45 03-Jan-2006 xsa

work in progress on the Apple Sudden Motion Sensor found in recent
PowerBooks and iBooks, driver is commented out for now;
with prodding, help and ok from kettenis@, ok deraadt@.


# 1.44 01-Jan-2006 deraadt

switch from macppc-specific maciic(4) driver to the generic iic(4),
after teaching it to use a function pointer to get back to the OFW
scan.. this will also help the sparc64 later; ok kettenis


# 1.43 21-Dec-2005 miod

Remove aed(4) on macppc, nothing uses its functionality since key repeat is
handled by wscons and mouse emulation was never enabled or documented.


# 1.42 20-Dec-2005 brad

Add a Apple touchpad driver for newer PowerBook's and iBook's.

From Johan Wall�n on NetBSD's macppc list.

ok deraadt@


# 1.41 19-Nov-2005 kettenis

Apple "onyx" audio device driver.


# 1.40 17-Nov-2005 drahn

add attachment for openpic behind memc, for newer G5 systems.
only attaches a parent openpic, not a slave openpic. ok kettenis


# 1.39 16-Nov-2005 kettenis

Add support for the I2C controller on via-pmu.
ok deraadt@


# 1.38 16-Nov-2005 deraadt

macppc can have gpio


# 1.37 15-Nov-2005 deraadt

move lm87 to dev/i2c; ok kettenis


# 1.36 14-Nov-2005 kettenis

Add lmenv(4), an System Hardware Minitor device that attaches to the I2C bus.
ok deraadt@


# 1.35 13-Nov-2005 kettenis

maciic at ki2c
ok deraadt@


# 1.34 12-Nov-2005 kettenis

Add i2cbus to smu and i2c to maciic.


# 1.33 11-Nov-2005 kettenis

Add maciic(4), an OpenFirware aware version of iic(4).


# 1.32 06-Nov-2005 drahn

Add attachment of ki2c at memc as well as macobio, wil be used on G5.


# 1.31 31-Oct-2005 brad

work in progress on a tumbler driver, driver is commented out for now.


# 1.30 31-Oct-2005 joris

add aoa audio support, found in several macppc machines
ok drahn@


# 1.29 30-Oct-2005 joris

add daca audio support, found in some macppc machines;
ok drahn@


# 1.28 26-Oct-2005 joris

add an i2s framework, which can be reused in new audio drivers
for macppc, as most modern Apple machines have i2s-based audio.

also let snapper use i2s.c right away;

tested by Antoine Jacoutot, drahn@ and kettenis@
"yes, commit!" drahn@, ok kettenis@


# 1.27 19-Oct-2005 kettenis

Add smu(4).
ok drahn@


# 1.26 29-Sep-2005 kettenis

Add driver for HyperTransport as found in G5 Macs.
ok drahn@


Revision tags: OPENBSD_3_8_BASE
# 1.25 04-May-2005 drahn

move gpio(_obio) stuff to macgpio, currently it collides with the MI gpio
ok miod@ grange@


Revision tags: OPENBSD_3_7_BASE
# 1.24 08-Mar-2005 tdeval

Cosmetics...
Mainly remove space between locators parens, replace spaces with tabs
where appropriate and consistently align dependencies.


# 1.23 05-Mar-2005 tdeval

Clean up the tree from incomplete, unreliable and unsupported IEEE1394 code.
Ok deraadt@, miod@


# 1.22 08-Oct-2004 grange

Move dev/cons.c to MI conf/files.

ok miod@


# 1.21 16-Sep-2004 mickey

cleanup deafult locators (blah ?); please check that your most hated architecture is still fluffy (;


Revision tags: OPENBSD_3_6_BASE
# 1.20 20-Jul-2004 miod

Allow a kernel to specify wd* as root or swap device;
spotted by Waldemar Brodkorb.


Revision tags: SMP_SYNC_A SMP_SYNC_B
# 1.19 10-May-2004 drahn

mediabay driver to configure ata bus attached to CD on pismo Powerbook
tested by Glen Barney and Okan Demirmen.


Revision tags: OPENBSD_3_5_BASE
# 1.18 11-Jan-2004 drahn

plug snapper audio into build. ok dhartmei@


Revision tags: OPENBSD_3_4_BASE
# 1.17 05-Jun-2003 drahn

ATA100 driver for apple's new machines, aka kauai.
This is working with udma on a 12" PBG4, but dma is disabled for now,
too many hardcoded values. 'wdc...flags 0x1' will enable it.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_SYNC_A UBC_SYNC_B
# 1.16 14-Sep-2002 deraadt

spaces


# 1.15 06-Sep-2002 drahn

Remove the gm driver, the MI gem works better at this point.


# 1.14 06-Sep-2002 drahn

Serial console support for macppc. Serial console will work if the modem
has been replaced with a serial port adapter on any machine that has
a real serial port internally. This will also power on the internal modem
for keylargo based machines (tested on original PBG4) when the serial port
is open. ok miod@


# 1.13 23-Jul-2002 drahn

Cardbus/pcmcia support for macppc. parts borrowed from NetBSD, and other
portions of the tree.


# 1.12 25-Jun-2002 itojun

IEEE1394 infrastructure part.
IP-over-FW and SCSI over FW are being worked on.


# 1.11 23-Jun-2002 itojun

committed by mistake


# 1.10 23-Jun-2002 itojun

make CAPS_IS_CONTROL a default. pvalchev ok
(translates weird ADB capslock keycode to more normal behavior)


# 1.9 08-Jun-2002 miod

One ddb to rule them all.

Move the ddb files form macppc/macppc to powerpc/ddb, so that mvmeppc
can benefit from the better ddb that was in macppc.
db_interface.c is left as an md part.


# 1.8 29-Apr-2002 drahn

Change macppc vgafb from rcons to rasops, a faster color supporting virtual
terminal emulator for gfx console. tested by mattheiu, miod.


# 1.7 29-Apr-2002 drahn

cleanup, remove devices which macppc is likely to never have, comment
drivers not currently present in source space.


Revision tags: OPENBSD_3_1_BASE
# 1.6 23-Mar-2002 deraadt

typo repair; openbsd@davidkrause.com


Revision tags: UBC_BASE
# 1.5 14-Dec-2001 drahn

branches: 1.5.2;
hme can build on macppc, and and would work if the pci-pci bridge would
route the interrupts correctly.


Revision tags: OPENBSD_3_0_BASE
# 1.4 03-Oct-2001 drahn

branches: 1.4.4;
apm support for macppc. This is not fully implemented, sleep modes
and power event are not handled, however it is enough support
to poll the battery/AC/charging states of the system.
Code by Alexander Guy.


# 1.3 16-Sep-2001 drahn

Update the bmac (if_bm) to a newer version from NetBSD.
Now uses mii/mii_bitbang.
Driver still has performance issues, It does not transfer
as fast data as it should. No worse than before.
Need to investigate a dhclient reported error:
'ip length 331 disagrees with bytes recieved 336'. only on if_bm.


# 1.2 01-Sep-2001 drahn

correct typo in file conversion.


# 1.1 01-Sep-2001 drahn

The "powerpc" port which has supported the newer Apple Macintosh powerpc based
is being renamed to macppc. This is to allow sharing of common code
between different powerpc base platforms.

Most of the work involved in the renaming process was performed by miod@

Files moved from powerpc/conf to macppc/conf

files.powerpc was modified to keep powerpc common files.


# 1.90 14-Feb-2018 jsg

prune files.* entries that refer to files not in tree
ok krw@ mpi@


# 1.89 11-Oct-2017 deraadt

input files should not be .o; from Scott Cheloha


Revision tags: OPENBSD_6_2_BASE
# 1.88 13-Jun-2017 deraadt

Split early startup code out of locore.S into locore0.S. Adjust link
run so that this locore0.o is always at the start of the executable.
But randomize the link order of all other .o files in the kernel, so
that their exec/rodata/data/bss segments land all over the place.

As a result, the internal layout of every newly build bsd kernel is
different from past kernels. Internal relative offsets are not known
to an outside attacker. The only known offsets are in the startup code
(which will be gone when it is smashed).

The bootstrap code unmapping or smashing isn't done yet, and there is
some potential for more bits from locore.S to move to locore0.S


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.87 20-May-2016 mglocker

Add a thermal management framework for macppc which controls the fan speed
based on the temperature sensor values. A driver can register it fans or
temperature sensors there. Ported from FreeBSD.

ok deraadt kettenis


# 1.86 05-Mar-2016 mpi

One ddb interface is enough for ppc.


Revision tags: OPENBSD_5_9_BASE
# 1.85 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


# 1.84 23-Nov-2015 mpi

Attaches zs(4) as "zs" not "zsc".

Incoherency brought by jmc@ and schwarze@ because the SYNOPSIS of the
corresponding manual do not match its NAME.

This is one step further in the zs(4) unification... Go dokey go!

Tested by jmatthew@, ok sebastia@, deraadt@


Revision tags: OPENBSD_5_8_BASE
# 1.83 26-Jun-2015 dlg

move the ppc mplock implementation from macppc to powerpc.

ok mpi@


# 1.82 02-Jun-2015 mpi

Add a new HT-PCI bridge driver and the necessary glue to openpic(4)
to get interrupts working on U4 machines.

With this OpenBSD can run on PowerMac11,2 (Quad G5).

With inputs from and ok kettenis@, miod@, dlg@


# 1.81 11-May-2015 ratchov

Remove all audio format conversion code from the kernel (btw holding
the kernel_lock), as we already do better conversions in
user-mode. Yet, no need for every single driver to fiddle with the
conversion code as they are done transparently by common MI code. With
help from armani and miod, support from mpi

ok armani@


Revision tags: OPENBSD_5_7_BASE
# 1.80 20-Jan-2015 mpi

Merge two copies of the same dma code into one file and sync the headers.

ok kettenis@


# 1.79 18-Oct-2014 miod

Remove even more unnecessary `needs-flag' attributes from config machinery,
as well as useless include of the generated flag files.


Revision tags: OPENBSD_5_6_BASE
# 1.78 11-Jul-2014 tedu

"It's not the years, honey; it's the mileage."

bluetooth support doesn't work and isn't going anywhere. the current
design is a dead end, and should not be the basis for any future support.
general consensus says to whack it so as to not mislead the unwary.


Revision tags: OPENBSD_5_5_BASE
# 1.77 04-Nov-2013 deraadt

remove iop(4) driver. it is entirely unmaintained and supports something
which basically doesn't exist at all.
reminded about it by brad


# 1.76 28-Aug-2013 mpi

Fix build, reported by jsg@


# 1.75 27-Aug-2013 mpi

Since we are no longer attaching radeondrm(4) to this driver there is
no reason to pretend being compatible with the MI vga layer. So stop
using the vga_pci_bar interface and reduce the differences with the
sparc64 driver.


# 1.74 15-Aug-2013 kettenis

Include files.agp and files.drm from files.pci. Makes sure "drm.h" gets
generated on all architectures that support pci, making alpha and loongson
compile again.

ok todd@, miod@ seemed to agree with the idea


# 1.73 12-Aug-2013 mpi

radeondrm now attaches directly to pci.


# 1.72 12-Aug-2013 jsg

Add a port of the TTM and Radeon DRM code from Linux 3.8.13.
Includes kernel modesetting, framebuffer console and support
for newer hardware.

Firmware needs to be present for acceleration and in some cases
modesetting to work. It can be installed via fw_update
or manually via pkg_add.

With lots of help from kettenis@ some macppc bits from mpi@
and some ttm refcount/queue bits from FreeBSD.

Thanks to M:Tier and the OpenBSD Foundation for sponsoring this work.


# 1.71 07-Aug-2013 mpi

Mimic what's done on sparc64 and parse the OpenFirmware device tree to
enumerate the pci devices. This allow us to not store the interrupt
vector in the interrupt line register and to not try to attach pci
devices disabled by firmware.

With inputs from and ok kettenis@


Revision tags: OPENBSD_5_4_BASE
# 1.70 31-May-2013 mpi

Rename tpms(4), the driver for Apple USB touchpads, to utpms(4) and move
it to dev/usb because it could be used on intel based mac laptops.

Discussed with jcs@, ok deraadt@


# 1.69 21-Apr-2013 sebastia

Unify the zs tty driver.

Most of the hard work by mpi@, who provided the initial diff.
Fixes for sparc from myself. Tested on sgi and sparc myself.
Compiles and detects zstty on my powerbook, compile tested on
sparc64 by me. Real testing with zs device on sparc64 by miod@
who also gave a lot of help and feedback.

ok miod@, mpi@


Revision tags: OPENBSD_5_3_BASE
# 1.68 04-Dec-2012 mpi

Add support for Uninorth AGP bridges found in most if not all the macppc
machines with a G3 or G4 microprocessor. It would not be difficult to add
support for U3 bridges found in G5 powered macppc to this driver but I
don't have such hardware.


# 1.67 08-Sep-2012 mpi

Include files.agp to be able to check against NAGP in the drm agp glue.


# 1.66 30-Aug-2012 mpi

Determine the memory and mmio regions based on previously initialzed BAR
structures and add the necessary glue to attach drm(4).

ok kettenis@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.65 15-Nov-2011 deraadt

Simplify various parts of the puc(4) attachment code. Tested lightly
by krw and myself.


Revision tags: OPENBSD_5_0_BASE
# 1.64 25-May-2011 mpi

Add dfs(4), a driver to support the Dynamic Frequency Switching feature
found on some G4 PowerBook.

Tested by many, thanks.

ok sthen@, kettenis@, miod@


Revision tags: OPENBSD_4_9_BASE
# 1.63 06-Dec-2010 jasper

- use consistent 'include' rules without a full relative path.
tested on a GENERIC config from all arches.

ok deraadt@ miod@


Revision tags: OPENBSD_4_8_BASE
# 1.62 09-Apr-2010 jasper

- add and enable pgs(4), a driver for the Programmers Switch found on
recent-ish macs with macgpio(4). Basically dropping one to DDB when pushed.
...and not to be confused by the "reset" button ;-)

feedback and ok drahn@


Revision tags: OPENBSD_4_7_BASE
# 1.61 07-Sep-2009 miod

Sync mplock code with the current paradigm used in all other MP platforms.
macppc was left unchanged by mistake.


Revision tags: OPENBSD_4_6_BASE
# 1.60 03-May-2009 kettenis

Get rid of pci_addr_fixup machinery; set up the appropriate extents and pass
them along when we attach pci(4). Simplify the rbus code by using extents
too.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.59 21-Mar-2008 deraadt

crank maxusers on some architectures


Revision tags: OPENBSD_4_3_BASE
# 1.58 12-Nov-2007 kettenis

/dev/openprom

ok miod@, deraadt@


# 1.57 14-Oct-2007 kettenis

Provide a way to attach spdmem(4) by faking an I2C bus with EEPROMs with
contents from OpenFirmware.

ok deraadt@


Revision tags: OPENBSD_4_2_BASE
# 1.56 08-Jun-2007 jasper

include files.bluetooth, so that bluetooth support can be compiled,
if enabled.

ok gwk@


# 1.55 01-Jun-2007 deraadt

remove ofw devices which we don't use; that way of mixing devices is crazy
(means i also don not have to fix the daddr_t problems)
ok miod


# 1.54 23-Apr-2007 deraadt

rename drivers with numbers in them; ok gwk drahn


# 1.53 22-Apr-2007 gwk

Add sysbutton a driver for the 'System identifier' button found on the
fornt panel of the xserve (the button with the triangle on it). This driver
will dump you into ddb at the press of a button if the ddb.console sysctl
is set. The bug still has one unresolved issue if ddb.console is not set
and you press and hold the button you will cause a interrupt storm that will
slow the system down. So if you keep your xserve near a toddler or you
yourself are a toddler you might want to consider disabling this device
remember buttons arn't toys.

ok deraadt.


# 1.52 22-Apr-2007 deraadt

rename a very long driver name to something shorter, and more clear
and while there, fix the interrupt name for vmstat -iz; ok gwk


# 1.51 21-Apr-2007 gwk

Add blinkenlights(4) a driver to control the 16 leds found on the front
panel of the Xserve G4 and G5. The leds will provide an indication of the
system load slowing as the load climbs, and system health e.g. no
lights means its dead or in DDB.

Split some of the shared registers and clock divisors from i2s into
i2sreg.h while there nuke some evil C++ style comments.
Man page to follow shortly.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.50 06-Dec-2006 gwk

Enable mesh and mc device drivers in GENERIC, booting on old world macs is
pointless without these two.
ok martin@, deraadt@ durring h2k6


# 1.49 27-Sep-2006 grange

Add files.onewire to all our USB archs, it will be used soon.


Revision tags: OPENBSD_4_0_BASE
# 1.48 19-Jun-2006 deraadt

move clock_subr.c to a better place, and now it is always in the kernel
so that things can use it; tested on all architectures; ok kettenis


# 1.47 23-Apr-2006 kettenis

Add puc(4) and com at puc.
ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.46 18-Jan-2006 miod

Factorize akbd and ams drivers between mac68k and macppc; while there, start
moving out common adb code as well, and merge adb_direct.c into adb.c to
simplify external header files.

No functional change; more cleanups to come.


# 1.45 03-Jan-2006 xsa

work in progress on the Apple Sudden Motion Sensor found in recent
PowerBooks and iBooks, driver is commented out for now;
with prodding, help and ok from kettenis@, ok deraadt@.


# 1.44 01-Jan-2006 deraadt

switch from macppc-specific maciic(4) driver to the generic iic(4),
after teaching it to use a function pointer to get back to the OFW
scan.. this will also help the sparc64 later; ok kettenis


# 1.43 21-Dec-2005 miod

Remove aed(4) on macppc, nothing uses its functionality since key repeat is
handled by wscons and mouse emulation was never enabled or documented.


# 1.42 20-Dec-2005 brad

Add a Apple touchpad driver for newer PowerBook's and iBook's.

From Johan Wall�n on NetBSD's macppc list.

ok deraadt@


# 1.41 19-Nov-2005 kettenis

Apple "onyx" audio device driver.


# 1.40 17-Nov-2005 drahn

add attachment for openpic behind memc, for newer G5 systems.
only attaches a parent openpic, not a slave openpic. ok kettenis


# 1.39 16-Nov-2005 kettenis

Add support for the I2C controller on via-pmu.
ok deraadt@


# 1.38 16-Nov-2005 deraadt

macppc can have gpio


# 1.37 15-Nov-2005 deraadt

move lm87 to dev/i2c; ok kettenis


# 1.36 14-Nov-2005 kettenis

Add lmenv(4), an System Hardware Minitor device that attaches to the I2C bus.
ok deraadt@


# 1.35 13-Nov-2005 kettenis

maciic at ki2c
ok deraadt@


# 1.34 12-Nov-2005 kettenis

Add i2cbus to smu and i2c to maciic.


# 1.33 11-Nov-2005 kettenis

Add maciic(4), an OpenFirware aware version of iic(4).


# 1.32 06-Nov-2005 drahn

Add attachment of ki2c at memc as well as macobio, wil be used on G5.


# 1.31 31-Oct-2005 brad

work in progress on a tumbler driver, driver is commented out for now.


# 1.30 31-Oct-2005 joris

add aoa audio support, found in several macppc machines
ok drahn@


# 1.29 30-Oct-2005 joris

add daca audio support, found in some macppc machines;
ok drahn@


# 1.28 26-Oct-2005 joris

add an i2s framework, which can be reused in new audio drivers
for macppc, as most modern Apple machines have i2s-based audio.

also let snapper use i2s.c right away;

tested by Antoine Jacoutot, drahn@ and kettenis@
"yes, commit!" drahn@, ok kettenis@


# 1.27 19-Oct-2005 kettenis

Add smu(4).
ok drahn@


# 1.26 29-Sep-2005 kettenis

Add driver for HyperTransport as found in G5 Macs.
ok drahn@


Revision tags: OPENBSD_3_8_BASE
# 1.25 04-May-2005 drahn

move gpio(_obio) stuff to macgpio, currently it collides with the MI gpio
ok miod@ grange@


Revision tags: OPENBSD_3_7_BASE
# 1.24 08-Mar-2005 tdeval

Cosmetics...
Mainly remove space between locators parens, replace spaces with tabs
where appropriate and consistently align dependencies.


# 1.23 05-Mar-2005 tdeval

Clean up the tree from incomplete, unreliable and unsupported IEEE1394 code.
Ok deraadt@, miod@


# 1.22 08-Oct-2004 grange

Move dev/cons.c to MI conf/files.

ok miod@


# 1.21 16-Sep-2004 mickey

cleanup deafult locators (blah ?); please check that your most hated architecture is still fluffy (;


Revision tags: OPENBSD_3_6_BASE
# 1.20 20-Jul-2004 miod

Allow a kernel to specify wd* as root or swap device;
spotted by Waldemar Brodkorb.


Revision tags: SMP_SYNC_A SMP_SYNC_B
# 1.19 10-May-2004 drahn

mediabay driver to configure ata bus attached to CD on pismo Powerbook
tested by Glen Barney and Okan Demirmen.


Revision tags: OPENBSD_3_5_BASE
# 1.18 11-Jan-2004 drahn

plug snapper audio into build. ok dhartmei@


Revision tags: OPENBSD_3_4_BASE
# 1.17 05-Jun-2003 drahn

ATA100 driver for apple's new machines, aka kauai.
This is working with udma on a 12" PBG4, but dma is disabled for now,
too many hardcoded values. 'wdc...flags 0x1' will enable it.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_SYNC_A UBC_SYNC_B
# 1.16 14-Sep-2002 deraadt

spaces


# 1.15 06-Sep-2002 drahn

Remove the gm driver, the MI gem works better at this point.


# 1.14 06-Sep-2002 drahn

Serial console support for macppc. Serial console will work if the modem
has been replaced with a serial port adapter on any machine that has
a real serial port internally. This will also power on the internal modem
for keylargo based machines (tested on original PBG4) when the serial port
is open. ok miod@


# 1.13 23-Jul-2002 drahn

Cardbus/pcmcia support for macppc. parts borrowed from NetBSD, and other
portions of the tree.


# 1.12 25-Jun-2002 itojun

IEEE1394 infrastructure part.
IP-over-FW and SCSI over FW are being worked on.


# 1.11 23-Jun-2002 itojun

committed by mistake


# 1.10 23-Jun-2002 itojun

make CAPS_IS_CONTROL a default. pvalchev ok
(translates weird ADB capslock keycode to more normal behavior)


# 1.9 08-Jun-2002 miod

One ddb to rule them all.

Move the ddb files form macppc/macppc to powerpc/ddb, so that mvmeppc
can benefit from the better ddb that was in macppc.
db_interface.c is left as an md part.


# 1.8 29-Apr-2002 drahn

Change macppc vgafb from rcons to rasops, a faster color supporting virtual
terminal emulator for gfx console. tested by mattheiu, miod.


# 1.7 29-Apr-2002 drahn

cleanup, remove devices which macppc is likely to never have, comment
drivers not currently present in source space.


Revision tags: OPENBSD_3_1_BASE
# 1.6 23-Mar-2002 deraadt

typo repair; openbsd@davidkrause.com


Revision tags: UBC_BASE
# 1.5 14-Dec-2001 drahn

branches: 1.5.2;
hme can build on macppc, and and would work if the pci-pci bridge would
route the interrupts correctly.


Revision tags: OPENBSD_3_0_BASE
# 1.4 03-Oct-2001 drahn

branches: 1.4.4;
apm support for macppc. This is not fully implemented, sleep modes
and power event are not handled, however it is enough support
to poll the battery/AC/charging states of the system.
Code by Alexander Guy.


# 1.3 16-Sep-2001 drahn

Update the bmac (if_bm) to a newer version from NetBSD.
Now uses mii/mii_bitbang.
Driver still has performance issues, It does not transfer
as fast data as it should. No worse than before.
Need to investigate a dhclient reported error:
'ip length 331 disagrees with bytes recieved 336'. only on if_bm.


# 1.2 01-Sep-2001 drahn

correct typo in file conversion.


# 1.1 01-Sep-2001 drahn

The "powerpc" port which has supported the newer Apple Macintosh powerpc based
is being renamed to macppc. This is to allow sharing of common code
between different powerpc base platforms.

Most of the work involved in the renaming process was performed by miod@

Files moved from powerpc/conf to macppc/conf

files.powerpc was modified to keep powerpc common files.


# 1.89 11-Oct-2017 deraadt

input files should not be .o; from Scott Cheloha


Revision tags: OPENBSD_6_2_BASE
# 1.88 13-Jun-2017 deraadt

Split early startup code out of locore.S into locore0.S. Adjust link
run so that this locore0.o is always at the start of the executable.
But randomize the link order of all other .o files in the kernel, so
that their exec/rodata/data/bss segments land all over the place.

As a result, the internal layout of every newly build bsd kernel is
different from past kernels. Internal relative offsets are not known
to an outside attacker. The only known offsets are in the startup code
(which will be gone when it is smashed).

The bootstrap code unmapping or smashing isn't done yet, and there is
some potential for more bits from locore.S to move to locore0.S


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.87 20-May-2016 mglocker

Add a thermal management framework for macppc which controls the fan speed
based on the temperature sensor values. A driver can register it fans or
temperature sensors there. Ported from FreeBSD.

ok deraadt kettenis


# 1.86 05-Mar-2016 mpi

One ddb interface is enough for ppc.


Revision tags: OPENBSD_5_9_BASE
# 1.85 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


# 1.84 23-Nov-2015 mpi

Attaches zs(4) as "zs" not "zsc".

Incoherency brought by jmc@ and schwarze@ because the SYNOPSIS of the
corresponding manual do not match its NAME.

This is one step further in the zs(4) unification... Go dokey go!

Tested by jmatthew@, ok sebastia@, deraadt@


Revision tags: OPENBSD_5_8_BASE
# 1.83 26-Jun-2015 dlg

move the ppc mplock implementation from macppc to powerpc.

ok mpi@


# 1.82 02-Jun-2015 mpi

Add a new HT-PCI bridge driver and the necessary glue to openpic(4)
to get interrupts working on U4 machines.

With this OpenBSD can run on PowerMac11,2 (Quad G5).

With inputs from and ok kettenis@, miod@, dlg@


# 1.81 11-May-2015 ratchov

Remove all audio format conversion code from the kernel (btw holding
the kernel_lock), as we already do better conversions in
user-mode. Yet, no need for every single driver to fiddle with the
conversion code as they are done transparently by common MI code. With
help from armani and miod, support from mpi

ok armani@


Revision tags: OPENBSD_5_7_BASE
# 1.80 20-Jan-2015 mpi

Merge two copies of the same dma code into one file and sync the headers.

ok kettenis@


# 1.79 18-Oct-2014 miod

Remove even more unnecessary `needs-flag' attributes from config machinery,
as well as useless include of the generated flag files.


Revision tags: OPENBSD_5_6_BASE
# 1.78 11-Jul-2014 tedu

"It's not the years, honey; it's the mileage."

bluetooth support doesn't work and isn't going anywhere. the current
design is a dead end, and should not be the basis for any future support.
general consensus says to whack it so as to not mislead the unwary.


Revision tags: OPENBSD_5_5_BASE
# 1.77 04-Nov-2013 deraadt

remove iop(4) driver. it is entirely unmaintained and supports something
which basically doesn't exist at all.
reminded about it by brad


# 1.76 28-Aug-2013 mpi

Fix build, reported by jsg@


# 1.75 27-Aug-2013 mpi

Since we are no longer attaching radeondrm(4) to this driver there is
no reason to pretend being compatible with the MI vga layer. So stop
using the vga_pci_bar interface and reduce the differences with the
sparc64 driver.


# 1.74 15-Aug-2013 kettenis

Include files.agp and files.drm from files.pci. Makes sure "drm.h" gets
generated on all architectures that support pci, making alpha and loongson
compile again.

ok todd@, miod@ seemed to agree with the idea


# 1.73 12-Aug-2013 mpi

radeondrm now attaches directly to pci.


# 1.72 12-Aug-2013 jsg

Add a port of the TTM and Radeon DRM code from Linux 3.8.13.
Includes kernel modesetting, framebuffer console and support
for newer hardware.

Firmware needs to be present for acceleration and in some cases
modesetting to work. It can be installed via fw_update
or manually via pkg_add.

With lots of help from kettenis@ some macppc bits from mpi@
and some ttm refcount/queue bits from FreeBSD.

Thanks to M:Tier and the OpenBSD Foundation for sponsoring this work.


# 1.71 07-Aug-2013 mpi

Mimic what's done on sparc64 and parse the OpenFirmware device tree to
enumerate the pci devices. This allow us to not store the interrupt
vector in the interrupt line register and to not try to attach pci
devices disabled by firmware.

With inputs from and ok kettenis@


Revision tags: OPENBSD_5_4_BASE
# 1.70 31-May-2013 mpi

Rename tpms(4), the driver for Apple USB touchpads, to utpms(4) and move
it to dev/usb because it could be used on intel based mac laptops.

Discussed with jcs@, ok deraadt@


# 1.69 21-Apr-2013 sebastia

Unify the zs tty driver.

Most of the hard work by mpi@, who provided the initial diff.
Fixes for sparc from myself. Tested on sgi and sparc myself.
Compiles and detects zstty on my powerbook, compile tested on
sparc64 by me. Real testing with zs device on sparc64 by miod@
who also gave a lot of help and feedback.

ok miod@, mpi@


Revision tags: OPENBSD_5_3_BASE
# 1.68 04-Dec-2012 mpi

Add support for Uninorth AGP bridges found in most if not all the macppc
machines with a G3 or G4 microprocessor. It would not be difficult to add
support for U3 bridges found in G5 powered macppc to this driver but I
don't have such hardware.


# 1.67 08-Sep-2012 mpi

Include files.agp to be able to check against NAGP in the drm agp glue.


# 1.66 30-Aug-2012 mpi

Determine the memory and mmio regions based on previously initialzed BAR
structures and add the necessary glue to attach drm(4).

ok kettenis@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.65 15-Nov-2011 deraadt

Simplify various parts of the puc(4) attachment code. Tested lightly
by krw and myself.


Revision tags: OPENBSD_5_0_BASE
# 1.64 25-May-2011 mpi

Add dfs(4), a driver to support the Dynamic Frequency Switching feature
found on some G4 PowerBook.

Tested by many, thanks.

ok sthen@, kettenis@, miod@


Revision tags: OPENBSD_4_9_BASE
# 1.63 06-Dec-2010 jasper

- use consistent 'include' rules without a full relative path.
tested on a GENERIC config from all arches.

ok deraadt@ miod@


Revision tags: OPENBSD_4_8_BASE
# 1.62 09-Apr-2010 jasper

- add and enable pgs(4), a driver for the Programmers Switch found on
recent-ish macs with macgpio(4). Basically dropping one to DDB when pushed.
...and not to be confused by the "reset" button ;-)

feedback and ok drahn@


Revision tags: OPENBSD_4_7_BASE
# 1.61 07-Sep-2009 miod

Sync mplock code with the current paradigm used in all other MP platforms.
macppc was left unchanged by mistake.


Revision tags: OPENBSD_4_6_BASE
# 1.60 03-May-2009 kettenis

Get rid of pci_addr_fixup machinery; set up the appropriate extents and pass
them along when we attach pci(4). Simplify the rbus code by using extents
too.


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.59 21-Mar-2008 deraadt

crank maxusers on some architectures


Revision tags: OPENBSD_4_3_BASE
# 1.58 12-Nov-2007 kettenis

/dev/openprom

ok miod@, deraadt@


# 1.57 14-Oct-2007 kettenis

Provide a way to attach spdmem(4) by faking an I2C bus with EEPROMs with
contents from OpenFirmware.

ok deraadt@


Revision tags: OPENBSD_4_2_BASE
# 1.56 08-Jun-2007 jasper

include files.bluetooth, so that bluetooth support can be compiled,
if enabled.

ok gwk@


# 1.55 01-Jun-2007 deraadt

remove ofw devices which we don't use; that way of mixing devices is crazy
(means i also don not have to fix the daddr_t problems)
ok miod


# 1.54 23-Apr-2007 deraadt

rename drivers with numbers in them; ok gwk drahn


# 1.53 22-Apr-2007 gwk

Add sysbutton a driver for the 'System identifier' button found on the
fornt panel of the xserve (the button with the triangle on it). This driver
will dump you into ddb at the press of a button if the ddb.console sysctl
is set. The bug still has one unresolved issue if ddb.console is not set
and you press and hold the button you will cause a interrupt storm that will
slow the system down. So if you keep your xserve near a toddler or you
yourself are a toddler you might want to consider disabling this device
remember buttons arn't toys.

ok deraadt.


# 1.52 22-Apr-2007 deraadt

rename a very long driver name to something shorter, and more clear
and while there, fix the interrupt name for vmstat -iz; ok gwk


# 1.51 21-Apr-2007 gwk

Add blinkenlights(4) a driver to control the 16 leds found on the front
panel of the Xserve G4 and G5. The leds will provide an indication of the
system load slowing as the load climbs, and system health e.g. no
lights means its dead or in DDB.

Split some of the shared registers and clock divisors from i2s into
i2sreg.h while there nuke some evil C++ style comments.
Man page to follow shortly.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.50 06-Dec-2006 gwk

Enable mesh and mc device drivers in GENERIC, booting on old world macs is
pointless without these two.
ok martin@, deraadt@ durring h2k6


# 1.49 27-Sep-2006 grange

Add files.onewire to all our USB archs, it will be used soon.


Revision tags: OPENBSD_4_0_BASE
# 1.48 19-Jun-2006 deraadt

move clock_subr.c to a better place, and now it is always in the kernel
so that things can use it; tested on all architectures; ok kettenis


# 1.47 23-Apr-2006 kettenis

Add puc(4) and com at puc.
ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.46 18-Jan-2006 miod

Factorize akbd and ams drivers between mac68k and macppc; while there, start
moving out common adb code as well, and merge adb_direct.c into adb.c to
simplify external header files.

No functional change; more cleanups to come.


# 1.45 03-Jan-2006 xsa

work in progress on the Apple Sudden Motion Sensor found in recent
PowerBooks and iBooks, driver is commented out for now;
with prodding, help and ok from kettenis@, ok deraadt@.


# 1.44 01-Jan-2006 deraadt

switch from macppc-specific maciic(4) driver to the generic iic(4),
after teaching it to use a function pointer to get back to the OFW
scan.. this will also help the sparc64 later; ok kettenis


# 1.43 21-Dec-2005 miod

Remove aed(4) on macppc, nothing uses its functionality since key repeat is
handled by wscons and mouse emulation was never enabled or documented.


# 1.42 20-Dec-2005 brad

Add a Apple touchpad driver for newer PowerBook's and iBook's.

From Johan Wall�n on NetBSD's macppc list.

ok deraadt@


# 1.41 19-Nov-2005 kettenis

Apple "onyx" audio device driver.


# 1.40 17-Nov-2005 drahn

add attachment for openpic behind memc, for newer G5 systems.
only attaches a parent openpic, not a slave openpic. ok kettenis


# 1.39 16-Nov-2005 kettenis

Add support for the I2C controller on via-pmu.
ok deraadt@


# 1.38 16-Nov-2005 deraadt

macppc can have gpio


# 1.37 15-Nov-2005 deraadt

move lm87 to dev/i2c; ok kettenis


# 1.36 14-Nov-2005 kettenis

Add lmenv(4), an System Hardware Minitor device that attaches to the I2C bus.
ok deraadt@


# 1.35 13-Nov-2005 kettenis

maciic at ki2c
ok deraadt@


# 1.34 12-Nov-2005 kettenis

Add i2cbus to smu and i2c to maciic.


# 1.33 11-Nov-2005 kettenis

Add maciic(4), an OpenFirware aware version of iic(4).


# 1.32 06-Nov-2005 drahn

Add attachment of ki2c at memc as well as macobio, wil be used on G5.


# 1.31 31-Oct-2005 brad

work in progress on a tumbler driver, driver is commented out for now.


# 1.30 31-Oct-2005 joris

add aoa audio support, found in several macppc machines
ok drahn@


# 1.29 30-Oct-2005 joris

add daca audio support, found in some macppc machines;
ok drahn@


# 1.28 26-Oct-2005 joris

add an i2s framework, which can be reused in new audio drivers
for macppc, as most modern Apple machines have i2s-based audio.

also let snapper use i2s.c right away;

tested by Antoine Jacoutot, drahn@ and kettenis@
"yes, commit!" drahn@, ok kettenis@


# 1.27 19-Oct-2005 kettenis

Add smu(4).
ok drahn@


# 1.26 29-Sep-2005 kettenis

Add driver for HyperTransport as found in G5 Macs.
ok drahn@


Revision tags: OPENBSD_3_8_BASE
# 1.25 04-May-2005 drahn

move gpio(_obio) stuff to macgpio, currently it collides with the MI gpio
ok miod@ grange@


Revision tags: OPENBSD_3_7_BASE
# 1.24 08-Mar-2005 tdeval

Cosmetics...
Mainly remove space between locators parens, replace spaces with tabs
where appropriate and consistently align dependencies.


# 1.23 05-Mar-2005 tdeval

Clean up the tree from incomplete, unreliable and unsupported IEEE1394 code.
Ok deraadt@, miod@


# 1.22 08-Oct-2004 grange

Move dev/cons.c to MI conf/files.

ok miod@


# 1.21 16-Sep-2004 mickey

cleanup deafult locators (blah ?); please check that your most hated architecture is still fluffy (;


Revision tags: OPENBSD_3_6_BASE
# 1.20 20-Jul-2004 miod

Allow a kernel to specify wd* as root or swap device;
spotted by Waldemar Brodkorb.


Revision tags: SMP_SYNC_A SMP_SYNC_B
# 1.19 10-May-2004 drahn

mediabay driver to configure ata bus attached to CD on pismo Powerbook
tested by Glen Barney and Okan Demirmen.


Revision tags: OPENBSD_3_5_BASE
# 1.18 11-Jan-2004 drahn

plug snapper audio into build. ok dhartmei@


Revision tags: OPENBSD_3_4_BASE
# 1.17 05-Jun-2003 drahn

ATA100 driver for apple's new machines, aka kauai.
This is working with udma on a 12" PBG4, but dma is disabled for now,
too many hardcoded values. 'wdc...flags 0x1' will enable it.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_SYNC_A UBC_SYNC_B
# 1.16 14-Sep-2002 deraadt

spaces


# 1.15 06-Sep-2002 drahn

Remove the gm driver, the MI gem works better at this point.


# 1.14 06-Sep-2002 drahn

Serial console support for macppc. Serial console will work if the modem
has been replaced with a serial port adapter on any machine that has
a real serial port internally. This will also power on the internal modem
for keylargo based machines (tested on original PBG4) when the serial port
is open. ok miod@


# 1.13 23-Jul-2002 drahn

Cardbus/pcmcia support for macppc. parts borrowed from NetBSD, and other
portions of the tree.


# 1.12 25-Jun-2002 itojun

IEEE1394 infrastructure part.
IP-over-FW and SCSI over FW are being worked on.


# 1.11 23-Jun-2002 itojun

committed by mistake


# 1.10 23-Jun-2002 itojun

make CAPS_IS_CONTROL a default. pvalchev ok
(translates weird ADB capslock keycode to more normal behavior)


# 1.9 08-Jun-2002 miod

One ddb to rule them all.

Move the ddb files form macppc/macppc to powerpc/ddb, so that mvmeppc
can benefit from the better ddb that was in macppc.
db_interface.c is left as an md part.


# 1.8 29-Apr-2002 drahn

Change macppc vgafb from rcons to rasops, a faster color supporting virtual
terminal emulator for gfx console. tested by mattheiu, miod.


# 1.7 29-Apr-2002 drahn

cleanup, remove devices which macppc is likely to never have, comment
drivers not currently present in source space.


Revision tags: OPENBSD_3_1_BASE
# 1.6 23-Mar-2002 deraadt

typo repair; openbsd@davidkrause.com


Revision tags: UBC_BASE
# 1.5 14-Dec-2001 drahn

branches: 1.5.2;
hme can build on macppc, and and would work if the pci-pci bridge would
route the interrupts correctly.


Revision tags: OPENBSD_3_0_BASE
# 1.4 03-Oct-2001 drahn

branches: 1.4.4;
apm support for macppc. This is not fully implemented, sleep modes
and power event are not handled, however it is enough support
to poll the battery/AC/charging states of the system.
Code by Alexander Guy.


# 1.3 16-Sep-2001 drahn

Update the bmac (if_bm) to a newer version from NetBSD.
Now uses mii/mii_bitbang.
Driver still has performance issues, It does not transfer
as fast data as it should. No worse than before.
Need to investigate a dhclient reported error:
'ip length 331 disagrees with bytes recieved 336'. only on if_bm.


# 1.2 01-Sep-2001 drahn

correct typo in file conversion.


# 1.1 01-Sep-2001 drahn

The "powerpc" port which has supported the newer Apple Macintosh powerpc based
is being renamed to macppc. This is to allow sharing of common code
between different powerpc base platforms.

Most of the work involved in the renaming process was performed by miod@

Files moved from powerpc/conf to macppc/conf

files.powerpc was modified to keep powerpc common files.