summaryrefslogtreecommitdiff
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 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2012 Amaury Pouly
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#ifndef __para_noise_h__
22#define __para_noise_h__
23
24#include <stdint.h>
25
26uint8_t para_noise[1024];
27
28#endif /* __para_noise_h__ */