View Single Post
Old 17 March 2019, 22:21   #1
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,175
Device type in ATAPI tape IDENTIFY DEVICE data

Just wondering... looking at ide_identity_buffer() in ide.cpp, the first word of ATAPI IDENTIFY DEVICE data is set to 0x85C0. Bits [4:0] of the MSB give the device type, here %00101 = 5. That's the device type for CD-ROM.

That value seems to be also used in the ATAPI tape drive case. But the correct device type there is 1 (sequential access), so the first word for ATAPI tape drive should be 0x81C0.
mark_k is offline  
 
Page generated in 0.05326 seconds with 11 queries