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.
37 lines
523 B
37 lines
523 B
#include "miniport.h"
|
|
#include "atapi.h"
|
|
#include "ntdddisk.h"
|
|
#include "ntddscsi.h"
|
|
#include "intel.h"
|
|
|
|
BOOLEAN
|
|
PiixTimingControl (
|
|
struct _HW_DEVICE_EXTENSION DeviceExtension
|
|
)
|
|
{
|
|
|
|
|
|
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
BOOLEAN IntelIsChannelEnabled (
|
|
PPCI_COMMON_CONFIG PciData,
|
|
ULONG Channel)
|
|
{
|
|
PUCHAR rawPciData = (PUCHAR) PciData;
|
|
ULONG pciDataOffset;
|
|
|
|
if (Channel == 0) {
|
|
pciDataOffset = 0x41;
|
|
} else {
|
|
pciDataOffset = 0x43;
|
|
}
|
|
|
|
return (rawPciData[pciDataOffset] & 0x80);
|
|
}
|
|
|
|
|
|
|
|
|