mirror of
https://github.com/reactos/reactos.git
synced 2024-07-28 23:29:19 +00:00
[DISK]
- Add more structures to ntdddisk.h - Fix more compile errors in disk_new - disk_new builds but fails to link as classpnp import lib is broken svn path=/branches/usb-bringup-trunk/; revision=55451
This commit is contained in:
parent
385ddbfd32
commit
99a3cc7d54
|
@ -1201,6 +1201,7 @@ Return Value:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if(_WIN32_WINNT >= 0x0500)
|
||||||
case IOCTL_DISK_GET_WRITE_CACHE_STATE: {
|
case IOCTL_DISK_GET_WRITE_CACHE_STATE: {
|
||||||
|
|
||||||
PDISK_WRITE_CACHE_STATE writeCacheState = (PDISK_WRITE_CACHE_STATE)Irp->AssociatedIrp.SystemBuffer;
|
PDISK_WRITE_CACHE_STATE writeCacheState = (PDISK_WRITE_CACHE_STATE)Irp->AssociatedIrp.SystemBuffer;
|
||||||
|
@ -1248,6 +1249,7 @@ Return Value:
|
||||||
status = STATUS_SUCCESS;
|
status = STATUS_SUCCESS;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
case SMART_GET_VERSION: {
|
case SMART_GET_VERSION: {
|
||||||
|
|
||||||
|
|
|
@ -281,7 +281,7 @@ ULONG DiskDummyData[4] = { 1, 2, 3, 4};
|
||||||
//
|
//
|
||||||
// Enable SMART
|
// Enable SMART
|
||||||
//
|
//
|
||||||
_inline NTSTATUS
|
__inline NTSTATUS
|
||||||
DiskEnableSmart(
|
DiskEnableSmart(
|
||||||
PFUNCTIONAL_DEVICE_EXTENSION FdoExtension
|
PFUNCTIONAL_DEVICE_EXTENSION FdoExtension
|
||||||
)
|
)
|
||||||
|
@ -302,7 +302,7 @@ DiskEnableSmart(
|
||||||
//
|
//
|
||||||
// Disable SMART
|
// Disable SMART
|
||||||
//
|
//
|
||||||
_inline NTSTATUS
|
__inline NTSTATUS
|
||||||
DiskDisableSmart(
|
DiskDisableSmart(
|
||||||
PFUNCTIONAL_DEVICE_EXTENSION FdoExtension
|
PFUNCTIONAL_DEVICE_EXTENSION FdoExtension
|
||||||
)
|
)
|
||||||
|
@ -322,7 +322,7 @@ DiskDisableSmart(
|
||||||
//
|
//
|
||||||
// Enable Attribute Autosave
|
// Enable Attribute Autosave
|
||||||
//
|
//
|
||||||
_inline NTSTATUS
|
__inline NTSTATUS
|
||||||
DiskEnableSmartAttributeAutosave(
|
DiskEnableSmartAttributeAutosave(
|
||||||
PFUNCTIONAL_DEVICE_EXTENSION FdoExtension
|
PFUNCTIONAL_DEVICE_EXTENSION FdoExtension
|
||||||
)
|
)
|
||||||
|
@ -342,7 +342,7 @@ DiskEnableSmartAttributeAutosave(
|
||||||
//
|
//
|
||||||
// Disable Attribute Autosave
|
// Disable Attribute Autosave
|
||||||
//
|
//
|
||||||
_inline NTSTATUS
|
__inline NTSTATUS
|
||||||
DiskDisableSmartAttributeAutosave(
|
DiskDisableSmartAttributeAutosave(
|
||||||
PFUNCTIONAL_DEVICE_EXTENSION FdoExtension
|
PFUNCTIONAL_DEVICE_EXTENSION FdoExtension
|
||||||
)
|
)
|
||||||
|
@ -362,7 +362,7 @@ DiskDisableSmartAttributeAutosave(
|
||||||
//
|
//
|
||||||
// Initialize execution of SMART online diagnostics
|
// Initialize execution of SMART online diagnostics
|
||||||
//
|
//
|
||||||
_inline NTSTATUS
|
__inline NTSTATUS
|
||||||
DiskExecuteSmartDiagnostics(
|
DiskExecuteSmartDiagnostics(
|
||||||
PFUNCTIONAL_DEVICE_EXTENSION FdoExtension,
|
PFUNCTIONAL_DEVICE_EXTENSION FdoExtension,
|
||||||
UCHAR Subcommand
|
UCHAR Subcommand
|
||||||
|
|
|
@ -646,7 +646,7 @@ Return Value:
|
||||||
ULONG partitionOrdinal;
|
ULONG partitionOrdinal;
|
||||||
ULONG newPartitionNumber;
|
ULONG newPartitionNumber;
|
||||||
|
|
||||||
PPARTITION_INFORMATION_EX partitionEntry;
|
PPARTITION_INFORMATION_EX partitionEntry = NULL;
|
||||||
PDISK_DATA pdoData;
|
PDISK_DATA pdoData;
|
||||||
PARTITION_STYLE partitionStyle;
|
PARTITION_STYLE partitionStyle;
|
||||||
|
|
||||||
|
|
|
@ -42,4 +42,5 @@ add_pch(classpnp classp.h)
|
||||||
target_link_libraries(classpnp ${PSEH_LIB} libcntpr)
|
target_link_libraries(classpnp ${PSEH_LIB} libcntpr)
|
||||||
set_module_type(classpnp kernelmodedriver)
|
set_module_type(classpnp kernelmodedriver)
|
||||||
add_importlibs(classpnp hal ntoskrnl)
|
add_importlibs(classpnp hal ntoskrnl)
|
||||||
|
add_importlib_target(class.spec)
|
||||||
add_cd_file(TARGET classpnp DESTINATION reactos/system32/drivers NO_CAB FOR all)
|
add_cd_file(TARGET classpnp DESTINATION reactos/system32/drivers NO_CAB FOR all)
|
||||||
|
|
|
@ -581,6 +581,29 @@ typedef struct _MAPPED_ADDRESS {
|
||||||
|
|
||||||
|
|
||||||
#if(_WIN32_WINNT >= 0x0500)
|
#if(_WIN32_WINNT >= 0x0500)
|
||||||
|
|
||||||
|
typedef struct _CREATE_DISK_GPT
|
||||||
|
{
|
||||||
|
GUID DiskId;
|
||||||
|
ULONG MaxPartitionCount;
|
||||||
|
} CREATE_DISK_GPT, *PCREATE_DISK_GPT;
|
||||||
|
|
||||||
|
typedef struct _CREATE_DISK_MBR
|
||||||
|
{
|
||||||
|
ULONG Signature;
|
||||||
|
} CREATE_DISK_MBR, *PCREATE_DISK_MBR;
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct _CREATE_DISK
|
||||||
|
{
|
||||||
|
PARTITION_STYLE PartitionStyle;
|
||||||
|
union {
|
||||||
|
CREATE_DISK_MBR Mbr;
|
||||||
|
CREATE_DISK_GPT Gpt;
|
||||||
|
};
|
||||||
|
} CREATE_DISK, *PCREATE_DISK;
|
||||||
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
EqualPriority,
|
EqualPriority,
|
||||||
KeepPrefetchedData,
|
KeepPrefetchedData,
|
||||||
|
|
Loading…
Reference in a new issue