blob: 7ce65ee8bda5ddd2c587369343ab0e304fc15f5e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#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);
}
|