History log of /openbsd-current/sys/arch/alpha/conf/files.alpha
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.108 06-Feb-2023 miod

Unifdef -U _PMAP_MAY_USE_PROM_CONSOLE. This code hasn't been needed in years
since the TC machines have switched to the MI zstty code.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.107 14-Feb-2018 jsg

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


# 1.106 25-Jan-2018 mpi

Move common mutex implementations to a MI place.

Archs not yet converted can to the jump by defining __USE_MI_MUTEX.

ok visa@


# 1.105 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


Revision tags: OPENBSD_6_2_BASE
# 1.104 05-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.

Late during kernel boot, smash the startup code with traps so that
it does not point to the other randomly placed code. It has be smashed,
because alpha (insecurely in my view) runs in the KSEG0 space.

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 is gone.

Ramdisk kernels cannot be compiled like this, because they are gzip'd.
When the internal pointer references change, the compression dictionary
bloats and results in poorer compression.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.103 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


Revision tags: OPENBSD_5_8_BASE
# 1.102 17-Jul-2015 tedu

remove obsolete INET kernel option


Revision tags: OPENBSD_5_7_BASE
# 1.101 24-Dec-2014 miod

tsciic(4): i2c controller onboard Tsunami and Titan chipsets, gives access to
the fan sensors on systems without RMC. From NetBSD, ok deraadt@


# 1.100 04-Dec-2014 tedu

as promised 18 years ago, consolidate isa floppy disks in files.isa
ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.99 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.98 26-Jan-2014 miod

Work in progress work towards SMP, heavily based upon NetBSD. The MP kernel
will boot multiuser, but will deadlock under load, and I can't find my
mistake yet.


# 1.97 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.96 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


Revision tags: OPENBSD_5_4_BASE
# 1.95 09-Mar-2013 deraadt

remove unneccessary needs-flag


# 1.94 09-Mar-2013 deraadt

First steps towards alphabook1 support; from netbsd
miod did not disagree.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.93 15-Nov-2011 deraadt

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


# 1.92 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.91 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.90 30-Jun-2010 tedu

remove compat_osf1 support from the kernel
ok deraadt miod


Revision tags: OPENBSD_4_7_BASE
# 1.89 07-Nov-2009 miod

Blink leds on the DEC 3000 models (three different led types).


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.88 09-Nov-2008 oga

Rework that way that agp attaches.

previously, we had a static list of pcidevs and which agp driver would
be interanlly attached. Instead, split the agp drivers so they work like
audio(4), where we attach a driver, which sets up some callbacks and
initial state, then attaches the interface (agp(4)). Since this allows
us to attach different drivers in different places, and give them
/proper/ probe functions move most of the drivers back to attaching at
pchb, where they should, and intagp (formerly agp_i810) stays attaching
at vga, since it's part of the intel integrated graphics chips.

Diff shrinks the kernel slightly, gets rid of the annoying "no integrated
graphics" warning, and allows more cleanup later.

Tested by many. fix for alpha build (the only other vga_pci.c consumer)
suggested by miod.


Revision tags: OPENBSD_4_4_BASE
# 1.87 19-Jul-2008 miod

Add code to walk the eisa configuration, from NetBSD. This configuration
is not used yet, but this seems to ``warm up'' the eisa chips so that
accesses to the eisa bus later do not cause machine checks.


# 1.86 20-May-2008 kettenis

Remove stray "attach com at isapnp with com_isapnp".
ok miod@


# 1.85 21-Mar-2008 deraadt

crank maxusers on some architectures


Revision tags: OPENBSD_4_3_BASE
# 1.84 29-Dec-2007 miod

Unifdef NO_IEEE in the libkern softfloat code, and put an appropriate rule
in files.alpha to compensate for NO_IEEE kernels.

This will allow the softfloat code to be used by other platforms than alpha.


# 1.83 25-Nov-2007 deraadt

libkern, begone. Move to a new mechanism where config(8)'s "file"
directive can select between MI and MD versions of these files. At
the same time, adjust the boot programs to pick exactly what they need,
instead of the 7 or 8 mechanisms previously used.

There will be some fallout from this, but testing it all by myself is a
ridiculously slow process; it will be finished in-tree.

Various developers were very nice and avoided making fun of me when I
was gibbering in the corner..


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

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

ok gwk@


# 1.81 28-May-2007 beck

Maintaining a broken compatibility layer for a broken OS is not a productive
activity for anyone. Bye bye COMPAT_NETBSD. ok tedu@, deraadt@, and many others
in the hackathon room.


# 1.80 05-May-2007 martin

simple single-processor only mutex implementation

ok miod@


# 1.79 13-Apr-2007 martin

get alpha SMP into a state where it at least compiles:

- add machine-dependent spinlock operations
- add basic interprocessor interrupt sending and receiving code

from NetBSD; ok miod@


# 1.78 16-Mar-2007 robert

add DEC_KN300 support from NetBSD;

This code makes it possible to run on some of the AlphaServers,
namely AlphaServer 4100 and 1200.

add mcbus(4) and mcpcia(4) to provide support for the system bus and
the MCPCIA-to-PCI bus adapter that can be found in these systems

allow the pci_swiz_bus code to handle variable extent names
to be able to handle more than one mcpcia(4)

"just commit it" deraadt@


Revision tags: OPENBSD_4_1_BASE
# 1.77 27-Sep-2006 grange

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


Revision tags: OPENBSD_4_0_BASE
# 1.76 13-Aug-2006 miod

Make sure we generate sfb.h and cfb.h, even though support is not there yet.


# 1.75 07-Aug-2006 miod

rcons removal fallout, spotted by kettenis@


# 1.74 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.73 06-May-2006 brad

- Add vge(4), lge(4), hme(4), mtd(4), luphy(4) and ciphy(4)
- Move tl(4) and ste(4) out of the untested section


Revision tags: OPENBSD_3_9_BASE
# 1.72 23-Feb-2006 miod

Better dependency rules in files.alpha, also point to cpuconf.c in the
source tree instead of copying it to the kernel compilation directory for
no good reason.


# 1.71 23-Feb-2006 miod

Only compile badaddr() if we have support for TurboChannel, apecs, cia or lca,
as they are the only users of badaddr(); shrinks RAMDISKB a little more.


# 1.70 12-Feb-2006 miod

Remove dead isabeep driver and unused isabeep() function.


# 1.69 27-Dec-2005 deraadt

enable some i2c bus drivers (piixpm(4), alipm(4), ichiic(4)) as needed
by each arch
enable adc(4), admtemp(4), admlc(4), admtm(4), admtmp(4), admtt(4),
adt(4), lm(4), lmenv(4), lmtemp(4), maxds(4), and maxtmp(4) iic chip
drivers too, which provide gobs of sensor info


Revision tags: OPENBSD_3_8_BASE
# 1.68 14-Jul-2005 uwe

More netccitt and netns removals; OK henning, brad, mickey


# 1.67 09-May-2005 brad

- add alpha optimized in4_cksum
- de register and use ANSI prototypes

From NetBSD

ok miod@ martin@


# 1.66 01-May-2005 brad

To allow for MD override of in4_cksum()...

ok deraadt@


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

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


# 1.64 04-Nov-2004 miod

Stricter rules for isadma_bounce, shaves 4KB off a RAMDISKB kernel.


# 1.63 08-Oct-2004 grange

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

ok miod@


# 1.62 18-Sep-2004 pvalchev

add puc; ok miod


# 1.61 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.60 03-Jul-2004 millert

Cruft removal; ed(4) has been dead for ages. OK deraadt@ miod@


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A UBC_SYNC_B
# 1.59 30-Jun-2002 miod

AlphaServer 800 and 1000 support; from NetBSD. Tested by Tor Houghton.
Added to floppy31 still fits.


# 1.58 02-May-2002 miod

Big TURBOchannel support catchup from NetBSD, part 1.
A few local changes and tweaks remain.

This bring DEC 3000 machines back in the game, but framebuffers are still
not supported at the moment.

Thanks to ericj@ and nate@ for supplying me a DEC 3000 for testing.


# 1.57 28-Apr-2002 pvalchev

IEEE 754 floating point completion code, and implementation of the
FP_C (Floating Point Control Quadword).

From ross@NetBSD. Added a way to disable it with option NO_IEEE,
which appears on the ramdisks to save space. This affects only
programs compiled with -mieee, and what it essentially does is
enabling infinities and NaNs, instead of generating SIGFPE on
division by zero, overflow, etc.
ok art, deraadt


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

typo repair; openbsd@davidkrause.com


# 1.55 09-Feb-2002 ericj

these functions are no longer needed


# 1.54 23-Jan-2002 ericj

add support for AlphaPC 64.
from NetBSD.


Revision tags: UBC_BASE
# 1.53 05-Nov-2001 art

branches: 1.53.2;
irongate needs isadma bouncing.


# 1.52 05-Nov-2001 art

Code for isadma bouncing.
From NetBSD.


# 1.51 26-Oct-2001 nate

First cut at a port of isadma and floppy driver. ok art@
From NetBSD via jay@rootaction.net


Revision tags: OPENBSD_3_0_BASE
# 1.50 26-Jun-2001 mickey

i2o or iop at pci fails


# 1.49 11-May-2001 deraadt

more rd merge (headcolds suck)


# 1.48 11-May-2001 deraadt

unify


Revision tags: OPENBSD_2_9_BASE
# 1.47 14-Apr-2001 art

Add support for Alpha Processor, Inc. UP1000.
From NetBSD.


# 1.46 21-Mar-2001 art

Move files from common to dev to be more like other archs
(and so that tab completion on "compile" works as on other archs. :))


# 1.45 18-Mar-2001 nate

Enable rasops and wsfonts for alpha so TGA can use them


# 1.44 07-Mar-2001 ericj

lca and apecs buses need sgmap glue as well.
pointed out by wasilx@forest.ihep.su - PR1713


# 1.43 16-Feb-2001 jason

bring in netbsd bus_dma stuff for lca and apecs busses


# 1.42 01-Feb-2001 art

pckbc_isa seems to have moved to files.isa


# 1.41 11-Dec-2000 nate

Some alphas have USB


# 1.40 26-Nov-2000 millert

alpha clock fixes from NetBSD
Fixes ' no more 'WARNING: preposterous clock chip time' on 164SX


# 1.39 25-Nov-2000 art

pull in cy82c693 for sio and pceb


# 1.38 16-Nov-2000 ericj

update for recent conf/files update


# 1.37 16-Nov-2000 ericj

initial support for 21264 systems.
from NetBSD.


# 1.36 16-Nov-2000 ericj

configure vga console, keyboard and mouse once again. support coming soon.


# 1.35 08-Nov-2000 art

Merge in big portions of the improvements NetBSD did to their alpha port.
Highlights: UVM, PMAP_NEW, bus_dma (only on some buses for now), new hardware
support, possiblity for ELF, etc, etc. Too much to mention.

This is still work in progress. video consoles might be broken, otherwise
we have basically the same functionality as before plus more.


Revision tags: OPENBSD_2_8_BASE
# 1.34 12-Aug-2000 ericj

use osf sigcode for compat_osf1


# 1.33 05-Jul-2000 ericj

change these to use asc as well


# 1.32 03-Jul-2000 ericj

esp define was moved to conf/files


# 1.31 03-Jul-2000 mickey

closer approximation to an alpha using new wscons.
tga moved to dev/pci.
by request from alpha people.


Revision tags: OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.30 08-Nov-1999 mickey

branches: 1.30.2;
move MI definition of rd into it's MI place also fixing
attributes, allowing kernels to exist w/ rd as the only disk device.
tested on a few archs; niels@ & millert@ ok


Revision tags: OPENBSD_2_6_BASE
# 1.29 14-Sep-1999 kstailey

signals


# 1.28 12-Sep-1999 kstailey

Add COMPAT_NETBSD. Currently only works for ELF64. Many missing system calls.


# 1.27 08-Aug-1999 deraadt

prepare for isapnp, if it ever really happens


# 1.26 30-Jul-1999 deraadt

acd goes away


# 1.25 25-Jul-1999 csapuntz

Enable new ATA/ATAPISCSI functionality as default.


Revision tags: OPENBSD_2_5_BASE
# 1.24 08-Jan-1999 niklas

s/pcppi/pckbc/ due to conflict with "real" pcppi and as a step towards
sys/dev/pckbc. Will probably still not coexist with pcppi but now alpha at
least configs. I will come back here anyday and improve.


Revision tags: OPENBSD_2_4_BASE
# 1.23 22-Sep-1998 jason

Add mii layer for alpha (needed by new fxp)


# 1.22 01-Jul-1998 angelos

Add pciide_machdep.c; that file is taken from NetBSD (forgot to
mention in previous commit).


Revision tags: OPENBSD_2_3_BASE
# 1.21 07-Apr-1998 deraadt

enable _insque and _remque; don


# 1.20 04-Apr-1998 deraadt

undo unapproved change


# 1.19 04-Apr-1998 don

Include arch/alpha/support.c required by netiso/netccitt/netns


# 1.18 06-Jan-1998 niklas

Dummy PnP support, so alpha will compile


# 1.17 10-Nov-1997 mickey

use files.wscons


# 1.16 06-Nov-1997 niklas

Add some missing things for the MI vga driver. Move wscons to an MI place as
well. $OpenBSD$ tagging


# 1.15 06-Nov-1997 niklas

We need an MI vga driver. The alpha one was most MI. Not entirely yet though.
Some files were move behind CVS back.


Revision tags: OPENBSD_2_2_BASE
# 1.14 09-Jul-1997 deraadt

alpha/common/ insults my filec


# 1.13 06-Jul-1997 niklas

DDB files + some major number specifications that were missing


# 1.12 06-Jul-1997 millert

maxpartitions 16


Revision tags: OPENBSD_2_1_BASE
# 1.11 13-Apr-1997 millert

Add support for PCI NE2000 clones. I finally got around to doing this :-)
Tested on alpha, should work on i386 as well. Note that we treat
a PCI NE2000 as a 16-bit card for now since the driver can not
deal with > 16 bit cards. To fix this isa16bit in ed_softc needs to
be changed to bus_width (in bytes). I plan to do this as part
of the split ed driver.


# 1.10 25-Mar-1997 niklas

Addition of the ed ethernet driver


# 1.9 26-Feb-1997 niklas

Workaround for some weird cpp bug that made cpuconf.o builds fail


# 1.8 24-Jan-1997 niklas

Sync with NetBSD 961207


# 1.7 08-Dec-1996 niklas

Merge to NetBSD 961107, i.e. mostly new bus.h


# 1.6 30-Oct-1996 niklas

Merge to NetBSD 961020. Retained our kernel APIs where NetBSD has changed.
-Wall -Wstrict-prototypes -Wmissing-prototypes too.


Revision tags: OPENBSD_2_0_BASE
# 1.5 29-Jul-1996 niklas

Bring forward alpha configuration files to 0722. Add OpenBSD
tags. s/netbsd/bsd/. Add ATAPI and dummy PCMCIA defines.


# 1.4 18-Jun-1996 deraadt

sync to 0616, retaining local diffs


# 1.3 26-Dec-1995 deraadt

from netbsd; rename TC 'asic' to 'ioasic'


# 1.2 14-Dec-1995 deraadt

update to netbsd


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.107 14-Feb-2018 jsg

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


# 1.106 25-Jan-2018 mpi

Move common mutex implementations to a MI place.

Archs not yet converted can to the jump by defining __USE_MI_MUTEX.

ok visa@


# 1.105 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


Revision tags: OPENBSD_6_2_BASE
# 1.104 05-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.

Late during kernel boot, smash the startup code with traps so that
it does not point to the other randomly placed code. It has be smashed,
because alpha (insecurely in my view) runs in the KSEG0 space.

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 is gone.

Ramdisk kernels cannot be compiled like this, because they are gzip'd.
When the internal pointer references change, the compression dictionary
bloats and results in poorer compression.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.103 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


Revision tags: OPENBSD_5_8_BASE
# 1.102 17-Jul-2015 tedu

remove obsolete INET kernel option


Revision tags: OPENBSD_5_7_BASE
# 1.101 24-Dec-2014 miod

tsciic(4): i2c controller onboard Tsunami and Titan chipsets, gives access to
the fan sensors on systems without RMC. From NetBSD, ok deraadt@


# 1.100 04-Dec-2014 tedu

as promised 18 years ago, consolidate isa floppy disks in files.isa
ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.99 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.98 26-Jan-2014 miod

Work in progress work towards SMP, heavily based upon NetBSD. The MP kernel
will boot multiuser, but will deadlock under load, and I can't find my
mistake yet.


# 1.97 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.96 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


Revision tags: OPENBSD_5_4_BASE
# 1.95 09-Mar-2013 deraadt

remove unneccessary needs-flag


# 1.94 09-Mar-2013 deraadt

First steps towards alphabook1 support; from netbsd
miod did not disagree.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.93 15-Nov-2011 deraadt

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


# 1.92 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.91 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.90 30-Jun-2010 tedu

remove compat_osf1 support from the kernel
ok deraadt miod


Revision tags: OPENBSD_4_7_BASE
# 1.89 07-Nov-2009 miod

Blink leds on the DEC 3000 models (three different led types).


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.88 09-Nov-2008 oga

Rework that way that agp attaches.

previously, we had a static list of pcidevs and which agp driver would
be interanlly attached. Instead, split the agp drivers so they work like
audio(4), where we attach a driver, which sets up some callbacks and
initial state, then attaches the interface (agp(4)). Since this allows
us to attach different drivers in different places, and give them
/proper/ probe functions move most of the drivers back to attaching at
pchb, where they should, and intagp (formerly agp_i810) stays attaching
at vga, since it's part of the intel integrated graphics chips.

Diff shrinks the kernel slightly, gets rid of the annoying "no integrated
graphics" warning, and allows more cleanup later.

Tested by many. fix for alpha build (the only other vga_pci.c consumer)
suggested by miod.


Revision tags: OPENBSD_4_4_BASE
# 1.87 19-Jul-2008 miod

Add code to walk the eisa configuration, from NetBSD. This configuration
is not used yet, but this seems to ``warm up'' the eisa chips so that
accesses to the eisa bus later do not cause machine checks.


# 1.86 20-May-2008 kettenis

Remove stray "attach com at isapnp with com_isapnp".
ok miod@


# 1.85 21-Mar-2008 deraadt

crank maxusers on some architectures


Revision tags: OPENBSD_4_3_BASE
# 1.84 29-Dec-2007 miod

Unifdef NO_IEEE in the libkern softfloat code, and put an appropriate rule
in files.alpha to compensate for NO_IEEE kernels.

This will allow the softfloat code to be used by other platforms than alpha.


# 1.83 25-Nov-2007 deraadt

libkern, begone. Move to a new mechanism where config(8)'s "file"
directive can select between MI and MD versions of these files. At
the same time, adjust the boot programs to pick exactly what they need,
instead of the 7 or 8 mechanisms previously used.

There will be some fallout from this, but testing it all by myself is a
ridiculously slow process; it will be finished in-tree.

Various developers were very nice and avoided making fun of me when I
was gibbering in the corner..


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

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

ok gwk@


# 1.81 28-May-2007 beck

Maintaining a broken compatibility layer for a broken OS is not a productive
activity for anyone. Bye bye COMPAT_NETBSD. ok tedu@, deraadt@, and many others
in the hackathon room.


# 1.80 05-May-2007 martin

simple single-processor only mutex implementation

ok miod@


# 1.79 13-Apr-2007 martin

get alpha SMP into a state where it at least compiles:

- add machine-dependent spinlock operations
- add basic interprocessor interrupt sending and receiving code

from NetBSD; ok miod@


# 1.78 16-Mar-2007 robert

add DEC_KN300 support from NetBSD;

This code makes it possible to run on some of the AlphaServers,
namely AlphaServer 4100 and 1200.

add mcbus(4) and mcpcia(4) to provide support for the system bus and
the MCPCIA-to-PCI bus adapter that can be found in these systems

allow the pci_swiz_bus code to handle variable extent names
to be able to handle more than one mcpcia(4)

"just commit it" deraadt@


Revision tags: OPENBSD_4_1_BASE
# 1.77 27-Sep-2006 grange

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


Revision tags: OPENBSD_4_0_BASE
# 1.76 13-Aug-2006 miod

Make sure we generate sfb.h and cfb.h, even though support is not there yet.


# 1.75 07-Aug-2006 miod

rcons removal fallout, spotted by kettenis@


# 1.74 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.73 06-May-2006 brad

- Add vge(4), lge(4), hme(4), mtd(4), luphy(4) and ciphy(4)
- Move tl(4) and ste(4) out of the untested section


Revision tags: OPENBSD_3_9_BASE
# 1.72 23-Feb-2006 miod

Better dependency rules in files.alpha, also point to cpuconf.c in the
source tree instead of copying it to the kernel compilation directory for
no good reason.


# 1.71 23-Feb-2006 miod

Only compile badaddr() if we have support for TurboChannel, apecs, cia or lca,
as they are the only users of badaddr(); shrinks RAMDISKB a little more.


# 1.70 12-Feb-2006 miod

Remove dead isabeep driver and unused isabeep() function.


# 1.69 27-Dec-2005 deraadt

enable some i2c bus drivers (piixpm(4), alipm(4), ichiic(4)) as needed
by each arch
enable adc(4), admtemp(4), admlc(4), admtm(4), admtmp(4), admtt(4),
adt(4), lm(4), lmenv(4), lmtemp(4), maxds(4), and maxtmp(4) iic chip
drivers too, which provide gobs of sensor info


Revision tags: OPENBSD_3_8_BASE
# 1.68 14-Jul-2005 uwe

More netccitt and netns removals; OK henning, brad, mickey


# 1.67 09-May-2005 brad

- add alpha optimized in4_cksum
- de register and use ANSI prototypes

From NetBSD

ok miod@ martin@


# 1.66 01-May-2005 brad

To allow for MD override of in4_cksum()...

ok deraadt@


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

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


# 1.64 04-Nov-2004 miod

Stricter rules for isadma_bounce, shaves 4KB off a RAMDISKB kernel.


# 1.63 08-Oct-2004 grange

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

ok miod@


# 1.62 18-Sep-2004 pvalchev

add puc; ok miod


# 1.61 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.60 03-Jul-2004 millert

Cruft removal; ed(4) has been dead for ages. OK deraadt@ miod@


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A UBC_SYNC_B
# 1.59 30-Jun-2002 miod

AlphaServer 800 and 1000 support; from NetBSD. Tested by Tor Houghton.
Added to floppy31 still fits.


# 1.58 02-May-2002 miod

Big TURBOchannel support catchup from NetBSD, part 1.
A few local changes and tweaks remain.

This bring DEC 3000 machines back in the game, but framebuffers are still
not supported at the moment.

Thanks to ericj@ and nate@ for supplying me a DEC 3000 for testing.


# 1.57 28-Apr-2002 pvalchev

IEEE 754 floating point completion code, and implementation of the
FP_C (Floating Point Control Quadword).

From ross@NetBSD. Added a way to disable it with option NO_IEEE,
which appears on the ramdisks to save space. This affects only
programs compiled with -mieee, and what it essentially does is
enabling infinities and NaNs, instead of generating SIGFPE on
division by zero, overflow, etc.
ok art, deraadt


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

typo repair; openbsd@davidkrause.com


# 1.55 09-Feb-2002 ericj

these functions are no longer needed


# 1.54 23-Jan-2002 ericj

add support for AlphaPC 64.
from NetBSD.


Revision tags: UBC_BASE
# 1.53 05-Nov-2001 art

branches: 1.53.2;
irongate needs isadma bouncing.


# 1.52 05-Nov-2001 art

Code for isadma bouncing.
From NetBSD.


# 1.51 26-Oct-2001 nate

First cut at a port of isadma and floppy driver. ok art@
From NetBSD via jay@rootaction.net


Revision tags: OPENBSD_3_0_BASE
# 1.50 26-Jun-2001 mickey

i2o or iop at pci fails


# 1.49 11-May-2001 deraadt

more rd merge (headcolds suck)


# 1.48 11-May-2001 deraadt

unify


Revision tags: OPENBSD_2_9_BASE
# 1.47 14-Apr-2001 art

Add support for Alpha Processor, Inc. UP1000.
From NetBSD.


# 1.46 21-Mar-2001 art

Move files from common to dev to be more like other archs
(and so that tab completion on "compile" works as on other archs. :))


# 1.45 18-Mar-2001 nate

Enable rasops and wsfonts for alpha so TGA can use them


# 1.44 07-Mar-2001 ericj

lca and apecs buses need sgmap glue as well.
pointed out by wasilx@forest.ihep.su - PR1713


# 1.43 16-Feb-2001 jason

bring in netbsd bus_dma stuff for lca and apecs busses


# 1.42 01-Feb-2001 art

pckbc_isa seems to have moved to files.isa


# 1.41 11-Dec-2000 nate

Some alphas have USB


# 1.40 26-Nov-2000 millert

alpha clock fixes from NetBSD
Fixes ' no more 'WARNING: preposterous clock chip time' on 164SX


# 1.39 25-Nov-2000 art

pull in cy82c693 for sio and pceb


# 1.38 16-Nov-2000 ericj

update for recent conf/files update


# 1.37 16-Nov-2000 ericj

initial support for 21264 systems.
from NetBSD.


# 1.36 16-Nov-2000 ericj

configure vga console, keyboard and mouse once again. support coming soon.


# 1.35 08-Nov-2000 art

Merge in big portions of the improvements NetBSD did to their alpha port.
Highlights: UVM, PMAP_NEW, bus_dma (only on some buses for now), new hardware
support, possiblity for ELF, etc, etc. Too much to mention.

This is still work in progress. video consoles might be broken, otherwise
we have basically the same functionality as before plus more.


Revision tags: OPENBSD_2_8_BASE
# 1.34 12-Aug-2000 ericj

use osf sigcode for compat_osf1


# 1.33 05-Jul-2000 ericj

change these to use asc as well


# 1.32 03-Jul-2000 ericj

esp define was moved to conf/files


# 1.31 03-Jul-2000 mickey

closer approximation to an alpha using new wscons.
tga moved to dev/pci.
by request from alpha people.


Revision tags: OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.30 08-Nov-1999 mickey

branches: 1.30.2;
move MI definition of rd into it's MI place also fixing
attributes, allowing kernels to exist w/ rd as the only disk device.
tested on a few archs; niels@ & millert@ ok


Revision tags: OPENBSD_2_6_BASE
# 1.29 14-Sep-1999 kstailey

signals


# 1.28 12-Sep-1999 kstailey

Add COMPAT_NETBSD. Currently only works for ELF64. Many missing system calls.


# 1.27 08-Aug-1999 deraadt

prepare for isapnp, if it ever really happens


# 1.26 30-Jul-1999 deraadt

acd goes away


# 1.25 25-Jul-1999 csapuntz

Enable new ATA/ATAPISCSI functionality as default.


Revision tags: OPENBSD_2_5_BASE
# 1.24 08-Jan-1999 niklas

s/pcppi/pckbc/ due to conflict with "real" pcppi and as a step towards
sys/dev/pckbc. Will probably still not coexist with pcppi but now alpha at
least configs. I will come back here anyday and improve.


Revision tags: OPENBSD_2_4_BASE
# 1.23 22-Sep-1998 jason

Add mii layer for alpha (needed by new fxp)


# 1.22 01-Jul-1998 angelos

Add pciide_machdep.c; that file is taken from NetBSD (forgot to
mention in previous commit).


Revision tags: OPENBSD_2_3_BASE
# 1.21 07-Apr-1998 deraadt

enable _insque and _remque; don


# 1.20 04-Apr-1998 deraadt

undo unapproved change


# 1.19 04-Apr-1998 don

Include arch/alpha/support.c required by netiso/netccitt/netns


# 1.18 06-Jan-1998 niklas

Dummy PnP support, so alpha will compile


# 1.17 10-Nov-1997 mickey

use files.wscons


# 1.16 06-Nov-1997 niklas

Add some missing things for the MI vga driver. Move wscons to an MI place as
well. $OpenBSD$ tagging


# 1.15 06-Nov-1997 niklas

We need an MI vga driver. The alpha one was most MI. Not entirely yet though.
Some files were move behind CVS back.


Revision tags: OPENBSD_2_2_BASE
# 1.14 09-Jul-1997 deraadt

alpha/common/ insults my filec


# 1.13 06-Jul-1997 niklas

DDB files + some major number specifications that were missing


# 1.12 06-Jul-1997 millert

maxpartitions 16


Revision tags: OPENBSD_2_1_BASE
# 1.11 13-Apr-1997 millert

Add support for PCI NE2000 clones. I finally got around to doing this :-)
Tested on alpha, should work on i386 as well. Note that we treat
a PCI NE2000 as a 16-bit card for now since the driver can not
deal with > 16 bit cards. To fix this isa16bit in ed_softc needs to
be changed to bus_width (in bytes). I plan to do this as part
of the split ed driver.


# 1.10 25-Mar-1997 niklas

Addition of the ed ethernet driver


# 1.9 26-Feb-1997 niklas

Workaround for some weird cpp bug that made cpuconf.o builds fail


# 1.8 24-Jan-1997 niklas

Sync with NetBSD 961207


# 1.7 08-Dec-1996 niklas

Merge to NetBSD 961107, i.e. mostly new bus.h


# 1.6 30-Oct-1996 niklas

Merge to NetBSD 961020. Retained our kernel APIs where NetBSD has changed.
-Wall -Wstrict-prototypes -Wmissing-prototypes too.


Revision tags: OPENBSD_2_0_BASE
# 1.5 29-Jul-1996 niklas

Bring forward alpha configuration files to 0722. Add OpenBSD
tags. s/netbsd/bsd/. Add ATAPI and dummy PCMCIA defines.


# 1.4 18-Jun-1996 deraadt

sync to 0616, retaining local diffs


# 1.3 26-Dec-1995 deraadt

from netbsd; rename TC 'asic' to 'ioasic'


# 1.2 14-Dec-1995 deraadt

update to netbsd


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.106 25-Jan-2018 mpi

Move common mutex implementations to a MI place.

Archs not yet converted can to the jump by defining __USE_MI_MUTEX.

ok visa@


# 1.105 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


Revision tags: OPENBSD_6_2_BASE
# 1.104 05-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.

Late during kernel boot, smash the startup code with traps so that
it does not point to the other randomly placed code. It has be smashed,
because alpha (insecurely in my view) runs in the KSEG0 space.

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 is gone.

Ramdisk kernels cannot be compiled like this, because they are gzip'd.
When the internal pointer references change, the compression dictionary
bloats and results in poorer compression.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.103 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


Revision tags: OPENBSD_5_8_BASE
# 1.102 17-Jul-2015 tedu

remove obsolete INET kernel option


Revision tags: OPENBSD_5_7_BASE
# 1.101 24-Dec-2014 miod

tsciic(4): i2c controller onboard Tsunami and Titan chipsets, gives access to
the fan sensors on systems without RMC. From NetBSD, ok deraadt@


# 1.100 04-Dec-2014 tedu

as promised 18 years ago, consolidate isa floppy disks in files.isa
ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.99 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.98 26-Jan-2014 miod

Work in progress work towards SMP, heavily based upon NetBSD. The MP kernel
will boot multiuser, but will deadlock under load, and I can't find my
mistake yet.


# 1.97 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.96 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


Revision tags: OPENBSD_5_4_BASE
# 1.95 09-Mar-2013 deraadt

remove unneccessary needs-flag


# 1.94 09-Mar-2013 deraadt

First steps towards alphabook1 support; from netbsd
miod did not disagree.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.93 15-Nov-2011 deraadt

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


# 1.92 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.91 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.90 30-Jun-2010 tedu

remove compat_osf1 support from the kernel
ok deraadt miod


Revision tags: OPENBSD_4_7_BASE
# 1.89 07-Nov-2009 miod

Blink leds on the DEC 3000 models (three different led types).


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.88 09-Nov-2008 oga

Rework that way that agp attaches.

previously, we had a static list of pcidevs and which agp driver would
be interanlly attached. Instead, split the agp drivers so they work like
audio(4), where we attach a driver, which sets up some callbacks and
initial state, then attaches the interface (agp(4)). Since this allows
us to attach different drivers in different places, and give them
/proper/ probe functions move most of the drivers back to attaching at
pchb, where they should, and intagp (formerly agp_i810) stays attaching
at vga, since it's part of the intel integrated graphics chips.

Diff shrinks the kernel slightly, gets rid of the annoying "no integrated
graphics" warning, and allows more cleanup later.

Tested by many. fix for alpha build (the only other vga_pci.c consumer)
suggested by miod.


Revision tags: OPENBSD_4_4_BASE
# 1.87 19-Jul-2008 miod

Add code to walk the eisa configuration, from NetBSD. This configuration
is not used yet, but this seems to ``warm up'' the eisa chips so that
accesses to the eisa bus later do not cause machine checks.


# 1.86 20-May-2008 kettenis

Remove stray "attach com at isapnp with com_isapnp".
ok miod@


# 1.85 21-Mar-2008 deraadt

crank maxusers on some architectures


Revision tags: OPENBSD_4_3_BASE
# 1.84 29-Dec-2007 miod

Unifdef NO_IEEE in the libkern softfloat code, and put an appropriate rule
in files.alpha to compensate for NO_IEEE kernels.

This will allow the softfloat code to be used by other platforms than alpha.


# 1.83 25-Nov-2007 deraadt

libkern, begone. Move to a new mechanism where config(8)'s "file"
directive can select between MI and MD versions of these files. At
the same time, adjust the boot programs to pick exactly what they need,
instead of the 7 or 8 mechanisms previously used.

There will be some fallout from this, but testing it all by myself is a
ridiculously slow process; it will be finished in-tree.

Various developers were very nice and avoided making fun of me when I
was gibbering in the corner..


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

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

ok gwk@


# 1.81 28-May-2007 beck

Maintaining a broken compatibility layer for a broken OS is not a productive
activity for anyone. Bye bye COMPAT_NETBSD. ok tedu@, deraadt@, and many others
in the hackathon room.


# 1.80 05-May-2007 martin

simple single-processor only mutex implementation

ok miod@


# 1.79 13-Apr-2007 martin

get alpha SMP into a state where it at least compiles:

- add machine-dependent spinlock operations
- add basic interprocessor interrupt sending and receiving code

from NetBSD; ok miod@


# 1.78 16-Mar-2007 robert

add DEC_KN300 support from NetBSD;

This code makes it possible to run on some of the AlphaServers,
namely AlphaServer 4100 and 1200.

add mcbus(4) and mcpcia(4) to provide support for the system bus and
the MCPCIA-to-PCI bus adapter that can be found in these systems

allow the pci_swiz_bus code to handle variable extent names
to be able to handle more than one mcpcia(4)

"just commit it" deraadt@


Revision tags: OPENBSD_4_1_BASE
# 1.77 27-Sep-2006 grange

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


Revision tags: OPENBSD_4_0_BASE
# 1.76 13-Aug-2006 miod

Make sure we generate sfb.h and cfb.h, even though support is not there yet.


# 1.75 07-Aug-2006 miod

rcons removal fallout, spotted by kettenis@


# 1.74 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.73 06-May-2006 brad

- Add vge(4), lge(4), hme(4), mtd(4), luphy(4) and ciphy(4)
- Move tl(4) and ste(4) out of the untested section


Revision tags: OPENBSD_3_9_BASE
# 1.72 23-Feb-2006 miod

Better dependency rules in files.alpha, also point to cpuconf.c in the
source tree instead of copying it to the kernel compilation directory for
no good reason.


# 1.71 23-Feb-2006 miod

Only compile badaddr() if we have support for TurboChannel, apecs, cia or lca,
as they are the only users of badaddr(); shrinks RAMDISKB a little more.


# 1.70 12-Feb-2006 miod

Remove dead isabeep driver and unused isabeep() function.


# 1.69 27-Dec-2005 deraadt

enable some i2c bus drivers (piixpm(4), alipm(4), ichiic(4)) as needed
by each arch
enable adc(4), admtemp(4), admlc(4), admtm(4), admtmp(4), admtt(4),
adt(4), lm(4), lmenv(4), lmtemp(4), maxds(4), and maxtmp(4) iic chip
drivers too, which provide gobs of sensor info


Revision tags: OPENBSD_3_8_BASE
# 1.68 14-Jul-2005 uwe

More netccitt and netns removals; OK henning, brad, mickey


# 1.67 09-May-2005 brad

- add alpha optimized in4_cksum
- de register and use ANSI prototypes

From NetBSD

ok miod@ martin@


# 1.66 01-May-2005 brad

To allow for MD override of in4_cksum()...

ok deraadt@


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

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


# 1.64 04-Nov-2004 miod

Stricter rules for isadma_bounce, shaves 4KB off a RAMDISKB kernel.


# 1.63 08-Oct-2004 grange

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

ok miod@


# 1.62 18-Sep-2004 pvalchev

add puc; ok miod


# 1.61 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.60 03-Jul-2004 millert

Cruft removal; ed(4) has been dead for ages. OK deraadt@ miod@


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A UBC_SYNC_B
# 1.59 30-Jun-2002 miod

AlphaServer 800 and 1000 support; from NetBSD. Tested by Tor Houghton.
Added to floppy31 still fits.


# 1.58 02-May-2002 miod

Big TURBOchannel support catchup from NetBSD, part 1.
A few local changes and tweaks remain.

This bring DEC 3000 machines back in the game, but framebuffers are still
not supported at the moment.

Thanks to ericj@ and nate@ for supplying me a DEC 3000 for testing.


# 1.57 28-Apr-2002 pvalchev

IEEE 754 floating point completion code, and implementation of the
FP_C (Floating Point Control Quadword).

From ross@NetBSD. Added a way to disable it with option NO_IEEE,
which appears on the ramdisks to save space. This affects only
programs compiled with -mieee, and what it essentially does is
enabling infinities and NaNs, instead of generating SIGFPE on
division by zero, overflow, etc.
ok art, deraadt


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

typo repair; openbsd@davidkrause.com


# 1.55 09-Feb-2002 ericj

these functions are no longer needed


# 1.54 23-Jan-2002 ericj

add support for AlphaPC 64.
from NetBSD.


Revision tags: UBC_BASE
# 1.53 05-Nov-2001 art

branches: 1.53.2;
irongate needs isadma bouncing.


# 1.52 05-Nov-2001 art

Code for isadma bouncing.
From NetBSD.


# 1.51 26-Oct-2001 nate

First cut at a port of isadma and floppy driver. ok art@
From NetBSD via jay@rootaction.net


Revision tags: OPENBSD_3_0_BASE
# 1.50 26-Jun-2001 mickey

i2o or iop at pci fails


# 1.49 11-May-2001 deraadt

more rd merge (headcolds suck)


# 1.48 11-May-2001 deraadt

unify


Revision tags: OPENBSD_2_9_BASE
# 1.47 14-Apr-2001 art

Add support for Alpha Processor, Inc. UP1000.
From NetBSD.


# 1.46 21-Mar-2001 art

Move files from common to dev to be more like other archs
(and so that tab completion on "compile" works as on other archs. :))


# 1.45 18-Mar-2001 nate

Enable rasops and wsfonts for alpha so TGA can use them


# 1.44 07-Mar-2001 ericj

lca and apecs buses need sgmap glue as well.
pointed out by wasilx@forest.ihep.su - PR1713


# 1.43 16-Feb-2001 jason

bring in netbsd bus_dma stuff for lca and apecs busses


# 1.42 01-Feb-2001 art

pckbc_isa seems to have moved to files.isa


# 1.41 11-Dec-2000 nate

Some alphas have USB


# 1.40 26-Nov-2000 millert

alpha clock fixes from NetBSD
Fixes ' no more 'WARNING: preposterous clock chip time' on 164SX


# 1.39 25-Nov-2000 art

pull in cy82c693 for sio and pceb


# 1.38 16-Nov-2000 ericj

update for recent conf/files update


# 1.37 16-Nov-2000 ericj

initial support for 21264 systems.
from NetBSD.


# 1.36 16-Nov-2000 ericj

configure vga console, keyboard and mouse once again. support coming soon.


# 1.35 08-Nov-2000 art

Merge in big portions of the improvements NetBSD did to their alpha port.
Highlights: UVM, PMAP_NEW, bus_dma (only on some buses for now), new hardware
support, possiblity for ELF, etc, etc. Too much to mention.

This is still work in progress. video consoles might be broken, otherwise
we have basically the same functionality as before plus more.


Revision tags: OPENBSD_2_8_BASE
# 1.34 12-Aug-2000 ericj

use osf sigcode for compat_osf1


# 1.33 05-Jul-2000 ericj

change these to use asc as well


# 1.32 03-Jul-2000 ericj

esp define was moved to conf/files


# 1.31 03-Jul-2000 mickey

closer approximation to an alpha using new wscons.
tga moved to dev/pci.
by request from alpha people.


Revision tags: OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.30 08-Nov-1999 mickey

branches: 1.30.2;
move MI definition of rd into it's MI place also fixing
attributes, allowing kernels to exist w/ rd as the only disk device.
tested on a few archs; niels@ & millert@ ok


Revision tags: OPENBSD_2_6_BASE
# 1.29 14-Sep-1999 kstailey

signals


# 1.28 12-Sep-1999 kstailey

Add COMPAT_NETBSD. Currently only works for ELF64. Many missing system calls.


# 1.27 08-Aug-1999 deraadt

prepare for isapnp, if it ever really happens


# 1.26 30-Jul-1999 deraadt

acd goes away


# 1.25 25-Jul-1999 csapuntz

Enable new ATA/ATAPISCSI functionality as default.


Revision tags: OPENBSD_2_5_BASE
# 1.24 08-Jan-1999 niklas

s/pcppi/pckbc/ due to conflict with "real" pcppi and as a step towards
sys/dev/pckbc. Will probably still not coexist with pcppi but now alpha at
least configs. I will come back here anyday and improve.


Revision tags: OPENBSD_2_4_BASE
# 1.23 22-Sep-1998 jason

Add mii layer for alpha (needed by new fxp)


# 1.22 01-Jul-1998 angelos

Add pciide_machdep.c; that file is taken from NetBSD (forgot to
mention in previous commit).


Revision tags: OPENBSD_2_3_BASE
# 1.21 07-Apr-1998 deraadt

enable _insque and _remque; don


# 1.20 04-Apr-1998 deraadt

undo unapproved change


# 1.19 04-Apr-1998 don

Include arch/alpha/support.c required by netiso/netccitt/netns


# 1.18 06-Jan-1998 niklas

Dummy PnP support, so alpha will compile


# 1.17 10-Nov-1997 mickey

use files.wscons


# 1.16 06-Nov-1997 niklas

Add some missing things for the MI vga driver. Move wscons to an MI place as
well. $OpenBSD$ tagging


# 1.15 06-Nov-1997 niklas

We need an MI vga driver. The alpha one was most MI. Not entirely yet though.
Some files were move behind CVS back.


Revision tags: OPENBSD_2_2_BASE
# 1.14 09-Jul-1997 deraadt

alpha/common/ insults my filec


# 1.13 06-Jul-1997 niklas

DDB files + some major number specifications that were missing


# 1.12 06-Jul-1997 millert

maxpartitions 16


Revision tags: OPENBSD_2_1_BASE
# 1.11 13-Apr-1997 millert

Add support for PCI NE2000 clones. I finally got around to doing this :-)
Tested on alpha, should work on i386 as well. Note that we treat
a PCI NE2000 as a 16-bit card for now since the driver can not
deal with > 16 bit cards. To fix this isa16bit in ed_softc needs to
be changed to bus_width (in bytes). I plan to do this as part
of the split ed driver.


# 1.10 25-Mar-1997 niklas

Addition of the ed ethernet driver


# 1.9 26-Feb-1997 niklas

Workaround for some weird cpp bug that made cpuconf.o builds fail


# 1.8 24-Jan-1997 niklas

Sync with NetBSD 961207


# 1.7 08-Dec-1996 niklas

Merge to NetBSD 961107, i.e. mostly new bus.h


# 1.6 30-Oct-1996 niklas

Merge to NetBSD 961020. Retained our kernel APIs where NetBSD has changed.
-Wall -Wstrict-prototypes -Wmissing-prototypes too.


Revision tags: OPENBSD_2_0_BASE
# 1.5 29-Jul-1996 niklas

Bring forward alpha configuration files to 0722. Add OpenBSD
tags. s/netbsd/bsd/. Add ATAPI and dummy PCMCIA defines.


# 1.4 18-Jun-1996 deraadt

sync to 0616, retaining local diffs


# 1.3 26-Dec-1995 deraadt

from netbsd; rename TC 'asic' to 'ioasic'


# 1.2 14-Dec-1995 deraadt

update to netbsd


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.105 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


Revision tags: OPENBSD_6_2_BASE
# 1.104 05-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.

Late during kernel boot, smash the startup code with traps so that
it does not point to the other randomly placed code. It has be smashed,
because alpha (insecurely in my view) runs in the KSEG0 space.

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 is gone.

Ramdisk kernels cannot be compiled like this, because they are gzip'd.
When the internal pointer references change, the compression dictionary
bloats and results in poorer compression.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.103 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


Revision tags: OPENBSD_5_8_BASE
# 1.102 17-Jul-2015 tedu

remove obsolete INET kernel option


Revision tags: OPENBSD_5_7_BASE
# 1.101 24-Dec-2014 miod

tsciic(4): i2c controller onboard Tsunami and Titan chipsets, gives access to
the fan sensors on systems without RMC. From NetBSD, ok deraadt@


# 1.100 04-Dec-2014 tedu

as promised 18 years ago, consolidate isa floppy disks in files.isa
ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.99 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.98 26-Jan-2014 miod

Work in progress work towards SMP, heavily based upon NetBSD. The MP kernel
will boot multiuser, but will deadlock under load, and I can't find my
mistake yet.


# 1.97 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.96 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


Revision tags: OPENBSD_5_4_BASE
# 1.95 09-Mar-2013 deraadt

remove unneccessary needs-flag


# 1.94 09-Mar-2013 deraadt

First steps towards alphabook1 support; from netbsd
miod did not disagree.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.93 15-Nov-2011 deraadt

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


# 1.92 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.91 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.90 30-Jun-2010 tedu

remove compat_osf1 support from the kernel
ok deraadt miod


Revision tags: OPENBSD_4_7_BASE
# 1.89 07-Nov-2009 miod

Blink leds on the DEC 3000 models (three different led types).


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.88 09-Nov-2008 oga

Rework that way that agp attaches.

previously, we had a static list of pcidevs and which agp driver would
be interanlly attached. Instead, split the agp drivers so they work like
audio(4), where we attach a driver, which sets up some callbacks and
initial state, then attaches the interface (agp(4)). Since this allows
us to attach different drivers in different places, and give them
/proper/ probe functions move most of the drivers back to attaching at
pchb, where they should, and intagp (formerly agp_i810) stays attaching
at vga, since it's part of the intel integrated graphics chips.

Diff shrinks the kernel slightly, gets rid of the annoying "no integrated
graphics" warning, and allows more cleanup later.

Tested by many. fix for alpha build (the only other vga_pci.c consumer)
suggested by miod.


Revision tags: OPENBSD_4_4_BASE
# 1.87 19-Jul-2008 miod

Add code to walk the eisa configuration, from NetBSD. This configuration
is not used yet, but this seems to ``warm up'' the eisa chips so that
accesses to the eisa bus later do not cause machine checks.


# 1.86 20-May-2008 kettenis

Remove stray "attach com at isapnp with com_isapnp".
ok miod@


# 1.85 21-Mar-2008 deraadt

crank maxusers on some architectures


Revision tags: OPENBSD_4_3_BASE
# 1.84 29-Dec-2007 miod

Unifdef NO_IEEE in the libkern softfloat code, and put an appropriate rule
in files.alpha to compensate for NO_IEEE kernels.

This will allow the softfloat code to be used by other platforms than alpha.


# 1.83 25-Nov-2007 deraadt

libkern, begone. Move to a new mechanism where config(8)'s "file"
directive can select between MI and MD versions of these files. At
the same time, adjust the boot programs to pick exactly what they need,
instead of the 7 or 8 mechanisms previously used.

There will be some fallout from this, but testing it all by myself is a
ridiculously slow process; it will be finished in-tree.

Various developers were very nice and avoided making fun of me when I
was gibbering in the corner..


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

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

ok gwk@


# 1.81 28-May-2007 beck

Maintaining a broken compatibility layer for a broken OS is not a productive
activity for anyone. Bye bye COMPAT_NETBSD. ok tedu@, deraadt@, and many others
in the hackathon room.


# 1.80 05-May-2007 martin

simple single-processor only mutex implementation

ok miod@


# 1.79 13-Apr-2007 martin

get alpha SMP into a state where it at least compiles:

- add machine-dependent spinlock operations
- add basic interprocessor interrupt sending and receiving code

from NetBSD; ok miod@


# 1.78 16-Mar-2007 robert

add DEC_KN300 support from NetBSD;

This code makes it possible to run on some of the AlphaServers,
namely AlphaServer 4100 and 1200.

add mcbus(4) and mcpcia(4) to provide support for the system bus and
the MCPCIA-to-PCI bus adapter that can be found in these systems

allow the pci_swiz_bus code to handle variable extent names
to be able to handle more than one mcpcia(4)

"just commit it" deraadt@


Revision tags: OPENBSD_4_1_BASE
# 1.77 27-Sep-2006 grange

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


Revision tags: OPENBSD_4_0_BASE
# 1.76 13-Aug-2006 miod

Make sure we generate sfb.h and cfb.h, even though support is not there yet.


# 1.75 07-Aug-2006 miod

rcons removal fallout, spotted by kettenis@


# 1.74 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.73 06-May-2006 brad

- Add vge(4), lge(4), hme(4), mtd(4), luphy(4) and ciphy(4)
- Move tl(4) and ste(4) out of the untested section


Revision tags: OPENBSD_3_9_BASE
# 1.72 23-Feb-2006 miod

Better dependency rules in files.alpha, also point to cpuconf.c in the
source tree instead of copying it to the kernel compilation directory for
no good reason.


# 1.71 23-Feb-2006 miod

Only compile badaddr() if we have support for TurboChannel, apecs, cia or lca,
as they are the only users of badaddr(); shrinks RAMDISKB a little more.


# 1.70 12-Feb-2006 miod

Remove dead isabeep driver and unused isabeep() function.


# 1.69 27-Dec-2005 deraadt

enable some i2c bus drivers (piixpm(4), alipm(4), ichiic(4)) as needed
by each arch
enable adc(4), admtemp(4), admlc(4), admtm(4), admtmp(4), admtt(4),
adt(4), lm(4), lmenv(4), lmtemp(4), maxds(4), and maxtmp(4) iic chip
drivers too, which provide gobs of sensor info


Revision tags: OPENBSD_3_8_BASE
# 1.68 14-Jul-2005 uwe

More netccitt and netns removals; OK henning, brad, mickey


# 1.67 09-May-2005 brad

- add alpha optimized in4_cksum
- de register and use ANSI prototypes

From NetBSD

ok miod@ martin@


# 1.66 01-May-2005 brad

To allow for MD override of in4_cksum()...

ok deraadt@


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

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


# 1.64 04-Nov-2004 miod

Stricter rules for isadma_bounce, shaves 4KB off a RAMDISKB kernel.


# 1.63 08-Oct-2004 grange

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

ok miod@


# 1.62 18-Sep-2004 pvalchev

add puc; ok miod


# 1.61 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.60 03-Jul-2004 millert

Cruft removal; ed(4) has been dead for ages. OK deraadt@ miod@


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A UBC_SYNC_B
# 1.59 30-Jun-2002 miod

AlphaServer 800 and 1000 support; from NetBSD. Tested by Tor Houghton.
Added to floppy31 still fits.


# 1.58 02-May-2002 miod

Big TURBOchannel support catchup from NetBSD, part 1.
A few local changes and tweaks remain.

This bring DEC 3000 machines back in the game, but framebuffers are still
not supported at the moment.

Thanks to ericj@ and nate@ for supplying me a DEC 3000 for testing.


# 1.57 28-Apr-2002 pvalchev

IEEE 754 floating point completion code, and implementation of the
FP_C (Floating Point Control Quadword).

From ross@NetBSD. Added a way to disable it with option NO_IEEE,
which appears on the ramdisks to save space. This affects only
programs compiled with -mieee, and what it essentially does is
enabling infinities and NaNs, instead of generating SIGFPE on
division by zero, overflow, etc.
ok art, deraadt


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

typo repair; openbsd@davidkrause.com


# 1.55 09-Feb-2002 ericj

these functions are no longer needed


# 1.54 23-Jan-2002 ericj

add support for AlphaPC 64.
from NetBSD.


Revision tags: UBC_BASE
# 1.53 05-Nov-2001 art

branches: 1.53.2;
irongate needs isadma bouncing.


# 1.52 05-Nov-2001 art

Code for isadma bouncing.
From NetBSD.


# 1.51 26-Oct-2001 nate

First cut at a port of isadma and floppy driver. ok art@
From NetBSD via jay@rootaction.net


Revision tags: OPENBSD_3_0_BASE
# 1.50 26-Jun-2001 mickey

i2o or iop at pci fails


# 1.49 11-May-2001 deraadt

more rd merge (headcolds suck)


# 1.48 11-May-2001 deraadt

unify


Revision tags: OPENBSD_2_9_BASE
# 1.47 14-Apr-2001 art

Add support for Alpha Processor, Inc. UP1000.
From NetBSD.


# 1.46 21-Mar-2001 art

Move files from common to dev to be more like other archs
(and so that tab completion on "compile" works as on other archs. :))


# 1.45 18-Mar-2001 nate

Enable rasops and wsfonts for alpha so TGA can use them


# 1.44 07-Mar-2001 ericj

lca and apecs buses need sgmap glue as well.
pointed out by wasilx@forest.ihep.su - PR1713


# 1.43 16-Feb-2001 jason

bring in netbsd bus_dma stuff for lca and apecs busses


# 1.42 01-Feb-2001 art

pckbc_isa seems to have moved to files.isa


# 1.41 11-Dec-2000 nate

Some alphas have USB


# 1.40 26-Nov-2000 millert

alpha clock fixes from NetBSD
Fixes ' no more 'WARNING: preposterous clock chip time' on 164SX


# 1.39 25-Nov-2000 art

pull in cy82c693 for sio and pceb


# 1.38 16-Nov-2000 ericj

update for recent conf/files update


# 1.37 16-Nov-2000 ericj

initial support for 21264 systems.
from NetBSD.


# 1.36 16-Nov-2000 ericj

configure vga console, keyboard and mouse once again. support coming soon.


# 1.35 08-Nov-2000 art

Merge in big portions of the improvements NetBSD did to their alpha port.
Highlights: UVM, PMAP_NEW, bus_dma (only on some buses for now), new hardware
support, possiblity for ELF, etc, etc. Too much to mention.

This is still work in progress. video consoles might be broken, otherwise
we have basically the same functionality as before plus more.


Revision tags: OPENBSD_2_8_BASE
# 1.34 12-Aug-2000 ericj

use osf sigcode for compat_osf1


# 1.33 05-Jul-2000 ericj

change these to use asc as well


# 1.32 03-Jul-2000 ericj

esp define was moved to conf/files


# 1.31 03-Jul-2000 mickey

closer approximation to an alpha using new wscons.
tga moved to dev/pci.
by request from alpha people.


Revision tags: OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.30 08-Nov-1999 mickey

branches: 1.30.2;
move MI definition of rd into it's MI place also fixing
attributes, allowing kernels to exist w/ rd as the only disk device.
tested on a few archs; niels@ & millert@ ok


Revision tags: OPENBSD_2_6_BASE
# 1.29 14-Sep-1999 kstailey

signals


# 1.28 12-Sep-1999 kstailey

Add COMPAT_NETBSD. Currently only works for ELF64. Many missing system calls.


# 1.27 08-Aug-1999 deraadt

prepare for isapnp, if it ever really happens


# 1.26 30-Jul-1999 deraadt

acd goes away


# 1.25 25-Jul-1999 csapuntz

Enable new ATA/ATAPISCSI functionality as default.


Revision tags: OPENBSD_2_5_BASE
# 1.24 08-Jan-1999 niklas

s/pcppi/pckbc/ due to conflict with "real" pcppi and as a step towards
sys/dev/pckbc. Will probably still not coexist with pcppi but now alpha at
least configs. I will come back here anyday and improve.


Revision tags: OPENBSD_2_4_BASE
# 1.23 22-Sep-1998 jason

Add mii layer for alpha (needed by new fxp)


# 1.22 01-Jul-1998 angelos

Add pciide_machdep.c; that file is taken from NetBSD (forgot to
mention in previous commit).


Revision tags: OPENBSD_2_3_BASE
# 1.21 07-Apr-1998 deraadt

enable _insque and _remque; don


# 1.20 04-Apr-1998 deraadt

undo unapproved change


# 1.19 04-Apr-1998 don

Include arch/alpha/support.c required by netiso/netccitt/netns


# 1.18 06-Jan-1998 niklas

Dummy PnP support, so alpha will compile


# 1.17 10-Nov-1997 mickey

use files.wscons


# 1.16 06-Nov-1997 niklas

Add some missing things for the MI vga driver. Move wscons to an MI place as
well. $OpenBSD$ tagging


# 1.15 06-Nov-1997 niklas

We need an MI vga driver. The alpha one was most MI. Not entirely yet though.
Some files were move behind CVS back.


Revision tags: OPENBSD_2_2_BASE
# 1.14 09-Jul-1997 deraadt

alpha/common/ insults my filec


# 1.13 06-Jul-1997 niklas

DDB files + some major number specifications that were missing


# 1.12 06-Jul-1997 millert

maxpartitions 16


Revision tags: OPENBSD_2_1_BASE
# 1.11 13-Apr-1997 millert

Add support for PCI NE2000 clones. I finally got around to doing this :-)
Tested on alpha, should work on i386 as well. Note that we treat
a PCI NE2000 as a 16-bit card for now since the driver can not
deal with > 16 bit cards. To fix this isa16bit in ed_softc needs to
be changed to bus_width (in bytes). I plan to do this as part
of the split ed driver.


# 1.10 25-Mar-1997 niklas

Addition of the ed ethernet driver


# 1.9 26-Feb-1997 niklas

Workaround for some weird cpp bug that made cpuconf.o builds fail


# 1.8 24-Jan-1997 niklas

Sync with NetBSD 961207


# 1.7 08-Dec-1996 niklas

Merge to NetBSD 961107, i.e. mostly new bus.h


# 1.6 30-Oct-1996 niklas

Merge to NetBSD 961020. Retained our kernel APIs where NetBSD has changed.
-Wall -Wstrict-prototypes -Wmissing-prototypes too.


Revision tags: OPENBSD_2_0_BASE
# 1.5 29-Jul-1996 niklas

Bring forward alpha configuration files to 0722. Add OpenBSD
tags. s/netbsd/bsd/. Add ATAPI and dummy PCMCIA defines.


# 1.4 18-Jun-1996 deraadt

sync to 0616, retaining local diffs


# 1.3 26-Dec-1995 deraadt

from netbsd; rename TC 'asic' to 'ioasic'


# 1.2 14-Dec-1995 deraadt

update to netbsd


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision