mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 05:58:13 +00:00
Added more debug messages.
Register interrupts with hal and allow shared interrupts. svn path=/trunk/; revision=3853
This commit is contained in:
parent
39a9c0a865
commit
4db7fe648e
1 changed files with 24 additions and 12 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: scsiport.c,v 1.25 2002/12/03 23:57:05 ekohl Exp $
|
/* $Id: scsiport.c,v 1.26 2002/12/09 20:01:14 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -252,6 +252,7 @@ ScsiPortCompleteRequest(IN PVOID HwDeviceExtension,
|
||||||
IN UCHAR Lun,
|
IN UCHAR Lun,
|
||||||
IN UCHAR SrbStatus)
|
IN UCHAR SrbStatus)
|
||||||
{
|
{
|
||||||
|
DPRINT("ScsiPortCompleteRequest()\n");
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -259,6 +260,7 @@ ScsiPortCompleteRequest(IN PVOID HwDeviceExtension,
|
||||||
ULONG STDCALL
|
ULONG STDCALL
|
||||||
ScsiPortConvertPhysicalAddressToUlong(IN SCSI_PHYSICAL_ADDRESS Address)
|
ScsiPortConvertPhysicalAddressToUlong(IN SCSI_PHYSICAL_ADDRESS Address)
|
||||||
{
|
{
|
||||||
|
DPRINT("ScsiPortConvertPhysicalAddressToUlong()\n");
|
||||||
return(Address.u.LowPart);
|
return(Address.u.LowPart);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,6 +268,7 @@ ScsiPortConvertPhysicalAddressToUlong(IN SCSI_PHYSICAL_ADDRESS Address)
|
||||||
VOID STDCALL
|
VOID STDCALL
|
||||||
ScsiPortFlushDma(IN PVOID HwDeviceExtension)
|
ScsiPortFlushDma(IN PVOID HwDeviceExtension)
|
||||||
{
|
{
|
||||||
|
DPRINT("ScsiPortFlushDma()\n");
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -274,6 +277,7 @@ VOID STDCALL
|
||||||
ScsiPortFreeDeviceBase(IN PVOID HwDeviceExtension,
|
ScsiPortFreeDeviceBase(IN PVOID HwDeviceExtension,
|
||||||
IN PVOID MappedAddress)
|
IN PVOID MappedAddress)
|
||||||
{
|
{
|
||||||
|
DPRINT("ScsiPortFreeDeviceBase()\n");
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -308,6 +312,10 @@ ScsiPortGetDeviceBase(IN PVOID HwDeviceExtension,
|
||||||
PVOID Buffer;
|
PVOID Buffer;
|
||||||
BOOLEAN rc;
|
BOOLEAN rc;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DPRINT("ScsiPortGetDeviceBase()\n");
|
||||||
|
|
||||||
AddressSpace = (ULONG)InIoSpace;
|
AddressSpace = (ULONG)InIoSpace;
|
||||||
|
|
||||||
if (!HalTranslateBusAddress(BusType,
|
if (!HalTranslateBusAddress(BusType,
|
||||||
|
@ -339,6 +347,7 @@ ScsiPortGetLogicalUnit(IN PVOID HwDeviceExtension,
|
||||||
IN UCHAR TargetId,
|
IN UCHAR TargetId,
|
||||||
IN UCHAR Lun)
|
IN UCHAR Lun)
|
||||||
{
|
{
|
||||||
|
DPRINT("ScsiPortGetLogicalUnit()\n");
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -349,6 +358,7 @@ ScsiPortGetPhysicalAddress(IN PVOID HwDeviceExtension,
|
||||||
IN PVOID VirtualAddress,
|
IN PVOID VirtualAddress,
|
||||||
OUT ULONG *Length)
|
OUT ULONG *Length)
|
||||||
{
|
{
|
||||||
|
DPRINT("ScsiPortGetPhysicalAddress()\n");
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -360,6 +370,7 @@ ScsiPortGetSrb(IN PVOID DeviceExtension,
|
||||||
IN UCHAR Lun,
|
IN UCHAR Lun,
|
||||||
IN LONG QueueTag)
|
IN LONG QueueTag)
|
||||||
{
|
{
|
||||||
|
DPRINT("ScsiPortGetSrb()\n");
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -369,6 +380,7 @@ ScsiPortGetUncachedExtension(IN PVOID HwDeviceExtension,
|
||||||
IN PPORT_CONFIGURATION_INFORMATION ConfigInfo,
|
IN PPORT_CONFIGURATION_INFORMATION ConfigInfo,
|
||||||
IN ULONG NumberOfBytes)
|
IN ULONG NumberOfBytes)
|
||||||
{
|
{
|
||||||
|
DPRINT("ScsiPortGetUncachedExtension()\n");
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -377,6 +389,7 @@ PVOID STDCALL
|
||||||
ScsiPortGetVirtualAddress(IN PVOID HwDeviceExtension,
|
ScsiPortGetVirtualAddress(IN PVOID HwDeviceExtension,
|
||||||
IN SCSI_PHYSICAL_ADDRESS PhysicalAddress)
|
IN SCSI_PHYSICAL_ADDRESS PhysicalAddress)
|
||||||
{
|
{
|
||||||
|
DPRINT("ScsiPortGetVirtualAddress()\n");
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -558,6 +571,7 @@ ScsiPortIoMapTransfer(IN PVOID HwDeviceExtension,
|
||||||
IN ULONG LogicalAddress,
|
IN ULONG LogicalAddress,
|
||||||
IN ULONG Length)
|
IN ULONG Length)
|
||||||
{
|
{
|
||||||
|
DPRINT("ScsiPortIoMapTransfer()\n");
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -571,6 +585,7 @@ ScsiPortLogError(IN PVOID HwDeviceExtension,
|
||||||
IN ULONG ErrorCode,
|
IN ULONG ErrorCode,
|
||||||
IN ULONG UniqueId)
|
IN ULONG UniqueId)
|
||||||
{
|
{
|
||||||
|
DPRINT("ScsiPortLogError()\n");
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -633,6 +648,7 @@ ScsiPortSetBusDataByOffset(IN PVOID DeviceExtension,
|
||||||
IN ULONG Offset,
|
IN ULONG Offset,
|
||||||
IN ULONG Length)
|
IN ULONG Length)
|
||||||
{
|
{
|
||||||
|
DPRINT("ScsiPortSetBusDataByOffset()\n");
|
||||||
return(HalSetBusDataByOffset(BusDataType,
|
return(HalSetBusDataByOffset(BusDataType,
|
||||||
SystemIoBusNumber,
|
SystemIoBusNumber,
|
||||||
SlotNumber,
|
SlotNumber,
|
||||||
|
@ -650,6 +666,7 @@ ScsiPortValidateRange(IN PVOID HwDeviceExtension,
|
||||||
IN ULONG NumberOfBytes,
|
IN ULONG NumberOfBytes,
|
||||||
IN BOOLEAN InIoSpace)
|
IN BOOLEAN InIoSpace)
|
||||||
{
|
{
|
||||||
|
DPRINT("ScsiPortValidateRange()\n");
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1076,25 +1093,20 @@ ScsiPortCreatePortDevice(IN PDRIVER_OBJECT DriverObject,
|
||||||
UNICODE_STRING DosDeviceName;
|
UNICODE_STRING DosDeviceName;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
ULONG AccessRangeSize;
|
ULONG AccessRangeSize;
|
||||||
|
|
||||||
#if 0
|
|
||||||
ULONG MappedIrq;
|
ULONG MappedIrq;
|
||||||
KIRQL Dirql;
|
KIRQL Dirql;
|
||||||
KAFFINITY Affinity;
|
KAFFINITY Affinity;
|
||||||
#endif
|
|
||||||
|
|
||||||
DPRINT("ScsiPortCreatePortDevice() called\n");
|
DPRINT("ScsiPortCreatePortDevice() called\n");
|
||||||
|
|
||||||
*RealDeviceExtension = NULL;
|
*RealDeviceExtension = NULL;
|
||||||
|
|
||||||
#if 0
|
|
||||||
MappedIrq = HalGetInterruptVector(PseudoDeviceExtension->PortConfig.AdapterInterfaceType,
|
MappedIrq = HalGetInterruptVector(PseudoDeviceExtension->PortConfig.AdapterInterfaceType,
|
||||||
PseudoDeviceExtension->PortConfig.SystemIoBusNumber,
|
PseudoDeviceExtension->PortConfig.SystemIoBusNumber,
|
||||||
0,
|
|
||||||
PseudoDeviceExtension->PortConfig.BusInterruptLevel,
|
PseudoDeviceExtension->PortConfig.BusInterruptLevel,
|
||||||
|
PseudoDeviceExtension->PortConfig.BusInterruptVector,
|
||||||
&Dirql,
|
&Dirql,
|
||||||
&Affinity);
|
&Affinity);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Create a unicode device name */
|
/* Create a unicode device name */
|
||||||
swprintf(NameBuffer,
|
swprintf(NameBuffer,
|
||||||
|
@ -1153,12 +1165,12 @@ ScsiPortCreatePortDevice(IN PDRIVER_OBJECT DriverObject,
|
||||||
ScsiPortIsr,
|
ScsiPortIsr,
|
||||||
PortDeviceExtension,
|
PortDeviceExtension,
|
||||||
&PortDeviceExtension->SpinLock,
|
&PortDeviceExtension->SpinLock,
|
||||||
PortDeviceExtension->PortConfig.BusInterruptVector, // MappedIrq,
|
MappedIrq,
|
||||||
PortDeviceExtension->PortConfig.BusInterruptLevel, // Dirql,
|
Dirql,
|
||||||
15, //Dirql,
|
Dirql,
|
||||||
PortDeviceExtension->PortConfig.InterruptMode,
|
PortDeviceExtension->PortConfig.InterruptMode,
|
||||||
FALSE,
|
TRUE,
|
||||||
0xFFFF, //Affinity,
|
Affinity,
|
||||||
FALSE);
|
FALSE);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue