summaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2006-03-21 20:46:08 +1100
committerPaul Mackerras <paulus@samba.org>2006-03-22 15:04:25 +1100
commit584fc6d111c34a9a2512f6c7652dff29232bf70d (patch)
tree80d67b3c6902eff8309106be6291dd84a14d8ab7 /include/asm-powerpc
parent00611c5cfc8dea0914c65134f62948a484780a30 (diff)
downloadblackbird-op-linux-584fc6d111c34a9a2512f6c7652dff29232bf70d.tar.gz
blackbird-op-linux-584fc6d111c34a9a2512f6c7652dff29232bf70d.zip
[PATCH] powerpc: Add strne2a() to convert a string from EBCDIC to ASCII
Add strne2a() which converts a string from EBCDIC to ASCII. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/system.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-powerpc/system.h b/include/asm-powerpc/system.h
index 41b7a5b3d701..65f5a7b2646b 100644
--- a/include/asm-powerpc/system.h
+++ b/include/asm-powerpc/system.h
@@ -171,6 +171,8 @@ extern u32 booke_wdt_period;
/* EBCDIC -> ASCII conversion for [0-9A-Z] on iSeries */
extern unsigned char e2a(unsigned char);
+extern unsigned char* strne2a(unsigned char *dest,
+ const unsigned char *src, size_t n);
struct device_node;
extern void note_scsi_host(struct device_node *, void *);
OpenPOWER on IntegriCloud