Author: spetreolle
Date: Sun Mar 18 18:38:04 2007
New Revision: 26132
URL:
http://svn.reactos.org/svn/reactos?rev=26132&view=rev
Log:
various fixes
sb16_ks now builds, but cannot be built
Modified:
trunk/reactos/drivers/multimedia/sb16_ks/adapter.cpp
trunk/reactos/drivers/multimedia/sb16_ks/main.cpp
Modified: trunk/reactos/drivers/multimedia/sb16_ks/adapter.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/multimedia/sb16_ks…
==============================================================================
--- trunk/reactos/drivers/multimedia/sb16_ks/adapter.cpp (original)
+++ trunk/reactos/drivers/multimedia/sb16_ks/adapter.cpp Sun Mar 18 18:38:04 2007
@@ -114,6 +114,12 @@
}
+STDMETHODIMP_(void)
+SetWaveMiniport(
+ IN PWAVEMINIPORTSB16 Miniport)
+{
+}
+
/*
STDMETHODIMP_(void)
CAdapterSB16::PowerChangeState(
Modified: trunk/reactos/drivers/multimedia/sb16_ks/main.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/multimedia/sb16_ks…
==============================================================================
--- trunk/reactos/drivers/multimedia/sb16_ks/main.cpp (original)
+++ trunk/reactos/drivers/multimedia/sb16_ks/main.cpp Sun Mar 18 18:38:04 2007
@@ -31,6 +31,7 @@
{
/* ASSERT(Port); */
+#if 0
PPORTCLSVERSION portcls_version;
PDRMPORT drm_port;
PPORTEVENTS port_events;
@@ -70,6 +71,9 @@
}
return version;
+#else
+ return kVersionWin98;
+#endif
}
@@ -102,6 +106,7 @@
}
break;
+ }
case 2 :
{
@@ -198,26 +203,26 @@
/* Wave I/O resources */
- status = PcNewResourceSublist(Resources->Wave,
+ status = PcNewResourceSublist(&Resources->Wave,
NULL,
PagedPool,
ResourceList,
ResourceList->NumberOfDmas() +
- ResourceList->NumberOfInterrupts + 1);
+ ResourceList->NumberOfInterrupts() + 1);
if ( NT_SUCCESS(status) )
{
ULONG i;
/* Base port address */
- status = (*Resources->Wave)->AddPortFromParent(ResourceList, 0);
+ status = (*Resources->Wave).AddPortFromParent(ResourceList, 0);
/* DMA channels */
if ( NT_SUCCESS(status) )
{
for ( i = 0; i < ResourceList->NumberOfDmas(); i ++ )
{
- status = (*Resources->Wave)->AddDmaFromParent(ResourceList, i);
+ status = (*Resources->Wave).AddDmaFromParent(ResourceList, i);
if ( ! NT_SUCCESS(status) )
break;
@@ -229,7 +234,7 @@
{
for ( i = 0; i < ResourceList->NumberOfInterrupts(); i ++ )
{
- status = (*Resources->Wave)->AddInterruptFromParent(ResourceList,
i);
+ status = (*Resources->Wave).AddInterruptFromParent(ResourceList, i);
if ( ! NT_SUCCESS(status) )
break;
@@ -255,7 +260,7 @@
if ( NT_SUCCESS(status) )
{
- status = PcNewResourceSublist(Resources->Adapter,
+ status = PcNewResourceSublist(&Resources->Adapter,
NULL,
PagedPool,
ResourceList,
@@ -263,12 +268,12 @@
if ( NT_SUCCESS(status) )
{
- status = (*Resources->Adapter)->AddInterruptFromParent(ResourceList,
0);
+ status = (*Resources->Adapter).AddInterruptFromParent(ResourceList, 0);
}
if ( NT_SUCCESS(status) )
{
- status = (*Resources->Adapter)->AddPortFromParent(ResourceList, 0);
+ status = (*Resources->Adapter).AddPortFromParent(ResourceList, 0);
}
if ( NT_SUCCESS(status) && HasUart )
@@ -281,16 +286,16 @@
if ( ! NT_SUCCESS(status) )
{
- if ( *Resources->Wave )
- {
- (*Resources->Wave)->Release();
- *Resources->Wave = NULL;
- }
-
- if ( *Resources->Adapter )
- {
- (*Resources->Adapter)->Release();
- *Resources->Adapter = NULL;
+ if ( (*Resources).Wave != NULL )
+ {
+ (*Resources->Wave).Release();
+ (*Resources).Wave = NULL;
+ }
+
+ if ( (*Resources).Adapter != NULL )
+ {
+ (*Resources->Adapter).Release();
+ (*Resources).Adapter = NULL;
}
}
@@ -310,10 +315,10 @@
PUNKNOWN UnknownTopology = NULL;
PUNKNOWN UnknownWave = NULL;
- PUNKNOWN UnknownWaveTable = NUL;
+ PUNKNOWN UnknownWaveTable = NULL;
PUNKNOWN UnknownFmSynth = NULL;
- PADAPTERCOMMON AdapterCommon = NULL;
+// PADAPTERCOMMON AdapterCommon = NULL;
PUNKNOWN UnknownCommon = NULL;
status = AssignResources(ResourceList, &DeviceResources);
@@ -326,7 +331,7 @@
}
extern "C"
-NSTATUS
+NTSTATUS
AddDevice(
IN PDRIVER_OBJECT DriverObject,
IN PDEVICE_OBJECT PhysicalDeviceObject)
@@ -348,9 +353,10 @@
status = PcInitializeAdapterDriver(DriverObject,
RegistryPathName,
- AddDevice);
+ (PDRIVER_ADD_DEVICE) AddDevice);
/* TODO: Add our own IRP handlers here */
return status;
-}
+}
+