mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:38:10 +00:00
Kernel: Apply changes to use LibBareMetal definitions
This commit is contained in:
parent
7c507c27bf
commit
e559af2008
43 changed files with 84 additions and 892 deletions
|
@ -25,11 +25,11 @@
|
|||
*/
|
||||
|
||||
#include <Kernel/Devices/BXVGADevice.h>
|
||||
#include <Kernel/IO.h>
|
||||
#include <Kernel/PCI/Access.h>
|
||||
#include <Kernel/Process.h>
|
||||
#include <Kernel/VM/AnonymousVMObject.h>
|
||||
#include <Kernel/VM/MemoryManager.h>
|
||||
#include <LibBareMetal/IO.h>
|
||||
#include <LibC/errno_numbers.h>
|
||||
#include <LibC/sys/ioctl_numbers.h>
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
*/
|
||||
|
||||
#include <Kernel/Devices/DebugLogDevice.h>
|
||||
#include <Kernel/IO.h>
|
||||
#include <LibBareMetal/IO.h>
|
||||
|
||||
static DebugLogDevice* s_the;
|
||||
|
||||
|
|
|
@ -27,9 +27,9 @@
|
|||
#include <Kernel/Arch/i386/PIT.h>
|
||||
#include <Kernel/Devices/FloppyDiskDevice.h>
|
||||
#include <Kernel/FileSystem/ProcFS.h>
|
||||
#include <Kernel/IO.h>
|
||||
#include <Kernel/Process.h>
|
||||
#include <Kernel/VM/MemoryManager.h>
|
||||
#include <LibBareMetal/IO.h>
|
||||
|
||||
// Uncomment me for a LOT of output
|
||||
//#define FLOPPY_DEBUG
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
#include <Kernel/Arch/i386/CPU.h>
|
||||
#include <Kernel/Arch/i386/PIC.h>
|
||||
#include <Kernel/Devices/KeyboardDevice.h>
|
||||
#include <Kernel/IO.h>
|
||||
#include <Kernel/TTY/VirtualConsole.h>
|
||||
#include <LibBareMetal/IO.h>
|
||||
|
||||
//#define KEYBOARD_DEBUG
|
||||
|
||||
|
|
|
@ -28,9 +28,9 @@
|
|||
#include <AK/ByteBuffer.h>
|
||||
#include <Kernel/Devices/PATAChannel.h>
|
||||
#include <Kernel/FileSystem/ProcFS.h>
|
||||
#include <Kernel/IO.h>
|
||||
#include <Kernel/Process.h>
|
||||
#include <Kernel/VM/MemoryManager.h>
|
||||
#include <LibBareMetal/IO.h>
|
||||
|
||||
#define PATA_PRIMARY_IRQ 14
|
||||
#define PATA_SECONDARY_IRQ 15
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <Kernel/Arch/i386/CPU.h>
|
||||
#include <Kernel/Arch/i386/PIT.h>
|
||||
#include <Kernel/Devices/PCSpeaker.h>
|
||||
#include <Kernel/IO.h>
|
||||
#include <LibBareMetal/IO.h>
|
||||
|
||||
void PCSpeaker::tone_on(int frequency)
|
||||
{
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include <Kernel/Devices/PS2MouseDevice.h>
|
||||
#include <Kernel/Devices/VMWareBackdoor.h>
|
||||
#include <Kernel/IO.h>
|
||||
#include <LibBareMetal/IO.h>
|
||||
|
||||
#define IRQ_MOUSE 12
|
||||
#define I8042_BUFFER 0x60
|
||||
|
|
|
@ -25,10 +25,10 @@
|
|||
*/
|
||||
|
||||
#include <Kernel/Devices/SB16.h>
|
||||
#include <Kernel/IO.h>
|
||||
#include <Kernel/Thread.h>
|
||||
#include <Kernel/VM/AnonymousVMObject.h>
|
||||
#include <Kernel/VM/MemoryManager.h>
|
||||
#include <LibBareMetal/IO.h>
|
||||
|
||||
//#define SB16_DEBUG
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
*/
|
||||
|
||||
#include <Kernel/Devices/SerialDevice.h>
|
||||
#include <Kernel/IO.h>
|
||||
#include <LibBareMetal/IO.h>
|
||||
|
||||
SerialDevice::SerialDevice(int base_addr, unsigned minor)
|
||||
: CharacterDevice(4, minor)
|
||||
|
@ -95,8 +95,8 @@ void SerialDevice::set_baud(Baud baud)
|
|||
m_baud = baud;
|
||||
|
||||
IO::out8(m_base_addr + 3, IO::in8(m_base_addr + 3) | 0x80); // turn on DLAB
|
||||
IO::out8(m_base_addr + 0, ((char)(baud)) >> 2); // lower half of divisor
|
||||
IO::out8(m_base_addr + 1, ((char)(baud)) & 0xff); // upper half of divisor
|
||||
IO::out8(m_base_addr + 0, ((char)(baud)) >> 2); // lower half of divisor
|
||||
IO::out8(m_base_addr + 1, ((char)(baud)) & 0xff); // upper half of divisor
|
||||
IO::out8(m_base_addr + 3, IO::in8(m_base_addr + 3) & 0x7f); // turn off DLAB
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <AK/String.h>
|
||||
#include <Kernel/Arch/i386/CPU.h>
|
||||
#include <Kernel/Devices/VMWareBackdoor.h>
|
||||
#include <Kernel/IO.h>
|
||||
#include <LibBareMetal/IO.h>
|
||||
|
||||
#define VMWARE_CMD_GETVERSION 0x0a
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue