mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1008 B
78 lines
1008 B
/*++
|
|
|
|
Module Name:
|
|
|
|
pxmemctl.c
|
|
|
|
Abstract:
|
|
|
|
This module implements interrupt mode translation for PowerPC machines.
|
|
|
|
|
|
Author:
|
|
|
|
Jim Wooldridge ([email protected])
|
|
|
|
|
|
Revision History:
|
|
|
|
|
|
|
|
--*/
|
|
|
|
|
|
|
|
#include "halp.h"
|
|
|
|
|
|
//
|
|
// Get the translated interrupt mode for the given vector
|
|
//
|
|
|
|
|
|
KINTERRUPT_MODE
|
|
HalpGetInterruptMode (
|
|
IN ULONG Vector,
|
|
IN KIRQL Irql,
|
|
IN KINTERRUPT_MODE InterruptMode
|
|
)
|
|
|
|
{
|
|
|
|
//
|
|
// On Woodfield irq 15 is reserved for PCI interrupts and must be programmed level sensitive
|
|
// all other interrupts are edge triggered
|
|
//
|
|
|
|
if (Vector == DEVICE_VECTORS + 15) {
|
|
|
|
return LevelSensitive;
|
|
|
|
} else {
|
|
|
|
return Latched;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
//
|
|
// Correct the interrupt mode for the given vector.
|
|
// On Woodfield this function simply returns since all interrupt mode translations can be performed
|
|
// at HalpGetInterruptMode time with the interrupt vector.
|
|
//
|
|
|
|
|
|
VOID
|
|
HalpSetInterruptMode (
|
|
IN ULONG Vector,
|
|
IN KIRQL Irql
|
|
)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|