Added software reset to the block device

This commit is contained in:
Morten Delenk 2016-03-15 21:48:57 +01:00
parent 0dc8692443
commit 6306a83bea

View file

@ -43,7 +43,12 @@ namespace MTGosHAL {
for(int i=0;i<8;i++) {
if(!(existent&(1<<i)))
continue;
outb(commports[i>>1],0x40);
inb(ataports[i>>1]+CMD);
inb(ataports[i>>1]+CMD);
inb(ataports[i>>1]+CMD);
inb(ataports[i>>1]+CMD);
outb(commports[i>>1],0x00);
}
}
auto BlockDevice::getDriveCnt() -> uint8_t {return numDevices;}