diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2008-05-17 16:38:52 +0800 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-05-17 16:38:52 +0800 |
commit | 59069676383c6446f50555e04aed7f51d5de695e (patch) | |
tree | ea0a34fda1ae463dad6f11f92773f515e4c1a34f /arch/blackfin/lib/outs.S | |
parent | 86ad79321cbacdc4deebcde81849d19e26dd18e2 (diff) | |
download | blackbird-op-linux-59069676383c6446f50555e04aed7f51d5de695e.tar.gz blackbird-op-linux-59069676383c6446f50555e04aed7f51d5de695e.zip |
Blackfin arch: IO Port functions to read/write unalligned memory
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/lib/outs.S')
-rw-r--r-- | arch/blackfin/lib/outs.S | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/blackfin/lib/outs.S b/arch/blackfin/lib/outs.S index 4c3da8ae094e..3daf96035bf6 100644 --- a/arch/blackfin/lib/outs.S +++ b/arch/blackfin/lib/outs.S @@ -7,7 +7,7 @@ * Description: Implementation of outs{bwl} for BlackFin processors using zero overhead loops. * * Modified: Copyright (C) 2005 Bas Vermeulen, BuyWays BV <bas@buyways.nl> - * Copyright 2004-2006 Analog Devices Inc. + * Copyright 2004-2008 Analog Devices Inc. * * Bugs: Enter bugs at http://blackfin.uclinux.org/ * @@ -63,3 +63,17 @@ ENTRY(_outsb) .Lbyte_loop_e: B[P0] = R0; RTS; ENDPROC(_outsb) + +ENTRY(_outsw_8) + P0 = R0; /* P0 = port */ + P1 = R1; /* P1 = address */ + P2 = R2; /* P2 = count */ + + LSETUP( .Lword8_loop_s, .Lword8_loop_e) LC0 = P2; +.Lword8_loop_s: R1 = B[P1++]; + R0 = B[P1++]; + R0 = R0 << 8; + R0 = R0 + R1; +.Lword8_loop_e: W[P0] = R0; + RTS; +ENDPROC(_outsw) |