Encodes IDE, SATA, SCSI and USB devices properly