Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
4092 |
5644 d 3 h |
decky |
/trunk/kernel/genarch/ |
wire keyboard/serial module and device drivers in a more obvious way
(first a device driver is initialized and then it is connected to the generic module) |
|
/trunk/kernel/genarch/include/kbrd/kbrd.h /trunk/kernel/genarch/include/srln/srln.h /trunk/kernel/genarch/src/kbrd/kbrd.c /trunk/kernel/genarch/src/srln/srln.c
|
4078 |
5644 d 8 h |
decky |
/trunk/kernel/genarch/ |
add dummy serial line input and output drivers |
|
/trunk/kernel/genarch/include/drivers/dsrln /trunk/kernel/genarch/include/drivers/dsrln/dsrlnin.h /trunk/kernel/genarch/include/drivers/dsrln/dsrlnout.h /trunk/kernel/genarch/src/drivers/dsrln /trunk/kernel/genarch/src/drivers/dsrln/dsrlnin.c /trunk/kernel/genarch/src/drivers/dsrln/dsrlnout.c
|
4043 |
5649 d 4 h |
jermar |
/trunk/ |
Serial line module. |
|
/trunk/kernel/genarch/include/srln /trunk/kernel/genarch/include/srln/srln.h /trunk/kernel/genarch/src/srln /trunk/kernel/genarch/src/srln/srln.c
/trunk/HelenOS.config /trunk/kernel/arch/ia64/src/ia64.c /trunk/kernel/genarch/Makefile.inc
|
4042 |
5649 d 4 h |
jermar |
/trunk/ |
Complete emancipation of kernel serial controller drivers (i8042, ns16550 and
z8530). Provide a common keyboard module for PC and Sun keyboards. The serial
line module is still to follow. |
|
/trunk/kernel/genarch/include/drivers/i8042 /trunk/kernel/genarch/include/drivers/i8042/i8042.h /trunk/kernel/genarch/include/drivers/ns16550 /trunk/kernel/genarch/include/drivers/ns16550/ns16550.h /trunk/kernel/genarch/include/drivers/z8530 /trunk/kernel/genarch/include/drivers/z8530/z8530.h /trunk/kernel/genarch/include/kbrd /trunk/kernel/genarch/include/kbrd/kbrd.h /trunk/kernel/genarch/src/drivers/i8042 /trunk/kernel/genarch/src/drivers/i8042/i8042.c /trunk/kernel/genarch/src/drivers/ns16550 /trunk/kernel/genarch/src/drivers/ns16550/ns16550.c /trunk/kernel/genarch/src/drivers/z8530 /trunk/kernel/genarch/src/drivers/z8530/z8530.c /trunk/kernel/genarch/src/kbrd /trunk/kernel/genarch/src/kbrd/kbrd.c
/trunk/kernel/genarch/include/kbd /trunk/kernel/genarch/include/kbrd/i8042.h /trunk/kernel/genarch/include/kbrd/key.h /trunk/kernel/genarch/include/kbrd/ns16550.h /trunk/kernel/genarch/include/kbrd/z8530.h /trunk/kernel/genarch/src/kbd /trunk/kernel/genarch/src/kbrd/i8042.c /trunk/kernel/genarch/src/kbrd/key.c /trunk/kernel/genarch/src/kbrd/ns16550.c /trunk/kernel/genarch/src/kbrd/z8530.c
/trunk/HelenOS.config /trunk/kernel/arch/amd64/src/amd64.c /trunk/kernel/arch/ia32/src/ia32.c /trunk/kernel/arch/ia64/src/ia64.c /trunk/kernel/arch/ia64/src/smp/smp.c /trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/arch/sparc64/src/drivers/kbd.c /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/genarch/Makefile.inc /trunk/kernel/genarch/src/kbrd/scanc_pc.c /trunk/kernel/genarch/src/kbrd/scanc_sun.c /trunk/kernel/generic/include/console/console.h /trunk/kernel/generic/src/console/console.c /trunk/kernel/generic/src/main/main.c
|
4022 |
5652 d 23 h |
svoboda |
/trunk/ |
Move multiboot parsing to genarch/*/multiboot and adapt it for use with both ia32 and amd64. Multiboot info parsing now supported on amd64, too. |
|
/trunk/kernel/genarch/include/multiboot /trunk/kernel/genarch/include/multiboot/multiboot.h /trunk/kernel/genarch/src/multiboot /trunk/kernel/genarch/src/multiboot/multiboot.c
/trunk/kernel/arch/ia32/include/boot/multiboot.h
/trunk/HelenOS.config /trunk/kernel/arch/amd64/include/arch.h /trunk/kernel/arch/amd64/include/boot/boot.h /trunk/kernel/arch/amd64/src/amd64.c /trunk/kernel/arch/amd64/src/boot/boot.S /trunk/kernel/arch/ia32/include/arch.h /trunk/kernel/arch/ia32/include/boot/boot.h /trunk/kernel/arch/ia32/src/ia32.c /trunk/kernel/genarch/Makefile.inc
|
4021 |
5653 d 0 h |
jermar |
/trunk/kernel/ |
There is no need to define ioport{8,16,32}_t types for each architecture separately. |
|
/trunk/kernel/arch/amd64/include/asm.h /trunk/kernel/arch/amd64/include/types.h /trunk/kernel/arch/arm32/include/asm.h /trunk/kernel/arch/arm32/include/types.h /trunk/kernel/arch/ia32/include/asm.h /trunk/kernel/arch/ia32/include/types.h /trunk/kernel/arch/ia64/include/asm.h /trunk/kernel/arch/ia64/include/types.h /trunk/kernel/arch/mips32/include/asm.h /trunk/kernel/arch/mips32/include/types.h /trunk/kernel/arch/ppc32/include/asm.h /trunk/kernel/arch/ppc32/include/types.h /trunk/kernel/arch/sparc64/include/types.h /trunk/kernel/genarch/include/drivers/ega/ega.h /trunk/kernel/generic/include/typedefs.h
|
3963 |
5662 d 5 h |
jermar |
/trunk/kernel/ |
The kernel i8042 driver should be instance-neutral. |
|
/trunk/kernel/arch/amd64/src/amd64.c /trunk/kernel/arch/ia32/src/ia32.c /trunk/kernel/arch/ia64/src/ia64.c /trunk/kernel/genarch/include/kbd/i8042.h /trunk/kernel/genarch/src/kbd/i8042.c
|
3961 |
5662 d 5 h |
jermar |
/trunk/ |
Unbreak sparc64.
Due to the lack of userspace bus drivers for the z8530 and ns16550,
we are currently handling exactly one interrupt from these devices
in userspace. |
|
/trunk/kernel/arch/sparc64/include/drivers/z8530.h
/trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/arch/sparc64/src/drivers/kbd.c /trunk/kernel/arch/sparc64/src/drivers/sgcn.c /trunk/kernel/genarch/include/kbd/z8530.h /trunk/kernel/genarch/src/kbd/z8530.c /trunk/uspace/srv/kbd/port/z8530.c
|
3960 |
5662 d 23 h |
jermar |
/trunk/kernel/genarch/include/kbd/ |
Remove extern declarations. |
|
/trunk/kernel/genarch/include/kbd/i8042.h /trunk/kernel/genarch/include/kbd/ns16550.h
|
3941 |
5664 d 0 h |
jermar |
/trunk/kernel/ |
Let IRQ claim methods take irq_t * instead of the instance argument. |
|
/trunk/kernel/arch/arm32/src/drivers/gxemul.c /trunk/kernel/arch/ia32/src/drivers/i8254.c /trunk/kernel/arch/ia32/src/smp/apic.c /trunk/kernel/arch/ia64/src/drivers/it.c /trunk/kernel/arch/ia64/src/ski/ski.c /trunk/kernel/arch/mips32/src/drivers/msim.c /trunk/kernel/arch/mips32/src/drivers/serial.c /trunk/kernel/arch/mips32/src/interrupt.c /trunk/kernel/arch/ppc32/src/drivers/cuda.c /trunk/kernel/arch/sparc64/src/drivers/sgcn.c /trunk/kernel/genarch/include/kbd/ns16550.h /trunk/kernel/genarch/include/kbd/z8530.h /trunk/kernel/genarch/src/kbd/i8042.c /trunk/kernel/genarch/src/kbd/ns16550.c /trunk/kernel/genarch/src/kbd/z8530.c /trunk/kernel/generic/include/ddi/irq.h /trunk/kernel/generic/src/console/console.c /trunk/kernel/generic/src/console/kconsole.c
|
3940 |
5664 d 3 h |
decky |
/trunk/kernel/ |
make hw_area API more generic
this allows mapping of EGA VRAM on ia32/amd64 |
|
/trunk/kernel/arch/amd64/include/mm/tlb.h /trunk/kernel/arch/amd64/src/mm/page.c /trunk/kernel/arch/arm32/include/mm/tlb.h /trunk/kernel/arch/arm32/src/mm/page.c /trunk/kernel/arch/arm32/src/mm/tlb.c /trunk/kernel/arch/ia32/include/mm/tlb.h /trunk/kernel/arch/ia32/src/mm/page.c /trunk/kernel/arch/ia32/src/mm/tlb.c /trunk/kernel/arch/ia64/include/mm/tlb.h /trunk/kernel/arch/ia64/src/mm/page.c /trunk/kernel/arch/ia64/src/mm/tlb.c /trunk/kernel/arch/mips32/src/mm/page.c /trunk/kernel/arch/ppc32/src/mm/page.c /trunk/kernel/arch/sparc64/src/mm/page.c /trunk/kernel/genarch/include/drivers/ega/ega.h /trunk/kernel/genarch/include/drivers/legacy/ia32/io.h /trunk/kernel/genarch/src/drivers/ega/ega.c /trunk/kernel/generic/include/mm/page.h /trunk/kernel/generic/src/ddi/ddi.c
|
3938 |
5664 d 4 h |
jermar |
/trunk/kernel/genarch/ |
Embed the ns16550 irq structure into the ns16550 instance structure. |
|
/trunk/kernel/genarch/include/kbd/ns16550.h /trunk/kernel/genarch/src/kbd/ns16550.c
|
3934 |
5664 d 21 h |
jermar |
/trunk/kernel/ |
Improve the ns16550 driver.
- The driver support multiple instances.
- It still remembers the last registered IRQ in a global structure (cannot be
easily fixed now)
- Was converted to use PIO directly |
|
/trunk/kernel/arch/ia64/src/ia64.c /trunk/kernel/arch/ia64/src/smp/smp.c /trunk/kernel/genarch/include/drivers/legacy/ia32/io.h /trunk/kernel/genarch/include/kbd/i8042.h /trunk/kernel/genarch/include/kbd/ns16550.h /trunk/kernel/genarch/src/kbd/i8042.c /trunk/kernel/genarch/src/kbd/ns16550.c
|
3932 |
5664 d 22 h |
jermar |
/trunk/kernel/ |
Kill arch/drivers/ega.h. Provide one-stop shopping
place for architectures with ia32 legacy I/O space. |
|
/trunk/kernel/genarch/include/drivers/legacy /trunk/kernel/genarch/include/drivers/legacy/ia32 /trunk/kernel/genarch/include/drivers/legacy/ia32/io.h
/trunk/kernel/arch/ia32/include/drivers/ega.h /trunk/kernel/arch/ia64/include/drivers/ega.h
/trunk/kernel/arch/amd64/src/amd64.c /trunk/kernel/arch/ia32/src/ia32.c /trunk/kernel/arch/ia64/src/ia64.c /trunk/kernel/genarch/src/kbd/i8042.c
|
3931 |
5664 d 23 h |
jermar |
/trunk/kernel/genarch/ |
Improve the i8042 kernel driver (phase I).
- Convert the code to be instance-aware
- Still using hardcoded initialization from legacy IO address
- Use elegant i8042 register map for PIO |
|
/trunk/kernel/genarch/include/kbd/i8042.h /trunk/kernel/genarch/src/kbd/i8042.c
|
3930 |
5664 d 23 h |
jermar |
/trunk/kernel/ |
Adapt most of the kernel to ioport8_t, ioport16_t and ioport32_t types. |
|
/trunk/kernel/arch/ia32/include/drivers/ega.h /trunk/kernel/arch/ia32/include/drivers/i8259.h /trunk/kernel/arch/ia32/src/drivers/i8254.c /trunk/kernel/arch/ia32/src/drivers/i8259.c /trunk/kernel/arch/ia32/src/smp/smp.c /trunk/kernel/arch/ia64/include/drivers/ega.h /trunk/kernel/genarch/include/drivers/ega/ega.h /trunk/kernel/genarch/src/drivers/ega/ega.c /trunk/kernel/generic/src/ipc/irq.c
|
3927 |
5665 d 1 h |
jermar |
/trunk/kernel/genarch/ |
Nuke i8042_poll(). |
|
/trunk/kernel/genarch/include/kbd/i8042.h /trunk/kernel/genarch/src/kbd/i8042.c
|
3907 |
5668 d 10 h |
decky |
/trunk/kernel/ |
remove forgotten #ifdef arch |
|
/trunk/kernel/test/debug/mips1_skip.c /trunk/kernel/test/mm/purge1_skip.c
/trunk/kernel/Makefile /trunk/kernel/genarch/include/kbd/ns16550.h /trunk/kernel/test/debug/mips1.c /trunk/kernel/test/debug/mips1.def /trunk/kernel/test/mm/purge1.c /trunk/kernel/test/mm/purge1.def
|
3906 |
5668 d 21 h |
jermar |
/trunk/kernel/ |
IRQ handlers are using one superfluous argument and an unused elipsis.
On the other hand, IRQ claim functions would need to be passed the instance
argument. |
|
/trunk/kernel/arch/amd64/src/interrupt.c /trunk/kernel/arch/arm32/src/drivers/gxemul.c /trunk/kernel/arch/ia32/src/drivers/i8254.c /trunk/kernel/arch/ia32/src/interrupt.c /trunk/kernel/arch/ia32/src/smp/apic.c /trunk/kernel/arch/ia64/src/drivers/it.c /trunk/kernel/arch/ia64/src/interrupt.c /trunk/kernel/arch/ia64/src/ski/ski.c /trunk/kernel/arch/mips32/src/drivers/msim.c /trunk/kernel/arch/mips32/src/drivers/serial.c /trunk/kernel/arch/mips32/src/exception.c /trunk/kernel/arch/mips32/src/interrupt.c /trunk/kernel/arch/ppc32/src/drivers/cuda.c /trunk/kernel/arch/ppc32/src/interrupt.c /trunk/kernel/arch/sparc64/include/cpu_family.h /trunk/kernel/arch/sparc64/include/cpu_node.h /trunk/kernel/arch/sparc64/src/drivers/sgcn.c /trunk/kernel/arch/sparc64/src/trap/interrupt.c /trunk/kernel/genarch/include/kbd/ns16550.h /trunk/kernel/genarch/include/kbd/z8530.h /trunk/kernel/genarch/src/kbd/i8042.c /trunk/kernel/genarch/src/kbd/ns16550.c /trunk/kernel/genarch/src/kbd/z8530.c /trunk/kernel/generic/include/ddi/irq.h /trunk/kernel/generic/src/console/console.c /trunk/kernel/generic/src/console/kconsole.c /trunk/kernel/generic/src/ddi/irq.c
|
3902 |
5669 d 5 h |
jermar |
/trunk/kernel/ |
Introduce a more platform-neutral name for programmed I/O.
The new API looks like pio_read_n() or pio_write_n(), where n is 8, 16 or 32.
The old API (i.e. inb(), inw(), inl(), outb() outw(), outl()) may have made
some people think that the interface is only to be used with the separate I/O
space. That's not the case. This API is to be implemented on all platforms
so that we can finally have really generic kernel device drivers. |
|
/trunk/kernel/arch/amd64/include/asm.h /trunk/kernel/arch/arm32/include/asm.h /trunk/kernel/arch/ia32/include/asm.h /trunk/kernel/arch/ia32/include/drivers/i8042.h /trunk/kernel/arch/ia32/src/drivers/i8254.c /trunk/kernel/arch/ia32/src/drivers/i8259.c /trunk/kernel/arch/ia32/src/smp/smp.c /trunk/kernel/arch/ia64/include/asm.h /trunk/kernel/arch/ia64/include/drivers/i8042.h /trunk/kernel/arch/ia64/src/ia64.c /trunk/kernel/arch/mips32/include/asm.h /trunk/kernel/arch/ppc32/include/asm.h /trunk/kernel/arch/sparc64/include/asm.h /trunk/kernel/genarch/include/kbd/ns16550.h /trunk/kernel/genarch/src/drivers/ega/ega.c /trunk/kernel/generic/src/ipc/irq.c
|