mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 23:28:58 +00:00
Use W32API.
svn path=/trunk/; revision=15995
This commit is contained in:
parent
580b785a18
commit
ef09f86407
|
@ -1,7 +1,7 @@
|
|||
<module name="acpi" type="kernelmodedriver" installbase="system32/drivers" installname="acpi.sys" warnings="true">
|
||||
<include base="acpi">include</include>
|
||||
<include base="acpi">ospm/include</include>
|
||||
<define name="__USE_W32API" />
|
||||
<define name="__USE_W32API" />
|
||||
<library>ntoskrnl</library>
|
||||
<library>hal</library>
|
||||
<directory name="dispatcher">
|
||||
|
|
|
@ -52,7 +52,6 @@
|
|||
#include <ddk/srb.h>
|
||||
#include <ddk/scsi.h>
|
||||
#include <ddk/ntddscsi.h>
|
||||
#include <ntos/kefuncs.h>
|
||||
|
||||
#include "atapi.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<module name="atapi" type="kernelmodedriver" installbase="system32/drivers" installname="atapi.sys">
|
||||
<bootstrap base="reactos" />
|
||||
<define name="__USE_W32API" />
|
||||
<include base="atapi">.</include>
|
||||
<library>ntoskrnl</library>
|
||||
<library>hal</library>
|
||||
|
|
|
@ -35,9 +35,12 @@
|
|||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ddk/scsi.h>
|
||||
#include <ddk/class2.h>
|
||||
#include <ddk/ntddscsi.h>
|
||||
#include <ddk/ntdddisk.h>
|
||||
#include <ddk/ntddcdrm.h>
|
||||
#include <ddk/class2.h>
|
||||
#include <ntos/minmax.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
@ -134,7 +137,7 @@ VOID STDCALL
|
|||
CdromTimerRoutine(IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PVOID Context);
|
||||
|
||||
VOID
|
||||
VOID STDCALL
|
||||
CdromWorkItem(IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PVOID Context);
|
||||
|
||||
|
@ -1633,7 +1636,7 @@ CdromTimerRoutine(IN PDEVICE_OBJECT DeviceObject,
|
|||
}
|
||||
|
||||
|
||||
VOID
|
||||
VOID STDCALL
|
||||
CdromWorkItem(IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PVOID Context)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<module name="cdrom" type="kernelmodedriver" installbase="system32/drivers" installname="cdrom.sys">
|
||||
<bootstrap base="reactos" />
|
||||
<define name="__USE_W32API" />
|
||||
<library>ntoskrnl</library>
|
||||
<library>hal</library>
|
||||
<library>class2</library>
|
||||
|
|
|
@ -33,12 +33,15 @@
|
|||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ddk/ntdddisk.h>
|
||||
#include <ddk/scsi.h>
|
||||
#include <ddk/class2.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S))
|
||||
|
||||
#define VERSION "0.0.2"
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<module name="class2" type="kernelmodedriver" installbase="system32/drivers" installname="class2.sys">
|
||||
<bootstrap base="reactos" />
|
||||
<define name="__USE_W32API" />
|
||||
<importlibrary definition="class2.def" />
|
||||
<library>ntoskrnl</library>
|
||||
<library>hal</library>
|
||||
|
|
|
@ -28,9 +28,11 @@
|
|||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ddk/ntdddisk.h>
|
||||
#include <ddk/scsi.h>
|
||||
#include <ddk/class2.h>
|
||||
#include <ddk/ntddscsi.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<module name="disk" type="kernelmodedriver" installbase="system32/drivers" installname="disk.sys" warnings="true">
|
||||
<bootstrap base="reactos" />
|
||||
<define name="__USE_W32API" />
|
||||
<linkerflag>-lgcc</linkerflag>
|
||||
<library>ntoskrnl</library>
|
||||
<library>hal</library>
|
||||
|
|
|
@ -29,8 +29,10 @@
|
|||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ddk/scsi.h>
|
||||
#include <ddk/class2.h>
|
||||
#include <ddk/ntdddisk.h>
|
||||
#include <ddk/ntddscsi.h>
|
||||
#include <ddk/class2.h>
|
||||
#include <ntos.h>
|
||||
#include <napi/core.h>
|
||||
#include "../scsiport/scsiport_int.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<module name="diskdump" type="kernelmodedriver" installbase="system32/drivers" installname="diskdump.sys">
|
||||
<bootstrap base="reactos" />
|
||||
<define name="__USE_W32API" />
|
||||
<library definition="diskdump.def" />
|
||||
<library>ntoskrnl</library>
|
||||
<library>hal</library>
|
||||
|
|
|
@ -29,13 +29,11 @@
|
|||
#define MAX_DRIVES_PER_CONTROLLER 4
|
||||
#define MAX_CONTROLLERS 4
|
||||
|
||||
#ifdef _MSC_VER
|
||||
/* MS doesn't prototype this but the w2k kernel exports it */
|
||||
int _cdecl swprintf(const WCHAR *, ...);
|
||||
|
||||
/* need ioctls in ddk build mode */
|
||||
#include <ntdddisk.h>
|
||||
#endif
|
||||
|
||||
/* missing from ros headers */
|
||||
/* TODO: fix this right */
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<module name="floppy" type="kernelmodedriver" installbase="system32/drivers" installname="floppy.sys">
|
||||
<bootstrap base="reactos" />
|
||||
<define name="__USE_W32API" />
|
||||
<include base="floppy">.</include>
|
||||
<library>ntoskrnl</library>
|
||||
<library>hal</library>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <ddk/scsi.h>
|
||||
#include <ddk/ntddscsi.h>
|
||||
#include <ntos/minmax.h>
|
||||
#include <rosrtl/string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
@ -2337,7 +2337,8 @@ SpiBuildDeviceMap (PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
|
|||
{
|
||||
PSCSI_PORT_LUN_EXTENSION LunExtension;
|
||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||
UNICODE_STRING KeyName;
|
||||
UNICODE_STRING KeyName =
|
||||
RTL_CONSTANT_STRING(L"\\Registry\\Machine\\Hardware\\DeviceMap\\Scsi");
|
||||
UNICODE_STRING ValueName;
|
||||
WCHAR NameBuffer[64];
|
||||
ULONG Disposition;
|
||||
|
@ -2365,8 +2366,6 @@ SpiBuildDeviceMap (PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
|
|||
}
|
||||
|
||||
/* Open or create the 'Scsi' subkey */
|
||||
RtlRosInitUnicodeStringFromLiteral(&KeyName,
|
||||
L"\\Registry\\Machine\\Hardware\\DeviceMap\\Scsi");
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
&KeyName,
|
||||
OBJ_CASE_INSENSITIVE | OBJ_OPENIF,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<module name="scsiport" type="kernelmodedriver" installbase="system32/drivers" installname="scsiport.sys">
|
||||
<bootstrap base="reactos" />
|
||||
<define name="__USE_W32API" />
|
||||
<importlibrary definition="scsiport.def" />
|
||||
<include base="scsiport">.</include>
|
||||
<library>ntoskrnl</library>
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
|
||||
#define VERSION "0.0.3"
|
||||
|
||||
#define PAGE_ROUND_UP(x) ( (((ULONG_PTR)x)%PAGE_SIZE) ? ((((ULONG_PTR)x)&(~(PAGE_SIZE-1)))+PAGE_SIZE) : ((ULONG_PTR)x) )
|
||||
#define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S))
|
||||
|
||||
typedef enum _SCSI_PORT_TIMER_STATES
|
||||
{
|
||||
IDETimerIdle,
|
||||
|
|
Loading…
Reference in a new issue