summaryrefslogtreecommitdiffstats
path: root/utils/nwztools/scsitools/para_noise.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-11-03 04:21:54 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-11-03 04:25:25 +0100
commit6d04ed343c76b38b5cd632ff0e0ba472ecade583 (patch)
tree11c006c309bb70f7e21ba254a6796d662333d1b9 /utils/nwztools/scsitools/para_noise.h
parent3e1c4926806ca685ab591cb6948fa3aa5014591c (diff)
downloadrockbox-6d04ed343c76b38b5cd632ff0e0ba472ecade583.tar.gz
rockbox-6d04ed343c76b38b5cd632ff0e0ba472ecade583.zip
scsi_tools: add support for nvp reading
There is a vendor specific command to read the NVP of the device, including the KAS. The trick is that the data is randomly scrambled using a so-called para_noise array of random values. There seems to be a problem when retrieving large entries (>1000 bytes typically) which causes sg_pt do behave strangely. Change-Id: Iefa6140df78ab9c7dcf7ac34cb1170979123ecd7
Diffstat (limited to 'utils/nwztools/scsitools/para_noise.h')
-rw-r--r--utils/nwztools/scsitools/para_noise.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/utils/nwztools/scsitools/para_noise.h b/utils/nwztools/scsitools/para_noise.h
new file mode 100644
index 0000000000..c0f4531ef5
--- /dev/null
+++ b/utils/nwztools/scsitools/para_noise.h
@@ -0,0 +1,28 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2012 Amaury Pouly
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+#ifndef __para_noise_h__
+#define __para_noise_h__
+
+#include <stdint.h>
+
+uint8_t para_noise[1024];
+
+#endif /* __para_noise_h__ */