More cleanup
This commit is contained in:
@@ -34,15 +34,15 @@ namespace JabyEngine {
|
||||
};
|
||||
|
||||
struct Interrupt {
|
||||
static void enable_all(IOPort<InterruptEnable::UnderlyingType, InterruptEnable>& port) {
|
||||
static void enable_all(IOPortEx<InterruptEnable>& port) {
|
||||
port.write({InterruptEnable::with(InterruptEnable::InterruptTypValue.max(), InterruptEnable::UnknownIRQ, InterruptEnable::CommandStartIRQ)});
|
||||
}
|
||||
|
||||
static uint8_t get_type(const IOPort<InterruptFlag::UnderlyingType, InterruptFlag>& port) {
|
||||
static uint8_t get_type(const IOPortEx<InterruptFlag>& port) {
|
||||
return port.read().get_value(InterruptFlag::InterruptTypValue);
|
||||
}
|
||||
|
||||
static void ack(IOPort<InterruptFlag::UnderlyingType, InterruptFlag>& port) {
|
||||
static void ack(IOPortEx<InterruptFlag>& port) {
|
||||
port.write_range_value(InterruptFlag::InterruptTypValue.max());
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user