History log of /openbsd-current/sys/arch/luna88k/conf/files.luna88k
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_7_4_BASE
# 1.34 08-Oct-2023 aoyama

Add inclusion of "dev/hid/files.hid" and "dev/usb/files.usb".

Actually these devices are not supported on luna88k, but we need them
in order to create attribute header files (e.g. "ucom.h") required in
MI part recently.

Suggested by miod@, tested by me.


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE
# 1.33 05-Mar-2022 aoyama

Move initial ROM console related codes into separated luna88k/romcons.c
file.

No functional change, tested by me.


Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.32 07-Jun-2020 aoyama

Skip probing cbus(4/luna88k) and xp(4/luna88k) in RAMDISK kernel, they
are not necessary in install/upgrade process.


Revision tags: OPENBSD_6_7_BASE
# 1.31 30-Dec-2019 aoyama

Add ne(4) support on cbus(4).

Allied Telesis CentreCOM LA-98 works well, other NE2000 based boards
may also work with correct resource specifying.

This driver was developed for demonstration at Open Source Conference
2019 Nagoya, Japan, in July, but I forgot to commit after that:-)


Revision tags: OPENBSD_6_6_BASE
# 1.30 29-Jun-2019 aoyama

Introduce ISA-like locators on cbus(4) to specify resources in
files.conf(5).


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.29 23-Jul-2017 aoyama

Splitting early startup code out of locore.S into locore0.S, like other
architectures.

"Looking good" deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.28 17-Dec-2016 aoyama

Add new device xp(4), preliminary support for LUNA's I/O processor.

This is a straightforward port of NetBSD/luna68k by Izumi Tsutsui(*),
and makes LUNA's I/O auxiliary processor (called XP, actually
HD647180) possible to load and run programs.

(*): http://mail-index.netbsd.org/source-changes/2016/12/03/msg079493.html


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.27 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.26 03-Mar-2015 aoyama

Add pcic(4) support on luna88k.

This is basically glue codes attaching pcic(4) at cbus(4/luna88k),
based on src/sys/dev/isa/i82365_isa{,subr}.c.

Tested on some ne(4) network interface cards, wdc(4) with a CF memory
card, and com(4) with an old XJACK modem card. Currently wi(4) does
not work yet.

suggestions and ok miod@


# 1.25 17-Jan-2015 aoyama

Delete an extra tab.


# 1.24 28-Dec-2014 aoyama

Add an audio driver, necsb(4), for NEC PC-9801-86 sound board on
cbus(4).

This work is based on the source code of NetBSD/pc98, an unofficial
NetBSD port for NEC PC-9801 series, written about 16 years ago.
Thanks to NetBSD/pc98 porting staff for their work, especially NAGAO
Tadaaki and N. Honda who wrote the original driver.

ok miod@


# 1.23 19-Dec-2014 aoyama

Move cbus.c, cbusvar.h, and pcex.c to new 'cbus' directory, to gather
'C-bus' device drivers in it.

More devices on cbus(4) will be added, hopefully :-)

ok miod@


# 1.22 08-Dec-2014 aoyama

Add an intermediate layer driver, cbus(4), to manage its own
interrupts of PC-9801 extension board slot bus (so-called 'C-bus') on
LUNA-88K2.

Existing pcex(4) is now attached at cbus(4), i.e.

cbus0 at mainbus0
pcex0 at cbus0

With this driver, some other PC-9801 boards might be supported on luna88k
in the (near?) future:-)

ok miod@


# 1.21 08-Nov-2014 aoyama

Delete commented out 'romtty' device configuration.

This had been used in the early years of poring OpenBSD to LUNA-88K,
but no longer used.


Revision tags: OPENBSD_5_6_BASE
# 1.20 16-Apr-2014 aoyama

Add generic driver for "NEC PC-9801(*) extension board slot" on
LUNA-88K.

LUNA-88K{,2} has one or two slot(s) that can attach the extension
board designed for PC-9801. This driver provides dedicated mmap(2)
and capability for waiting specified interrupt on that slot so that we
can use the extension board from userland program.

(*)PC-9801 is a Japanese popular personal computer, mainly used in
1980-90's. (see http://en.wikipedia.org/wiki/NEC_PC-9801)

ok miod@, and man pages jmc@


Revision tags: OPENBSD_5_5_BASE
# 1.19 16-Nov-2013 aoyama

Re-organize luna88k rasops om_{copy,erase}{cols,rows} by using one
generic function, based on hp300/dev/diofb_mono.c.

This also fixes `screen is not updated when delete a character if it
is on the middle of a 32-bit word of the frame buffer' problem.

"Go for it!" miod@


# 1.18 24-Sep-2013 miod

Sync the MI LANCE code ( le(4) ) with NetBSD, except for the following:
- the am7990_get() - now lance_get() - is unchanged.
- the interrupt acknowledge logic is unchanged, and will disable interrupts,
then acknowledge all interrupt conditions.

Add ILACC (79900) support (from NetBSD).

Both LANCE (am7990.c) and ILACC (am79900.c) code share as much common code
(lance.c) as possible. This affects all le(4) attachments, but the changes
are mostly mechanical, to split am7990-specific parts from lance-agnostic
parts.

Compile tested on all affected platforms. Tested on alpha, hp300, luna88k,
mvme88k, sparc, sparc64 and vax.


Revision tags: OPENBSD_5_4_BASE
# 1.17 22-May-2013 aoyama

Split keyboard mapping definitions to new files, luna88k/dev/omkbdmap.[ch].
Also modify RAWKEY_XXX values, to input the right characters on Japanese
keyboard.

ok miod@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.16 31-Dec-2010 miod

Massive overhauling of the m88k pmap, though I can't pretend it's a new pmap
since a large part of the structures and logic remains.

Since m88k has separate supervisor/user spaces, we can map physical memory 1:1
in supervisor space, and have the kernel virtual address space start from the
end of physical memory.

This allows us to switch to __HAVE_PMAP_DIRECT. And to get rid of the double
mapped sdt, since now their virtual and physical addresses will always match.

The upper bound of the kernel virtual memory space is now platform dependent,
until the code which relies upon some hardware devices being mapped 1:1 in
supervisor mode is updated to no longer require this (this is mainly a PITA on
luna88k, where onboard devices start at 0x40000000, leaving only 1GB of KVA at
the moment - still much better than the previous 512MB).

Tested on mvme88k only (187, 188, 197LE, 197DP). Other platforms ought to
work, aviion will be checked shortly and fixed if necessary. No known
OpenBSD/luna88k system in working condition at the moment.


# 1.15 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_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.14 09-Feb-2007 aoyama

LCD device driver, second step. Now the driver works with autoconf.

ok miod@


Revision tags: OPENBSD_4_0_BASE
# 1.13 06-Aug-2006 miod

Switch luna88k from rcons to rasops. Tested by aoyama@


# 1.12 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


Revision tags: OPENBSD_3_9_BASE
# 1.11 24-Oct-2005 miod

Factorize db_interface code between luna88k and mvme88k, removing dead code
in the process; the arch-agnostic code keeps the ability for a specific
machine to define its own machine commands, such as "machine prom" for
mvme88k, in addition to the ``regular'' m88k machine commands.


Revision tags: OPENBSD_3_8_BASE
# 1.10 01-May-2005 brad

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

ok deraadt@


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

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


# 1.8 08-Oct-2004 grange

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

ok miod@


# 1.7 03-Oct-2004 miod

Merge locore_c_routines.c into machdep.c, and clear <machine/locore.h> as
done on mvme88k. <machine/locore.h> is about to die very soon...


Revision tags: OPENBSD_3_6_BASE
# 1.6 25-Jul-2004 miod

Merge luna88k and mvme88k pmap. The pmap will now assume that the memory
below the kernel text is reserved for the PROM, instead of using fixed
(but different) values between luna88k and mvme88k.

Tested on mvme88k by myself, on luna88k by aoyama@


# 1.5 23-Jul-2004 miod

Move luna88k and mvme88k vm_machdep to m88k-agnostic code area.


# 1.4 19-Jun-2004 miod

Share common ddb files accross m88k platforms.


Revision tags: SMP_SYNC_A SMP_SYNC_B
# 1.3 07-May-2004 aoyama

branches: 1.3.2;
Add new file <machine/conf.h> and clean up console code and structures.
From miod@


# 1.2 29-Apr-2004 miod

Continue factorizing m88k common code, this time files in <arch>/<arch>
which were copied verbatim from mvme88k to luna88k.

This requires backing out syntactic sugar in mvme88k kernel configuration
files which would deduct the required processor types from the board models,
as the common code only depends upon the M88100 and M88110 defines.


# 1.1 21-Apr-2004 aoyama

branches: 1.1.1;
Initial revision


# 1.33 05-Mar-2022 aoyama

Move initial ROM console related codes into separated luna88k/romcons.c
file.

No functional change, tested by me.


Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.32 07-Jun-2020 aoyama

Skip probing cbus(4/luna88k) and xp(4/luna88k) in RAMDISK kernel, they
are not necessary in install/upgrade process.


Revision tags: OPENBSD_6_7_BASE
# 1.31 30-Dec-2019 aoyama

Add ne(4) support on cbus(4).

Allied Telesis CentreCOM LA-98 works well, other NE2000 based boards
may also work with correct resource specifying.

This driver was developed for demonstration at Open Source Conference
2019 Nagoya, Japan, in July, but I forgot to commit after that:-)


Revision tags: OPENBSD_6_6_BASE
# 1.30 29-Jun-2019 aoyama

Introduce ISA-like locators on cbus(4) to specify resources in
files.conf(5).


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.29 23-Jul-2017 aoyama

Splitting early startup code out of locore.S into locore0.S, like other
architectures.

"Looking good" deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.28 17-Dec-2016 aoyama

Add new device xp(4), preliminary support for LUNA's I/O processor.

This is a straightforward port of NetBSD/luna68k by Izumi Tsutsui(*),
and makes LUNA's I/O auxiliary processor (called XP, actually
HD647180) possible to load and run programs.

(*): http://mail-index.netbsd.org/source-changes/2016/12/03/msg079493.html


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.27 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.26 03-Mar-2015 aoyama

Add pcic(4) support on luna88k.

This is basically glue codes attaching pcic(4) at cbus(4/luna88k),
based on src/sys/dev/isa/i82365_isa{,subr}.c.

Tested on some ne(4) network interface cards, wdc(4) with a CF memory
card, and com(4) with an old XJACK modem card. Currently wi(4) does
not work yet.

suggestions and ok miod@


# 1.25 17-Jan-2015 aoyama

Delete an extra tab.


# 1.24 28-Dec-2014 aoyama

Add an audio driver, necsb(4), for NEC PC-9801-86 sound board on
cbus(4).

This work is based on the source code of NetBSD/pc98, an unofficial
NetBSD port for NEC PC-9801 series, written about 16 years ago.
Thanks to NetBSD/pc98 porting staff for their work, especially NAGAO
Tadaaki and N. Honda who wrote the original driver.

ok miod@


# 1.23 19-Dec-2014 aoyama

Move cbus.c, cbusvar.h, and pcex.c to new 'cbus' directory, to gather
'C-bus' device drivers in it.

More devices on cbus(4) will be added, hopefully :-)

ok miod@


# 1.22 08-Dec-2014 aoyama

Add an intermediate layer driver, cbus(4), to manage its own
interrupts of PC-9801 extension board slot bus (so-called 'C-bus') on
LUNA-88K2.

Existing pcex(4) is now attached at cbus(4), i.e.

cbus0 at mainbus0
pcex0 at cbus0

With this driver, some other PC-9801 boards might be supported on luna88k
in the (near?) future:-)

ok miod@


# 1.21 08-Nov-2014 aoyama

Delete commented out 'romtty' device configuration.

This had been used in the early years of poring OpenBSD to LUNA-88K,
but no longer used.


Revision tags: OPENBSD_5_6_BASE
# 1.20 16-Apr-2014 aoyama

Add generic driver for "NEC PC-9801(*) extension board slot" on
LUNA-88K.

LUNA-88K{,2} has one or two slot(s) that can attach the extension
board designed for PC-9801. This driver provides dedicated mmap(2)
and capability for waiting specified interrupt on that slot so that we
can use the extension board from userland program.

(*)PC-9801 is a Japanese popular personal computer, mainly used in
1980-90's. (see http://en.wikipedia.org/wiki/NEC_PC-9801)

ok miod@, and man pages jmc@


Revision tags: OPENBSD_5_5_BASE
# 1.19 16-Nov-2013 aoyama

Re-organize luna88k rasops om_{copy,erase}{cols,rows} by using one
generic function, based on hp300/dev/diofb_mono.c.

This also fixes `screen is not updated when delete a character if it
is on the middle of a 32-bit word of the frame buffer' problem.

"Go for it!" miod@


# 1.18 24-Sep-2013 miod

Sync the MI LANCE code ( le(4) ) with NetBSD, except for the following:
- the am7990_get() - now lance_get() - is unchanged.
- the interrupt acknowledge logic is unchanged, and will disable interrupts,
then acknowledge all interrupt conditions.

Add ILACC (79900) support (from NetBSD).

Both LANCE (am7990.c) and ILACC (am79900.c) code share as much common code
(lance.c) as possible. This affects all le(4) attachments, but the changes
are mostly mechanical, to split am7990-specific parts from lance-agnostic
parts.

Compile tested on all affected platforms. Tested on alpha, hp300, luna88k,
mvme88k, sparc, sparc64 and vax.


Revision tags: OPENBSD_5_4_BASE
# 1.17 22-May-2013 aoyama

Split keyboard mapping definitions to new files, luna88k/dev/omkbdmap.[ch].
Also modify RAWKEY_XXX values, to input the right characters on Japanese
keyboard.

ok miod@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.16 31-Dec-2010 miod

Massive overhauling of the m88k pmap, though I can't pretend it's a new pmap
since a large part of the structures and logic remains.

Since m88k has separate supervisor/user spaces, we can map physical memory 1:1
in supervisor space, and have the kernel virtual address space start from the
end of physical memory.

This allows us to switch to __HAVE_PMAP_DIRECT. And to get rid of the double
mapped sdt, since now their virtual and physical addresses will always match.

The upper bound of the kernel virtual memory space is now platform dependent,
until the code which relies upon some hardware devices being mapped 1:1 in
supervisor mode is updated to no longer require this (this is mainly a PITA on
luna88k, where onboard devices start at 0x40000000, leaving only 1GB of KVA at
the moment - still much better than the previous 512MB).

Tested on mvme88k only (187, 188, 197LE, 197DP). Other platforms ought to
work, aviion will be checked shortly and fixed if necessary. No known
OpenBSD/luna88k system in working condition at the moment.


# 1.15 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_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.14 09-Feb-2007 aoyama

LCD device driver, second step. Now the driver works with autoconf.

ok miod@


Revision tags: OPENBSD_4_0_BASE
# 1.13 06-Aug-2006 miod

Switch luna88k from rcons to rasops. Tested by aoyama@


# 1.12 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


Revision tags: OPENBSD_3_9_BASE
# 1.11 24-Oct-2005 miod

Factorize db_interface code between luna88k and mvme88k, removing dead code
in the process; the arch-agnostic code keeps the ability for a specific
machine to define its own machine commands, such as "machine prom" for
mvme88k, in addition to the ``regular'' m88k machine commands.


Revision tags: OPENBSD_3_8_BASE
# 1.10 01-May-2005 brad

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

ok deraadt@


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

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


# 1.8 08-Oct-2004 grange

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

ok miod@


# 1.7 03-Oct-2004 miod

Merge locore_c_routines.c into machdep.c, and clear <machine/locore.h> as
done on mvme88k. <machine/locore.h> is about to die very soon...


Revision tags: OPENBSD_3_6_BASE
# 1.6 25-Jul-2004 miod

Merge luna88k and mvme88k pmap. The pmap will now assume that the memory
below the kernel text is reserved for the PROM, instead of using fixed
(but different) values between luna88k and mvme88k.

Tested on mvme88k by myself, on luna88k by aoyama@


# 1.5 23-Jul-2004 miod

Move luna88k and mvme88k vm_machdep to m88k-agnostic code area.


# 1.4 19-Jun-2004 miod

Share common ddb files accross m88k platforms.


Revision tags: SMP_SYNC_A SMP_SYNC_B
# 1.3 07-May-2004 aoyama

branches: 1.3.2;
Add new file <machine/conf.h> and clean up console code and structures.
From miod@


# 1.2 29-Apr-2004 miod

Continue factorizing m88k common code, this time files in <arch>/<arch>
which were copied verbatim from mvme88k to luna88k.

This requires backing out syntactic sugar in mvme88k kernel configuration
files which would deduct the required processor types from the board models,
as the common code only depends upon the M88100 and M88110 defines.


# 1.1 21-Apr-2004 aoyama

branches: 1.1.1;
Initial revision


# 1.32 07-Jun-2020 aoyama

Skip probing cbus(4/luna88k) and xp(4/luna88k) in RAMDISK kernel, they
are not necessary in install/upgrade process.


Revision tags: OPENBSD_6_7_BASE
# 1.31 30-Dec-2019 aoyama

Add ne(4) support on cbus(4).

Allied Telesis CentreCOM LA-98 works well, other NE2000 based boards
may also work with correct resource specifying.

This driver was developed for demonstration at Open Source Conference
2019 Nagoya, Japan, in July, but I forgot to commit after that:-)


Revision tags: OPENBSD_6_6_BASE
# 1.30 29-Jun-2019 aoyama

Introduce ISA-like locators on cbus(4) to specify resources in
files.conf(5).


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.29 23-Jul-2017 aoyama

Splitting early startup code out of locore.S into locore0.S, like other
architectures.

"Looking good" deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.28 17-Dec-2016 aoyama

Add new device xp(4), preliminary support for LUNA's I/O processor.

This is a straightforward port of NetBSD/luna68k by Izumi Tsutsui(*),
and makes LUNA's I/O auxiliary processor (called XP, actually
HD647180) possible to load and run programs.

(*): http://mail-index.netbsd.org/source-changes/2016/12/03/msg079493.html


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.27 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.26 03-Mar-2015 aoyama

Add pcic(4) support on luna88k.

This is basically glue codes attaching pcic(4) at cbus(4/luna88k),
based on src/sys/dev/isa/i82365_isa{,subr}.c.

Tested on some ne(4) network interface cards, wdc(4) with a CF memory
card, and com(4) with an old XJACK modem card. Currently wi(4) does
not work yet.

suggestions and ok miod@


# 1.25 17-Jan-2015 aoyama

Delete an extra tab.


# 1.24 28-Dec-2014 aoyama

Add an audio driver, necsb(4), for NEC PC-9801-86 sound board on
cbus(4).

This work is based on the source code of NetBSD/pc98, an unofficial
NetBSD port for NEC PC-9801 series, written about 16 years ago.
Thanks to NetBSD/pc98 porting staff for their work, especially NAGAO
Tadaaki and N. Honda who wrote the original driver.

ok miod@


# 1.23 19-Dec-2014 aoyama

Move cbus.c, cbusvar.h, and pcex.c to new 'cbus' directory, to gather
'C-bus' device drivers in it.

More devices on cbus(4) will be added, hopefully :-)

ok miod@


# 1.22 08-Dec-2014 aoyama

Add an intermediate layer driver, cbus(4), to manage its own
interrupts of PC-9801 extension board slot bus (so-called 'C-bus') on
LUNA-88K2.

Existing pcex(4) is now attached at cbus(4), i.e.

cbus0 at mainbus0
pcex0 at cbus0

With this driver, some other PC-9801 boards might be supported on luna88k
in the (near?) future:-)

ok miod@


# 1.21 08-Nov-2014 aoyama

Delete commented out 'romtty' device configuration.

This had been used in the early years of poring OpenBSD to LUNA-88K,
but no longer used.


Revision tags: OPENBSD_5_6_BASE
# 1.20 16-Apr-2014 aoyama

Add generic driver for "NEC PC-9801(*) extension board slot" on
LUNA-88K.

LUNA-88K{,2} has one or two slot(s) that can attach the extension
board designed for PC-9801. This driver provides dedicated mmap(2)
and capability for waiting specified interrupt on that slot so that we
can use the extension board from userland program.

(*)PC-9801 is a Japanese popular personal computer, mainly used in
1980-90's. (see http://en.wikipedia.org/wiki/NEC_PC-9801)

ok miod@, and man pages jmc@


Revision tags: OPENBSD_5_5_BASE
# 1.19 16-Nov-2013 aoyama

Re-organize luna88k rasops om_{copy,erase}{cols,rows} by using one
generic function, based on hp300/dev/diofb_mono.c.

This also fixes `screen is not updated when delete a character if it
is on the middle of a 32-bit word of the frame buffer' problem.

"Go for it!" miod@


# 1.18 24-Sep-2013 miod

Sync the MI LANCE code ( le(4) ) with NetBSD, except for the following:
- the am7990_get() - now lance_get() - is unchanged.
- the interrupt acknowledge logic is unchanged, and will disable interrupts,
then acknowledge all interrupt conditions.

Add ILACC (79900) support (from NetBSD).

Both LANCE (am7990.c) and ILACC (am79900.c) code share as much common code
(lance.c) as possible. This affects all le(4) attachments, but the changes
are mostly mechanical, to split am7990-specific parts from lance-agnostic
parts.

Compile tested on all affected platforms. Tested on alpha, hp300, luna88k,
mvme88k, sparc, sparc64 and vax.


Revision tags: OPENBSD_5_4_BASE
# 1.17 22-May-2013 aoyama

Split keyboard mapping definitions to new files, luna88k/dev/omkbdmap.[ch].
Also modify RAWKEY_XXX values, to input the right characters on Japanese
keyboard.

ok miod@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.16 31-Dec-2010 miod

Massive overhauling of the m88k pmap, though I can't pretend it's a new pmap
since a large part of the structures and logic remains.

Since m88k has separate supervisor/user spaces, we can map physical memory 1:1
in supervisor space, and have the kernel virtual address space start from the
end of physical memory.

This allows us to switch to __HAVE_PMAP_DIRECT. And to get rid of the double
mapped sdt, since now their virtual and physical addresses will always match.

The upper bound of the kernel virtual memory space is now platform dependent,
until the code which relies upon some hardware devices being mapped 1:1 in
supervisor mode is updated to no longer require this (this is mainly a PITA on
luna88k, where onboard devices start at 0x40000000, leaving only 1GB of KVA at
the moment - still much better than the previous 512MB).

Tested on mvme88k only (187, 188, 197LE, 197DP). Other platforms ought to
work, aviion will be checked shortly and fixed if necessary. No known
OpenBSD/luna88k system in working condition at the moment.


# 1.15 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_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.14 09-Feb-2007 aoyama

LCD device driver, second step. Now the driver works with autoconf.

ok miod@


Revision tags: OPENBSD_4_0_BASE
# 1.13 06-Aug-2006 miod

Switch luna88k from rcons to rasops. Tested by aoyama@


# 1.12 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


Revision tags: OPENBSD_3_9_BASE
# 1.11 24-Oct-2005 miod

Factorize db_interface code between luna88k and mvme88k, removing dead code
in the process; the arch-agnostic code keeps the ability for a specific
machine to define its own machine commands, such as "machine prom" for
mvme88k, in addition to the ``regular'' m88k machine commands.


Revision tags: OPENBSD_3_8_BASE
# 1.10 01-May-2005 brad

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

ok deraadt@


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

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


# 1.8 08-Oct-2004 grange

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

ok miod@


# 1.7 03-Oct-2004 miod

Merge locore_c_routines.c into machdep.c, and clear <machine/locore.h> as
done on mvme88k. <machine/locore.h> is about to die very soon...


Revision tags: OPENBSD_3_6_BASE
# 1.6 25-Jul-2004 miod

Merge luna88k and mvme88k pmap. The pmap will now assume that the memory
below the kernel text is reserved for the PROM, instead of using fixed
(but different) values between luna88k and mvme88k.

Tested on mvme88k by myself, on luna88k by aoyama@


# 1.5 23-Jul-2004 miod

Move luna88k and mvme88k vm_machdep to m88k-agnostic code area.


# 1.4 19-Jun-2004 miod

Share common ddb files accross m88k platforms.


Revision tags: SMP_SYNC_A SMP_SYNC_B
# 1.3 07-May-2004 aoyama

branches: 1.3.2;
Add new file <machine/conf.h> and clean up console code and structures.
From miod@


# 1.2 29-Apr-2004 miod

Continue factorizing m88k common code, this time files in <arch>/<arch>
which were copied verbatim from mvme88k to luna88k.

This requires backing out syntactic sugar in mvme88k kernel configuration
files which would deduct the required processor types from the board models,
as the common code only depends upon the M88100 and M88110 defines.


# 1.1 21-Apr-2004 aoyama

branches: 1.1.1;
Initial revision


# 1.31 30-Dec-2019 aoyama

Add ne(4) support on cbus(4).

Allied Telesis CentreCOM LA-98 works well, other NE2000 based boards
may also work with correct resource specifying.

This driver was developed for demonstration at Open Source Conference
2019 Nagoya, Japan, in July, but I forgot to commit after that:-)


Revision tags: OPENBSD_6_6_BASE
# 1.30 29-Jun-2019 aoyama

Introduce ISA-like locators on cbus(4) to specify resources in
files.conf(5).


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.29 23-Jul-2017 aoyama

Splitting early startup code out of locore.S into locore0.S, like other
architectures.

"Looking good" deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.28 17-Dec-2016 aoyama

Add new device xp(4), preliminary support for LUNA's I/O processor.

This is a straightforward port of NetBSD/luna68k by Izumi Tsutsui(*),
and makes LUNA's I/O auxiliary processor (called XP, actually
HD647180) possible to load and run programs.

(*): http://mail-index.netbsd.org/source-changes/2016/12/03/msg079493.html


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.27 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.26 03-Mar-2015 aoyama

Add pcic(4) support on luna88k.

This is basically glue codes attaching pcic(4) at cbus(4/luna88k),
based on src/sys/dev/isa/i82365_isa{,subr}.c.

Tested on some ne(4) network interface cards, wdc(4) with a CF memory
card, and com(4) with an old XJACK modem card. Currently wi(4) does
not work yet.

suggestions and ok miod@


# 1.25 17-Jan-2015 aoyama

Delete an extra tab.


# 1.24 28-Dec-2014 aoyama

Add an audio driver, necsb(4), for NEC PC-9801-86 sound board on
cbus(4).

This work is based on the source code of NetBSD/pc98, an unofficial
NetBSD port for NEC PC-9801 series, written about 16 years ago.
Thanks to NetBSD/pc98 porting staff for their work, especially NAGAO
Tadaaki and N. Honda who wrote the original driver.

ok miod@


# 1.23 19-Dec-2014 aoyama

Move cbus.c, cbusvar.h, and pcex.c to new 'cbus' directory, to gather
'C-bus' device drivers in it.

More devices on cbus(4) will be added, hopefully :-)

ok miod@


# 1.22 08-Dec-2014 aoyama

Add an intermediate layer driver, cbus(4), to manage its own
interrupts of PC-9801 extension board slot bus (so-called 'C-bus') on
LUNA-88K2.

Existing pcex(4) is now attached at cbus(4), i.e.

cbus0 at mainbus0
pcex0 at cbus0

With this driver, some other PC-9801 boards might be supported on luna88k
in the (near?) future:-)

ok miod@


# 1.21 08-Nov-2014 aoyama

Delete commented out 'romtty' device configuration.

This had been used in the early years of poring OpenBSD to LUNA-88K,
but no longer used.


Revision tags: OPENBSD_5_6_BASE
# 1.20 16-Apr-2014 aoyama

Add generic driver for "NEC PC-9801(*) extension board slot" on
LUNA-88K.

LUNA-88K{,2} has one or two slot(s) that can attach the extension
board designed for PC-9801. This driver provides dedicated mmap(2)
and capability for waiting specified interrupt on that slot so that we
can use the extension board from userland program.

(*)PC-9801 is a Japanese popular personal computer, mainly used in
1980-90's. (see http://en.wikipedia.org/wiki/NEC_PC-9801)

ok miod@, and man pages jmc@


Revision tags: OPENBSD_5_5_BASE
# 1.19 16-Nov-2013 aoyama

Re-organize luna88k rasops om_{copy,erase}{cols,rows} by using one
generic function, based on hp300/dev/diofb_mono.c.

This also fixes `screen is not updated when delete a character if it
is on the middle of a 32-bit word of the frame buffer' problem.

"Go for it!" miod@


# 1.18 24-Sep-2013 miod

Sync the MI LANCE code ( le(4) ) with NetBSD, except for the following:
- the am7990_get() - now lance_get() - is unchanged.
- the interrupt acknowledge logic is unchanged, and will disable interrupts,
then acknowledge all interrupt conditions.

Add ILACC (79900) support (from NetBSD).

Both LANCE (am7990.c) and ILACC (am79900.c) code share as much common code
(lance.c) as possible. This affects all le(4) attachments, but the changes
are mostly mechanical, to split am7990-specific parts from lance-agnostic
parts.

Compile tested on all affected platforms. Tested on alpha, hp300, luna88k,
mvme88k, sparc, sparc64 and vax.


Revision tags: OPENBSD_5_4_BASE
# 1.17 22-May-2013 aoyama

Split keyboard mapping definitions to new files, luna88k/dev/omkbdmap.[ch].
Also modify RAWKEY_XXX values, to input the right characters on Japanese
keyboard.

ok miod@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.16 31-Dec-2010 miod

Massive overhauling of the m88k pmap, though I can't pretend it's a new pmap
since a large part of the structures and logic remains.

Since m88k has separate supervisor/user spaces, we can map physical memory 1:1
in supervisor space, and have the kernel virtual address space start from the
end of physical memory.

This allows us to switch to __HAVE_PMAP_DIRECT. And to get rid of the double
mapped sdt, since now their virtual and physical addresses will always match.

The upper bound of the kernel virtual memory space is now platform dependent,
until the code which relies upon some hardware devices being mapped 1:1 in
supervisor mode is updated to no longer require this (this is mainly a PITA on
luna88k, where onboard devices start at 0x40000000, leaving only 1GB of KVA at
the moment - still much better than the previous 512MB).

Tested on mvme88k only (187, 188, 197LE, 197DP). Other platforms ought to
work, aviion will be checked shortly and fixed if necessary. No known
OpenBSD/luna88k system in working condition at the moment.


# 1.15 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_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.14 09-Feb-2007 aoyama

LCD device driver, second step. Now the driver works with autoconf.

ok miod@


Revision tags: OPENBSD_4_0_BASE
# 1.13 06-Aug-2006 miod

Switch luna88k from rcons to rasops. Tested by aoyama@


# 1.12 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


Revision tags: OPENBSD_3_9_BASE
# 1.11 24-Oct-2005 miod

Factorize db_interface code between luna88k and mvme88k, removing dead code
in the process; the arch-agnostic code keeps the ability for a specific
machine to define its own machine commands, such as "machine prom" for
mvme88k, in addition to the ``regular'' m88k machine commands.


Revision tags: OPENBSD_3_8_BASE
# 1.10 01-May-2005 brad

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

ok deraadt@


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

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


# 1.8 08-Oct-2004 grange

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

ok miod@


# 1.7 03-Oct-2004 miod

Merge locore_c_routines.c into machdep.c, and clear <machine/locore.h> as
done on mvme88k. <machine/locore.h> is about to die very soon...


Revision tags: OPENBSD_3_6_BASE
# 1.6 25-Jul-2004 miod

Merge luna88k and mvme88k pmap. The pmap will now assume that the memory
below the kernel text is reserved for the PROM, instead of using fixed
(but different) values between luna88k and mvme88k.

Tested on mvme88k by myself, on luna88k by aoyama@


# 1.5 23-Jul-2004 miod

Move luna88k and mvme88k vm_machdep to m88k-agnostic code area.


# 1.4 19-Jun-2004 miod

Share common ddb files accross m88k platforms.


Revision tags: SMP_SYNC_A SMP_SYNC_B
# 1.3 07-May-2004 aoyama

branches: 1.3.2;
Add new file <machine/conf.h> and clean up console code and structures.
From miod@


# 1.2 29-Apr-2004 miod

Continue factorizing m88k common code, this time files in <arch>/<arch>
which were copied verbatim from mvme88k to luna88k.

This requires backing out syntactic sugar in mvme88k kernel configuration
files which would deduct the required processor types from the board models,
as the common code only depends upon the M88100 and M88110 defines.


# 1.1 21-Apr-2004 aoyama

branches: 1.1.1;
Initial revision


# 1.30 29-Jun-2019 aoyama

Introduce ISA-like locators on cbus(4) to specify resources in
files.conf(5).


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.29 23-Jul-2017 aoyama

Splitting early startup code out of locore.S into locore0.S, like other
architectures.

"Looking good" deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.28 17-Dec-2016 aoyama

Add new device xp(4), preliminary support for LUNA's I/O processor.

This is a straightforward port of NetBSD/luna68k by Izumi Tsutsui(*),
and makes LUNA's I/O auxiliary processor (called XP, actually
HD647180) possible to load and run programs.

(*): http://mail-index.netbsd.org/source-changes/2016/12/03/msg079493.html


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.27 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.26 03-Mar-2015 aoyama

Add pcic(4) support on luna88k.

This is basically glue codes attaching pcic(4) at cbus(4/luna88k),
based on src/sys/dev/isa/i82365_isa{,subr}.c.

Tested on some ne(4) network interface cards, wdc(4) with a CF memory
card, and com(4) with an old XJACK modem card. Currently wi(4) does
not work yet.

suggestions and ok miod@


# 1.25 17-Jan-2015 aoyama

Delete an extra tab.


# 1.24 28-Dec-2014 aoyama

Add an audio driver, necsb(4), for NEC PC-9801-86 sound board on
cbus(4).

This work is based on the source code of NetBSD/pc98, an unofficial
NetBSD port for NEC PC-9801 series, written about 16 years ago.
Thanks to NetBSD/pc98 porting staff for their work, especially NAGAO
Tadaaki and N. Honda who wrote the original driver.

ok miod@


# 1.23 19-Dec-2014 aoyama

Move cbus.c, cbusvar.h, and pcex.c to new 'cbus' directory, to gather
'C-bus' device drivers in it.

More devices on cbus(4) will be added, hopefully :-)

ok miod@


# 1.22 08-Dec-2014 aoyama

Add an intermediate layer driver, cbus(4), to manage its own
interrupts of PC-9801 extension board slot bus (so-called 'C-bus') on
LUNA-88K2.

Existing pcex(4) is now attached at cbus(4), i.e.

cbus0 at mainbus0
pcex0 at cbus0

With this driver, some other PC-9801 boards might be supported on luna88k
in the (near?) future:-)

ok miod@


# 1.21 08-Nov-2014 aoyama

Delete commented out 'romtty' device configuration.

This had been used in the early years of poring OpenBSD to LUNA-88K,
but no longer used.


Revision tags: OPENBSD_5_6_BASE
# 1.20 16-Apr-2014 aoyama

Add generic driver for "NEC PC-9801(*) extension board slot" on
LUNA-88K.

LUNA-88K{,2} has one or two slot(s) that can attach the extension
board designed for PC-9801. This driver provides dedicated mmap(2)
and capability for waiting specified interrupt on that slot so that we
can use the extension board from userland program.

(*)PC-9801 is a Japanese popular personal computer, mainly used in
1980-90's. (see http://en.wikipedia.org/wiki/NEC_PC-9801)

ok miod@, and man pages jmc@


Revision tags: OPENBSD_5_5_BASE
# 1.19 16-Nov-2013 aoyama

Re-organize luna88k rasops om_{copy,erase}{cols,rows} by using one
generic function, based on hp300/dev/diofb_mono.c.

This also fixes `screen is not updated when delete a character if it
is on the middle of a 32-bit word of the frame buffer' problem.

"Go for it!" miod@


# 1.18 24-Sep-2013 miod

Sync the MI LANCE code ( le(4) ) with NetBSD, except for the following:
- the am7990_get() - now lance_get() - is unchanged.
- the interrupt acknowledge logic is unchanged, and will disable interrupts,
then acknowledge all interrupt conditions.

Add ILACC (79900) support (from NetBSD).

Both LANCE (am7990.c) and ILACC (am79900.c) code share as much common code
(lance.c) as possible. This affects all le(4) attachments, but the changes
are mostly mechanical, to split am7990-specific parts from lance-agnostic
parts.

Compile tested on all affected platforms. Tested on alpha, hp300, luna88k,
mvme88k, sparc, sparc64 and vax.


Revision tags: OPENBSD_5_4_BASE
# 1.17 22-May-2013 aoyama

Split keyboard mapping definitions to new files, luna88k/dev/omkbdmap.[ch].
Also modify RAWKEY_XXX values, to input the right characters on Japanese
keyboard.

ok miod@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.16 31-Dec-2010 miod

Massive overhauling of the m88k pmap, though I can't pretend it's a new pmap
since a large part of the structures and logic remains.

Since m88k has separate supervisor/user spaces, we can map physical memory 1:1
in supervisor space, and have the kernel virtual address space start from the
end of physical memory.

This allows us to switch to __HAVE_PMAP_DIRECT. And to get rid of the double
mapped sdt, since now their virtual and physical addresses will always match.

The upper bound of the kernel virtual memory space is now platform dependent,
until the code which relies upon some hardware devices being mapped 1:1 in
supervisor mode is updated to no longer require this (this is mainly a PITA on
luna88k, where onboard devices start at 0x40000000, leaving only 1GB of KVA at
the moment - still much better than the previous 512MB).

Tested on mvme88k only (187, 188, 197LE, 197DP). Other platforms ought to
work, aviion will be checked shortly and fixed if necessary. No known
OpenBSD/luna88k system in working condition at the moment.


# 1.15 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_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.14 09-Feb-2007 aoyama

LCD device driver, second step. Now the driver works with autoconf.

ok miod@


Revision tags: OPENBSD_4_0_BASE
# 1.13 06-Aug-2006 miod

Switch luna88k from rcons to rasops. Tested by aoyama@


# 1.12 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


Revision tags: OPENBSD_3_9_BASE
# 1.11 24-Oct-2005 miod

Factorize db_interface code between luna88k and mvme88k, removing dead code
in the process; the arch-agnostic code keeps the ability for a specific
machine to define its own machine commands, such as "machine prom" for
mvme88k, in addition to the ``regular'' m88k machine commands.


Revision tags: OPENBSD_3_8_BASE
# 1.10 01-May-2005 brad

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

ok deraadt@


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

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


# 1.8 08-Oct-2004 grange

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

ok miod@


# 1.7 03-Oct-2004 miod

Merge locore_c_routines.c into machdep.c, and clear <machine/locore.h> as
done on mvme88k. <machine/locore.h> is about to die very soon...


Revision tags: OPENBSD_3_6_BASE
# 1.6 25-Jul-2004 miod

Merge luna88k and mvme88k pmap. The pmap will now assume that the memory
below the kernel text is reserved for the PROM, instead of using fixed
(but different) values between luna88k and mvme88k.

Tested on mvme88k by myself, on luna88k by aoyama@


# 1.5 23-Jul-2004 miod

Move luna88k and mvme88k vm_machdep to m88k-agnostic code area.


# 1.4 19-Jun-2004 miod

Share common ddb files accross m88k platforms.


Revision tags: SMP_SYNC_A SMP_SYNC_B
# 1.3 07-May-2004 aoyama

branches: 1.3.2;
Add new file <machine/conf.h> and clean up console code and structures.
From miod@


# 1.2 29-Apr-2004 miod

Continue factorizing m88k common code, this time files in <arch>/<arch>
which were copied verbatim from mvme88k to luna88k.

This requires backing out syntactic sugar in mvme88k kernel configuration
files which would deduct the required processor types from the board models,
as the common code only depends upon the M88100 and M88110 defines.


# 1.1 21-Apr-2004 aoyama

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_2_BASE
# 1.29 23-Jul-2017 aoyama

Splitting early startup code out of locore.S into locore0.S, like other
architectures.

"Looking good" deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.28 17-Dec-2016 aoyama

Add new device xp(4), preliminary support for LUNA's I/O processor.

This is a straightforward port of NetBSD/luna68k by Izumi Tsutsui(*),
and makes LUNA's I/O auxiliary processor (called XP, actually
HD647180) possible to load and run programs.

(*): http://mail-index.netbsd.org/source-changes/2016/12/03/msg079493.html


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.27 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.26 03-Mar-2015 aoyama

Add pcic(4) support on luna88k.

This is basically glue codes attaching pcic(4) at cbus(4/luna88k),
based on src/sys/dev/isa/i82365_isa{,subr}.c.

Tested on some ne(4) network interface cards, wdc(4) with a CF memory
card, and com(4) with an old XJACK modem card. Currently wi(4) does
not work yet.

suggestions and ok miod@


# 1.25 17-Jan-2015 aoyama

Delete an extra tab.


# 1.24 28-Dec-2014 aoyama

Add an audio driver, necsb(4), for NEC PC-9801-86 sound board on
cbus(4).

This work is based on the source code of NetBSD/pc98, an unofficial
NetBSD port for NEC PC-9801 series, written about 16 years ago.
Thanks to NetBSD/pc98 porting staff for their work, especially NAGAO
Tadaaki and N. Honda who wrote the original driver.

ok miod@


# 1.23 19-Dec-2014 aoyama

Move cbus.c, cbusvar.h, and pcex.c to new 'cbus' directory, to gather
'C-bus' device drivers in it.

More devices on cbus(4) will be added, hopefully :-)

ok miod@


# 1.22 08-Dec-2014 aoyama

Add an intermediate layer driver, cbus(4), to manage its own
interrupts of PC-9801 extension board slot bus (so-called 'C-bus') on
LUNA-88K2.

Existing pcex(4) is now attached at cbus(4), i.e.

cbus0 at mainbus0
pcex0 at cbus0

With this driver, some other PC-9801 boards might be supported on luna88k
in the (near?) future:-)

ok miod@


# 1.21 08-Nov-2014 aoyama

Delete commented out 'romtty' device configuration.

This had been used in the early years of poring OpenBSD to LUNA-88K,
but no longer used.


Revision tags: OPENBSD_5_6_BASE
# 1.20 16-Apr-2014 aoyama

Add generic driver for "NEC PC-9801(*) extension board slot" on
LUNA-88K.

LUNA-88K{,2} has one or two slot(s) that can attach the extension
board designed for PC-9801. This driver provides dedicated mmap(2)
and capability for waiting specified interrupt on that slot so that we
can use the extension board from userland program.

(*)PC-9801 is a Japanese popular personal computer, mainly used in
1980-90's. (see http://en.wikipedia.org/wiki/NEC_PC-9801)

ok miod@, and man pages jmc@


Revision tags: OPENBSD_5_5_BASE
# 1.19 16-Nov-2013 aoyama

Re-organize luna88k rasops om_{copy,erase}{cols,rows} by using one
generic function, based on hp300/dev/diofb_mono.c.

This also fixes `screen is not updated when delete a character if it
is on the middle of a 32-bit word of the frame buffer' problem.

"Go for it!" miod@


# 1.18 24-Sep-2013 miod

Sync the MI LANCE code ( le(4) ) with NetBSD, except for the following:
- the am7990_get() - now lance_get() - is unchanged.
- the interrupt acknowledge logic is unchanged, and will disable interrupts,
then acknowledge all interrupt conditions.

Add ILACC (79900) support (from NetBSD).

Both LANCE (am7990.c) and ILACC (am79900.c) code share as much common code
(lance.c) as possible. This affects all le(4) attachments, but the changes
are mostly mechanical, to split am7990-specific parts from lance-agnostic
parts.

Compile tested on all affected platforms. Tested on alpha, hp300, luna88k,
mvme88k, sparc, sparc64 and vax.


Revision tags: OPENBSD_5_4_BASE
# 1.17 22-May-2013 aoyama

Split keyboard mapping definitions to new files, luna88k/dev/omkbdmap.[ch].
Also modify RAWKEY_XXX values, to input the right characters on Japanese
keyboard.

ok miod@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.16 31-Dec-2010 miod

Massive overhauling of the m88k pmap, though I can't pretend it's a new pmap
since a large part of the structures and logic remains.

Since m88k has separate supervisor/user spaces, we can map physical memory 1:1
in supervisor space, and have the kernel virtual address space start from the
end of physical memory.

This allows us to switch to __HAVE_PMAP_DIRECT. And to get rid of the double
mapped sdt, since now their virtual and physical addresses will always match.

The upper bound of the kernel virtual memory space is now platform dependent,
until the code which relies upon some hardware devices being mapped 1:1 in
supervisor mode is updated to no longer require this (this is mainly a PITA on
luna88k, where onboard devices start at 0x40000000, leaving only 1GB of KVA at
the moment - still much better than the previous 512MB).

Tested on mvme88k only (187, 188, 197LE, 197DP). Other platforms ought to
work, aviion will be checked shortly and fixed if necessary. No known
OpenBSD/luna88k system in working condition at the moment.


# 1.15 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_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.14 09-Feb-2007 aoyama

LCD device driver, second step. Now the driver works with autoconf.

ok miod@


Revision tags: OPENBSD_4_0_BASE
# 1.13 06-Aug-2006 miod

Switch luna88k from rcons to rasops. Tested by aoyama@


# 1.12 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


Revision tags: OPENBSD_3_9_BASE
# 1.11 24-Oct-2005 miod

Factorize db_interface code between luna88k and mvme88k, removing dead code
in the process; the arch-agnostic code keeps the ability for a specific
machine to define its own machine commands, such as "machine prom" for
mvme88k, in addition to the ``regular'' m88k machine commands.


Revision tags: OPENBSD_3_8_BASE
# 1.10 01-May-2005 brad

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

ok deraadt@


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

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


# 1.8 08-Oct-2004 grange

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

ok miod@


# 1.7 03-Oct-2004 miod

Merge locore_c_routines.c into machdep.c, and clear <machine/locore.h> as
done on mvme88k. <machine/locore.h> is about to die very soon...


Revision tags: OPENBSD_3_6_BASE
# 1.6 25-Jul-2004 miod

Merge luna88k and mvme88k pmap. The pmap will now assume that the memory
below the kernel text is reserved for the PROM, instead of using fixed
(but different) values between luna88k and mvme88k.

Tested on mvme88k by myself, on luna88k by aoyama@


# 1.5 23-Jul-2004 miod

Move luna88k and mvme88k vm_machdep to m88k-agnostic code area.


# 1.4 19-Jun-2004 miod

Share common ddb files accross m88k platforms.


Revision tags: SMP_SYNC_A SMP_SYNC_B
# 1.3 07-May-2004 aoyama

branches: 1.3.2;
Add new file <machine/conf.h> and clean up console code and structures.
From miod@


# 1.2 29-Apr-2004 miod

Continue factorizing m88k common code, this time files in <arch>/<arch>
which were copied verbatim from mvme88k to luna88k.

This requires backing out syntactic sugar in mvme88k kernel configuration
files which would deduct the required processor types from the board models,
as the common code only depends upon the M88100 and M88110 defines.


# 1.1 21-Apr-2004 aoyama

branches: 1.1.1;
Initial revision