Author: hbelusca
Date: Fri Feb 5 21:15:25 2016
New Revision: 70694
URL:
http://svn.reactos.org/svn/reactos?rev=70694&view=rev
Log:
Order of definitions is still important!
Modified:
trunk/reactos/boot/freeldr/freeldr/disk/scsiport.c
Modified: trunk/reactos/boot/freeldr/freeldr/disk/scsiport.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/disk/…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/disk/scsiport.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/disk/scsiport.c [iso-8859-1] Fri Feb 5 21:15:25
2016
@@ -65,6 +65,34 @@
VOID NTAPI HalpInitBusHandler(VOID);
#endif
+typedef struct
+{
+ PVOID NonCachedExtension;
+
+ ULONG BusNum;
+ ULONG MaxTargedIds;
+
+ ULONG InterruptFlags;
+
+ /* SRB extension stuff */
+ ULONG SrbExtensionSize;
+ PVOID SrbExtensionBuffer;
+
+ IO_SCSI_CAPABILITIES PortCapabilities;
+
+ PHW_INITIALIZE HwInitialize;
+ PHW_STARTIO HwStartIo;
+ PHW_INTERRUPT HwInterrupt;
+ PHW_RESET_BUS HwResetBus;
+
+ /* DMA related stuff */
+ PADAPTER_OBJECT AdapterObject;
+
+ ULONG CommonBufferLength;
+
+ PVOID MiniPortDeviceExtension;
+} SCSI_PORT_DEVICE_EXTENSION, *PSCSI_PORT_DEVICE_EXTENSION;
+
typedef struct tagDISKCONTEXT
{
/* Device ID */
@@ -79,34 +107,6 @@
ULONGLONG SectorCount;
ULONGLONG SectorNumber;
} DISKCONTEXT;
-
-typedef struct
-{
- PVOID NonCachedExtension;
-
- ULONG BusNum;
- ULONG MaxTargedIds;
-
- ULONG InterruptFlags;
-
- /* SRB extension stuff */
- ULONG SrbExtensionSize;
- PVOID SrbExtensionBuffer;
-
- IO_SCSI_CAPABILITIES PortCapabilities;
-
- PHW_INITIALIZE HwInitialize;
- PHW_STARTIO HwStartIo;
- PHW_INTERRUPT HwInterrupt;
- PHW_RESET_BUS HwResetBus;
-
- /* DMA related stuff */
- PADAPTER_OBJECT AdapterObject;
-
- ULONG CommonBufferLength;
-
- PVOID MiniPortDeviceExtension;
-} SCSI_PORT_DEVICE_EXTENSION, *PSCSI_PORT_DEVICE_EXTENSION;
PSCSI_PORT_DEVICE_EXTENSION ScsiDeviceExtensions[SCSI_MAXIMUM_BUSES];