Linux 5.7.6
[linux/fpc-iii.git] / arch / arm / mach-rpc / floppydma.S
blob6698b83050dc2c4f1a1b3b34ec67287f97e2c4c1
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  *  linux/arch/arm/lib/floppydma.S
4  *
5  *  Copyright (C) 1995, 1996 Russell King
6  */
7 #include <linux/linkage.h>
8 #include <asm/assembler.h>
9                 .text
11                 .global floppy_fiqin_end
12 ENTRY(floppy_fiqin_start)
13                 subs    r9, r9, #1
14                 ldrbgt  r12, [r11, #-4]
15                 ldrble  r12, [r11], #0
16                 strb    r12, [r10], #1
17                 subs    pc, lr, #4
18 floppy_fiqin_end:
20                 .global floppy_fiqout_end
21 ENTRY(floppy_fiqout_start)
22                 subs    r9, r9, #1
23                 ldrbge  r12, [r10], #1
24                 movlt   r12, #0
25                 strble  r12, [r11], #0
26                 subsle  pc, lr, #4
27                 strb    r12, [r11, #-4]
28                 subs    pc, lr, #4
29 floppy_fiqout_end: