2 * Implementation of outs{bwl} for BlackFin processors using zero overhead loops.
4 * Copyright 2005-2009 Analog Devices Inc.
6 * Bas Vermeulen <bas@buyways.nl>
8 * Licensed under the GPL-2.
11 #include <linux/linkage.h>
17 P0 = R0; /* P0 = port */
18 P1 = R1; /* P1 = address */
19 P2 = R2; /* P2 = count */
21 LSETUP( .Llong_loop_s, .Llong_loop_e) LC0 = P2;
22 .Llong_loop_s: R0 = [P1++];
23 .Llong_loop_e: [P0] = R0;
29 P0 = R0; /* P0 = port */
30 P1 = R1; /* P1 = address */
31 P2 = R2; /* P2 = count */
33 LSETUP( .Lword_loop_s, .Lword_loop_e) LC0 = P2;
34 .Lword_loop_s: R0 = W[P1++];
35 .Lword_loop_e: W[P0] = R0;
41 P0 = R0; /* P0 = port */
42 P1 = R1; /* P1 = address */
43 P2 = R2; /* P2 = count */
45 LSETUP( .Lbyte_loop_s, .Lbyte_loop_e) LC0 = P2;
46 .Lbyte_loop_s: R0 = B[P1++];
47 .Lbyte_loop_e: B[P0] = R0;
51 .section .text._outsw_8
53 P0 = R0; /* P0 = port */
54 P1 = R1; /* P1 = address */
55 P2 = R2; /* P2 = count */
57 LSETUP( .Lword8_loop_s, .Lword8_loop_e) LC0 = P2;
58 .Lword8_loop_s: R1 = B[P1++];
62 .Lword8_loop_e: W[P0] = R0;