aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorMichael Schmitz <[email protected]>2023-08-27 04:13:48 +0000
committerDamien Le Moal <[email protected]>2023-08-28 10:14:41 +0000
commit8847d42d7a025200bc6b7df37c007a7dd3071d11 (patch)
tree9e31d1a83d51f346e4ab97635c36fa6f3eee047a /tools/perf/scripts/python/libxed.py
parentata: pata_falcon: fix IO base selection for Q40 (diff)
downloadkernel-8847d42d7a025200bc6b7df37c007a7dd3071d11.tar.gz
kernel-8847d42d7a025200bc6b7df37c007a7dd3071d11.zip
ata: pata_falcon: add data_swab option to byte-swap disk data
Some users of pata_falcon on Q40 have IDE disks in default IDE little endian byte order, whereas legacy disks use host-native big-endian byte order as on the Atari Falcon. Add module parameter 'data_swab' to allow connecting drives with non-native data byte order. Drives selected by the data_swap bit mask will have their user data byte-swapped to host byte order, i.e. 'pata_falcon.data_swab=2' will byte-swap all user data on drive B, leaving data on drive A in native byte order. On Q40, drives on a second IDE interface may be added to the bit mask as bits 2 and 3. Default setting is no byte swapping, i.e. compatibility with the native Falcon or Q40 operating system disk format. Cc: William R Sowerbutts <[email protected]> Cc: Finn Thain <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Tested-by: William R Sowerbutts <[email protected]> Signed-off-by: Michael Schmitz <[email protected]> Reviewed-by: Sergey Shtylyov <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions