Compare commits
No commits in common. "8098ff0616af693dd98d935794340d99b9f21aac" and "39042cbbd4f8d0db4481f07ae93fbbc3b7eec670" have entirely different histories.
8098ff0616
...
39042cbbd4
@ -1,7 +1,6 @@
|
|||||||
#include "arch/PCI.h"
|
#include "arch/PCI.h"
|
||||||
#include "arch/x86_64/IO.h"
|
#include "arch/x86_64/IO.h"
|
||||||
#include <luna/Check.h>
|
#include <luna/Check.h>
|
||||||
#include <luna/Ignore.h>
|
|
||||||
|
|
||||||
#define PCI_ADDRESS_PORT 0xCF8
|
#define PCI_ADDRESS_PORT 0xCF8
|
||||||
#define PCI_VALUE_PORT 0xCFC
|
#define PCI_VALUE_PORT 0xCFC
|
||||||
@ -31,21 +30,18 @@ namespace PCI
|
|||||||
return IO::inl(PCI_VALUE_PORT);
|
return IO::inl(PCI_VALUE_PORT);
|
||||||
}
|
}
|
||||||
|
|
||||||
void write8(const Device::Address& address, u32 field, u8 value)
|
void write8(const Device::Address&, u32, u8)
|
||||||
{
|
{
|
||||||
ignore(address, field, value);
|
|
||||||
todo();
|
todo();
|
||||||
}
|
}
|
||||||
|
|
||||||
void write16(const Device::Address& address, u32 field, u8 value)
|
void write16(const Device::Address&, u32, u16)
|
||||||
{
|
{
|
||||||
ignore(address, field, value);
|
|
||||||
todo();
|
todo();
|
||||||
}
|
}
|
||||||
|
|
||||||
void write32(const Device::Address& address, u32 field, u8 value)
|
void write32(const Device::Address&, u32, u32)
|
||||||
{
|
{
|
||||||
ignore(address, field, value);
|
|
||||||
todo();
|
todo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
template <class... Args> constexpr void ignore(Args...)
|
|
||||||
{
|
|
||||||
}
|
|
@ -9,5 +9,5 @@ mkdir -p $LUNA_BASE
|
|||||||
mkdir -p $LUNA_BASE/usr/include
|
mkdir -p $LUNA_BASE/usr/include
|
||||||
mkdir -p $LUNA_BASE/usr/include/luna
|
mkdir -p $LUNA_BASE/usr/include/luna
|
||||||
|
|
||||||
cp --preserve=timestamps -RT libc/include/ $LUNA_BASE/usr/include
|
cp -RT libc/include/ $LUNA_BASE/usr/include
|
||||||
cp --preserve=timestamps -RT luna/include/luna/ $LUNA_BASE/usr/include/luna
|
cp -RT luna/include/luna/ $LUNA_BASE/usr/include/luna
|
||||||
|
Loading…
Reference in New Issue
Block a user