[ros-diffs] [hbirr] 14505: Initialize the maximum length of the
device description to allocate more than map register.
hbirr at svn.reactos.com
hbirr at svn.reactos.com
Tue Apr 5 19:07:58 CEST 2005
Initialize the maximum length of the device description to allocate more
than map register.
Modified: trunk/reactos/drivers/storage/floppy/floppy.c
_____
Modified: trunk/reactos/drivers/storage/floppy/floppy.c
--- trunk/reactos/drivers/storage/floppy/floppy.c 2005-04-05
15:53:09 UTC (rev 14504)
+++ trunk/reactos/drivers/storage/floppy/floppy.c 2005-04-05
17:07:56 UTC (rev 14505)
@@ -861,6 +861,7 @@
DeviceDescription.DmaChannel = gControllerInfo[i].Dma;
DeviceDescription.InterfaceType =
gControllerInfo[i].InterfaceType;
DeviceDescription.BusNumber = gControllerInfo[i].BusNumber;
+ DeviceDescription.MaximumLength = 2*18*512; /* based on a 1.44MB
floppy */
/* DMA 0,1,2,3 are 8-bit; 4,5,6,7 are 16-bit (4 is chain i think)
*/
DeviceDescription.DmaWidth = gControllerInfo[i].Dma > 3 ?
Width16Bits: Width8Bits;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050405/ab49200f/attachment.html
More information about the Ros-diffs
mailing list