Пример #1
0
 def cmd_retry(self, onoff):
     cmd = 0xEF
     if(onoff == "off"):
         feature = 0x33
     else:
         feature = 0x99
     laxcmd.ata_direct(feature, 0, 0, cmd, 0, laxcmd.LAX_CMD_TYPE_NO_DATA)
     self.log("retry: cmd " +  hex(cmd) + " executed with feature " + hex(feature))
Пример #2
0
 def cmd_retry(self, onoff):
     cmd = 0xEF
     if (onoff == "off"):
         feature = 0x33
     else:
         feature = 0x99
     laxcmd.ata_direct(feature, 0, 0, cmd, 0, laxcmd.LAX_CMD_TYPE_NO_DATA)
     self.log("retry: cmd " + hex(cmd) + " executed with feature " +
              hex(feature))
Пример #3
0
 def cmd_ata_cmd(self, cmd):
     laxcmd.ata_direct(self.cmd_ata_feature, 0, 0, cmd, 0,
                       LAX_CMD_TYPE_NO_DATA)
     self.log("ata cmd " + hex(cmd) + " with feature " +
              hex(self.cmd_ata_feature))
     self.log("Not implemented yet")
Пример #4
0
 def cmd_ata_cmd(self, cmd):
     laxcmd.ata_direct(self.cmd_ata_feature, 0 , 0, cmd, 0, LAX_CMD_TYPE_NO_DATA)
     self.log("ata cmd " + hex(cmd) + " with feature " + hex(self.cmd_ata_feature))
     self.log("Not implemented yet")