#
1.26 |
|
30-Sep-2020 |
patrick |
Move mfokclock(4) from loongson to sys/dev/i2c so that it be used by more platforms than just loongson. Rename it to mfokrtc(4) for consistency with other RTC drivers. Make it match on st,m41t83, since that was the chip for which the driver was written for. More compatible strings can be added for each chip of the series verified to behave the same.
Discussed with kettenis@ Compile tested on loongson by kn@ Tested on loongson by and ok visa@
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
|
#
1.25 |
|
08-Jun-2017 |
visa |
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 loongson 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.
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_6_1_BASE
|
#
1.24 |
|
17-Nov-2016 |
visa |
Add drivers for PCI host bridge and built-in UARTs on Loongson 3A, and put the pieces together by platform glue.
Feedback from miod@
|
#
1.23 |
|
06-Nov-2016 |
visa |
Add interrupt handling routines for Loongson 3A.
Feedback from miod@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.22 |
|
12-Jan-2016 |
deraadt |
include files.hid before files.i2c
|
#
1.21 |
|
08-Jan-2016 |
jcs |
Move HID support files out of dev/usb into new dev/hid directory
These files aren't USB-specific and were used by the previous Bluetooth implementation, and will be used by the upcoming HID-over-i2C implementation
ok deraadt previous version ok kettenis and mpi
|
#
1.20 |
|
15-Aug-2015 |
miod |
Some bits for Loongson 3A support.
|
Revision tags: OPENBSD_5_8_BASE
|
#
1.19 |
|
08-Jul-2015 |
dlg |
unify the mutex implementations on all the mips64 platforms.
this basically copies the sgi implementation to mips64 and removes it from the rest. this way they get an optimised UP mutex implementation and correct asserts on all platforms.
ok miod@ jmatthew@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.18 |
|
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.17 |
|
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.16 |
|
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.15 |
|
02-Jun-2013 |
pirofti |
Start working on hibernate support for Loongson
This is work in progress. Nothing to test or play with for now. Commiting it now so that I can work on it in-tree.
Okay miod@
|
Revision tags: OPENBSD_5_3_BASE
|
#
1.14 |
|
14-Jan-2013 |
pirofti |
Loongson: Replace the system clock provided by the CPU with a GLX MFGPT.
CPU throttling was not possible due to the fact that the system clock was the CPU clock. So slowing down the CPU would also slow down the passing of time.
This commit adds a driver for the MFGPT1 clock from the AMD companion chip found on lemote and hooks it up as the system clock.
It also changes the frequency value of hz from the default, which was 100, to 128. That's because the scaling on MFGPT clocks is represented by powers of two.
Okay miod@.
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
|
#
1.13 |
|
14-Oct-2010 |
pirofti |
Move glxpcib(4) to MI land unifying the two MD drivers.
Specific features of the companion chip will be handled in MD land.
Okay deraadt@.
|
#
1.12 |
|
01-Sep-2010 |
miod |
Let non-ykbec kernels link again.
|
Revision tags: OPENBSD_4_8_BASE
|
#
1.11 |
|
08-May-2010 |
miod |
Huge work-in-progress commit to support Loongson 2E-based evaluation boards with a VIA 686 southbridge.
Features: - 686 setup code (no thanks to PMON for not initializing the beast). - work in progress ISA interrupt handling code. - support for vga(4) compatible devices as console, in PC-compatible text mode. - move legacy (ISA) support code out of bonito(4) to make things clearer. - support more than 256MB on 2E-based systems.
Tested on a generic 2E-based evaluation board by someone who wishes to remain anonymous; you know who you are, thank you very much for testing.
|
Revision tags: OPENBSD_4_7_BASE
|
#
1.10 |
|
03-Mar-2010 |
jasper |
- add and enable bluetooth
ok miod@ otto@
|
#
1.9 |
|
28-Feb-2010 |
miod |
Minimal frame buffer driver for the SiS 315 found on Lemote Fuloong systems. Currently unable to change video modes or provide any form of acceleration, so you are stuck in a 640x400x8 mode, but at least people scared of serial consoles will get a chance to use their Fuloongs now.
Tested by otto@ (early developments) and jasper@ (final version)
|
#
1.8 |
|
28-Feb-2010 |
otto |
Basic apm(4), providing battery/power status and events. apm(4) is the generic part, ykbec(4) provides the device specific parts. Other battery/power status drivers can easily hook to adb(4). With help from miod@; ok matthieu@ miod@ jasper@
|
#
1.7 |
|
26-Feb-2010 |
miod |
Subdevice interrupt dispatcher for voyager(4) and ohci@voyager device, only allowed to match on old gdium artwork, as newer artwork have nothing connected to the usb pins, and this causes the empty bus probe to stall the boot a few seconds.
|
#
1.6 |
|
24-Feb-2010 |
miod |
Minimal support for the ST7 chip found on Gdium Liberty, brings us battery information and a few other things not yet wired.
|
#
1.5 |
|
23-Feb-2010 |
otto |
ykbec(4), a driver to read fan, temperature and battery status using the kb3310b embedded controller chip on the yeeloong. With help & ok miod@
|
#
1.4 |
|
19-Feb-2010 |
miod |
Add a driver for the M41T8x time-of-day clock chips, such as the M41T83 found on the Gdium Liberty. These machines finally no longer complain about a missing todclock.
|
#
1.3 |
|
18-Feb-2010 |
miod |
Add a master driver for the VoyagerGX SM502 chip found on the Gdium, which is not only a framebuffer. Allow smfb to attach either at pci or at voyager.
Add gpio@voyager and gdiumiic@gpio, a derivative of the MI gpioiic driver. This allows us to get lmtemp@iic on the Lemote; the next step being to write a driver for the i2c todclock chip found on the same bus.
|
#
1.2 |
|
05-Feb-2010 |
miod |
Blind support for the EMTEC Gdium Liberty netbook. Per-platform configuration is moved to specific files, and a pointer to the key configuration structure is now kept in struct sys_config. bonito(4) interrupt handling is split, to allow PCI+Legacy interrupt systems (Lemote Yeelong) and PCI-only Legacy-free systems (Gdium) to coexist peacefully.
|
#
1.1 |
|
25-Dec-2009 |
miod |
branches: 1.1.1; Initial revision
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.25 |
|
08-Jun-2017 |
visa |
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 loongson 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.
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_6_1_BASE
|
#
1.24 |
|
17-Nov-2016 |
visa |
Add drivers for PCI host bridge and built-in UARTs on Loongson 3A, and put the pieces together by platform glue.
Feedback from miod@
|
#
1.23 |
|
06-Nov-2016 |
visa |
Add interrupt handling routines for Loongson 3A.
Feedback from miod@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.22 |
|
12-Jan-2016 |
deraadt |
include files.hid before files.i2c
|
#
1.21 |
|
08-Jan-2016 |
jcs |
Move HID support files out of dev/usb into new dev/hid directory
These files aren't USB-specific and were used by the previous Bluetooth implementation, and will be used by the upcoming HID-over-i2C implementation
ok deraadt previous version ok kettenis and mpi
|
#
1.20 |
|
15-Aug-2015 |
miod |
Some bits for Loongson 3A support.
|
Revision tags: OPENBSD_5_8_BASE
|
#
1.19 |
|
08-Jul-2015 |
dlg |
unify the mutex implementations on all the mips64 platforms.
this basically copies the sgi implementation to mips64 and removes it from the rest. this way they get an optimised UP mutex implementation and correct asserts on all platforms.
ok miod@ jmatthew@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.18 |
|
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.17 |
|
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.16 |
|
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.15 |
|
02-Jun-2013 |
pirofti |
Start working on hibernate support for Loongson
This is work in progress. Nothing to test or play with for now. Commiting it now so that I can work on it in-tree.
Okay miod@
|
Revision tags: OPENBSD_5_3_BASE
|
#
1.14 |
|
14-Jan-2013 |
pirofti |
Loongson: Replace the system clock provided by the CPU with a GLX MFGPT.
CPU throttling was not possible due to the fact that the system clock was the CPU clock. So slowing down the CPU would also slow down the passing of time.
This commit adds a driver for the MFGPT1 clock from the AMD companion chip found on lemote and hooks it up as the system clock.
It also changes the frequency value of hz from the default, which was 100, to 128. That's because the scaling on MFGPT clocks is represented by powers of two.
Okay miod@.
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
|
#
1.13 |
|
14-Oct-2010 |
pirofti |
Move glxpcib(4) to MI land unifying the two MD drivers.
Specific features of the companion chip will be handled in MD land.
Okay deraadt@.
|
#
1.12 |
|
01-Sep-2010 |
miod |
Let non-ykbec kernels link again.
|
Revision tags: OPENBSD_4_8_BASE
|
#
1.11 |
|
08-May-2010 |
miod |
Huge work-in-progress commit to support Loongson 2E-based evaluation boards with a VIA 686 southbridge.
Features: - 686 setup code (no thanks to PMON for not initializing the beast). - work in progress ISA interrupt handling code. - support for vga(4) compatible devices as console, in PC-compatible text mode. - move legacy (ISA) support code out of bonito(4) to make things clearer. - support more than 256MB on 2E-based systems.
Tested on a generic 2E-based evaluation board by someone who wishes to remain anonymous; you know who you are, thank you very much for testing.
|
Revision tags: OPENBSD_4_7_BASE
|
#
1.10 |
|
03-Mar-2010 |
jasper |
- add and enable bluetooth
ok miod@ otto@
|
#
1.9 |
|
28-Feb-2010 |
miod |
Minimal frame buffer driver for the SiS 315 found on Lemote Fuloong systems. Currently unable to change video modes or provide any form of acceleration, so you are stuck in a 640x400x8 mode, but at least people scared of serial consoles will get a chance to use their Fuloongs now.
Tested by otto@ (early developments) and jasper@ (final version)
|
#
1.8 |
|
28-Feb-2010 |
otto |
Basic apm(4), providing battery/power status and events. apm(4) is the generic part, ykbec(4) provides the device specific parts. Other battery/power status drivers can easily hook to adb(4). With help from miod@; ok matthieu@ miod@ jasper@
|
#
1.7 |
|
26-Feb-2010 |
miod |
Subdevice interrupt dispatcher for voyager(4) and ohci@voyager device, only allowed to match on old gdium artwork, as newer artwork have nothing connected to the usb pins, and this causes the empty bus probe to stall the boot a few seconds.
|
#
1.6 |
|
24-Feb-2010 |
miod |
Minimal support for the ST7 chip found on Gdium Liberty, brings us battery information and a few other things not yet wired.
|
#
1.5 |
|
23-Feb-2010 |
otto |
ykbec(4), a driver to read fan, temperature and battery status using the kb3310b embedded controller chip on the yeeloong. With help & ok miod@
|
#
1.4 |
|
19-Feb-2010 |
miod |
Add a driver for the M41T8x time-of-day clock chips, such as the M41T83 found on the Gdium Liberty. These machines finally no longer complain about a missing todclock.
|
#
1.3 |
|
18-Feb-2010 |
miod |
Add a master driver for the VoyagerGX SM502 chip found on the Gdium, which is not only a framebuffer. Allow smfb to attach either at pci or at voyager.
Add gpio@voyager and gdiumiic@gpio, a derivative of the MI gpioiic driver. This allows us to get lmtemp@iic on the Lemote; the next step being to write a driver for the i2c todclock chip found on the same bus.
|
#
1.2 |
|
05-Feb-2010 |
miod |
Blind support for the EMTEC Gdium Liberty netbook. Per-platform configuration is moved to specific files, and a pointer to the key configuration structure is now kept in struct sys_config. bonito(4) interrupt handling is split, to allow PCI+Legacy interrupt systems (Lemote Yeelong) and PCI-only Legacy-free systems (Gdium) to coexist peacefully.
|
#
1.1 |
|
25-Dec-2009 |
miod |
branches: 1.1.1; Initial revision
|