IDEDevice dev = (IDEDevice) dm.getDevice(name);
IDEDeviceAPI<?> api = dev.getAPI(IDEDeviceAPI.class);
IDEDriveDescriptor descr = dev.getDescriptor();
System.out.println("LBA support : " + descr.supportsLBA());
System.out.println("DMA support : " + descr.supportsDMA());
System.out.println("48-bit support: " + descr.supports48bitAddressing());
System.out.println("Length : " + api.getLength());
final ByteBuffer data = ByteBuffer.allocate(1024);