summaryrefslogtreecommitdiffstats
path: root/pc-bios/s390-ccw/main.c
diff options
context:
space:
mode:
authorEugene (jno) Dvurechenski2016-04-18 13:45:10 +0200
committerCornelia Huck2017-05-02 15:08:54 +0200
commitcfe2124a7f7285bfe5bf91e068f88437d1f8a591 (patch)
tree15e8299f9febfd31efe4f1c8d7d64122ffd95ccf /pc-bios/s390-ccw/main.c
parentutil/qemu-config: Add loadparm to qemu machine_opts (diff)
downloadqemu-cfe2124a7f7285bfe5bf91e068f88437d1f8a591.tar.gz
qemu-cfe2124a7f7285bfe5bf91e068f88437d1f8a591.tar.xz
qemu-cfe2124a7f7285bfe5bf91e068f88437d1f8a591.zip
pc-bios/s390-ccw: Make ebcdic/ascii conversion public
Make the ebcdic_to_ascii function public to the rest of the "bios" code, as the volume label is no more the single thing to be converted. Signed-off-by: Eugene (jno) Dvurechenski <jno@linux.vnet.ibm.com> Signed-off-by: Farhan Ali <alifm@linux.vnet.ibm.com> Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'pc-bios/s390-ccw/main.c')
-rw-r--r--pc-bios/s390-ccw/main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c
index 0946766d86..393d732353 100644
--- a/pc-bios/s390-ccw/main.c
+++ b/pc-bios/s390-ccw/main.c
@@ -15,6 +15,17 @@ char stack[PAGE_SIZE * 8] __attribute__((__aligned__(PAGE_SIZE)));
static SubChannelId blk_schid = { .one = 1 };
IplParameterBlock iplb __attribute__((__aligned__(PAGE_SIZE)));
+const unsigned char ebc2asc[256] =
+ /* 0123456789abcdef0123456789abcdef */
+ "................................" /* 1F */
+ "................................" /* 3F */
+ " ...........<(+|&.........!$*);." /* 5F first.chr.here.is.real.space */
+ "-/.........,%_>?.........`:#@'=\""/* 7F */
+ ".abcdefghi.......jklmnopqr......" /* 9F */
+ "..stuvwxyz......................" /* BF */
+ ".ABCDEFGHI.......JKLMNOPQR......" /* DF */
+ "..STUVWXYZ......0123456789......";/* FF */
+
/*
* Priniciples of Operations (SA22-7832-09) chapter 17 requires that
* a subsystem-identification is at 184-187 and bytes 188-191 are zero