TEXT_BASE is in board/sandpoint/config.mk so say so...
[u-boot.git] / board / MAI / AmigaOneG3SE / memio.S
1 #include        "macros.h"
2
3
4         .globl pci_read_cfg_byte
5
6 pci_read_cfg_byte:
7         config_addr
8         config_data     3
9         eieio
10         sync
11         lbz     r3, 0(r9)
12         blr
13
14
15         .globl pci_write_cfg_byte
16
17 pci_write_cfg_byte:
18         config_addr
19         config_data     3
20         stb     r6, 0(r9)
21         eieio
22         sync
23         blr
24
25
26         .globl pci_read_cfg_word
27
28 pci_read_cfg_word:
29         config_addr
30         config_data     2
31         lhbrx   r3, 0, r9
32         eieio
33         sync
34         blr
35
36
37         .globl pci_write_cfg_word
38
39 pci_write_cfg_word:
40         config_addr
41         config_data     2
42         sthbrx  r6, 0, r9
43         eieio
44         sync
45         blr
46
47
48         .globl pci_read_cfg_long
49
50 pci_read_cfg_long:
51         config_addr
52         config_data     0
53         lwbrx   r3, 0, r9
54         eieio
55         sync
56         blr
57
58
59         .globl pci_write_cfg_long
60
61 pci_write_cfg_long:
62         config_addr
63         config_data     0
64         stwbrx  r6, 0, r9
65         eieio
66         sync
67         blr