Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22962
b: refs/heads/master
c: 584fc6d
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Mar 22, 2006
1 parent 90878cd commit eab2837
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 00611c5cfc8dea0914c65134f62948a484780a30
refs/heads/master: 584fc6d111c34a9a2512f6c7652dff29232bf70d
10 changes: 10 additions & 0 deletions trunk/arch/powerpc/lib/e2a.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,14 @@ unsigned char e2a(unsigned char x)
}
EXPORT_SYMBOL(e2a);

unsigned char* strne2a(unsigned char *dest, const unsigned char *src, size_t n)
{
int i;

n = strnlen(src, n);

for (i = 0; i < n; i++)
dest[i] = e2a(src[i]);

return dest;
}
2 changes: 2 additions & 0 deletions trunk/include/asm-powerpc/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);
Expand Down

0 comments on commit eab2837

Please sign in to comment.