mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Initialize the maximum length of the device description to allocate more than map register.
svn path=/trunk/; revision=14505
This commit is contained in:
parent
1a0cac4ee8
commit
80eabf0040
1 changed files with 1 additions and 0 deletions
|
@ -861,6 +861,7 @@ static BOOLEAN NTAPI AddControllers(PDRIVER_OBJECT DriverObject)
|
||||||
DeviceDescription.DmaChannel = gControllerInfo[i].Dma;
|
DeviceDescription.DmaChannel = gControllerInfo[i].Dma;
|
||||||
DeviceDescription.InterfaceType = gControllerInfo[i].InterfaceType;
|
DeviceDescription.InterfaceType = gControllerInfo[i].InterfaceType;
|
||||||
DeviceDescription.BusNumber = gControllerInfo[i].BusNumber;
|
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) */
|
/* 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;
|
DeviceDescription.DmaWidth = gControllerInfo[i].Dma > 3 ? Width16Bits: Width8Bits;
|
||||||
|
|
Loading…
Reference in a new issue