at_wini: bump hardcoded ATAPI limit to DVD size
at_wini was previously hardcoded to present ATAPI devices as having a size of 800 MiB, which was enough for CDs but not for DVDs. This patch increases the device size to 8500 MiB, which should be large enough to cover all DVDs. Change-Id: I7d3192e4ecd0708a655663c1007ff517ed969580
This commit is contained in:
parent
d5e4fc0151
commit
502e7ff953
@ -1729,8 +1729,9 @@ static int atapi_open(void)
|
|||||||
/* Should load and lock the device and obtain its size. For now just set the
|
/* Should load and lock the device and obtain its size. For now just set the
|
||||||
* size of the device to something big. What is really needed is a generic
|
* size of the device to something big. What is really needed is a generic
|
||||||
* SCSI layer that does all this stuff for ATAPI and SCSI devices (kjb). (XXX)
|
* SCSI layer that does all this stuff for ATAPI and SCSI devices (kjb). (XXX)
|
||||||
|
* .."something big" is now the maximum size of the largest type of DVD.
|
||||||
*/
|
*/
|
||||||
w_wn->part[0].dv_size = (u64_t)(800L*1024) * 1024;
|
w_wn->part[0].dv_size = (u64_t)(8500L*1024) * 1024;
|
||||||
return(OK);
|
return(OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user