projects
/
oweals
/
u-boot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* Patch by Thomas Frieden, 13 Nov 2002:
[oweals/u-boot.git]
/
board
/
MAI
/
AmigaOneG3SE
/
memio.S
1
#include "macros.h"
2
3
4
5
.globl pci_read_cfg_byte
6
7
pci_read_cfg_byte:
8
config_addr
9
config_data 3
10
eieio
11
sync
12
lbz r3, 0(r9)
13
blr
14
15
16
17
.globl pci_write_cfg_byte
18
19
pci_write_cfg_byte:
20
config_addr
21
config_data 3
22
stb r6, 0(r9)
23
eieio
24
sync
25
blr
26
27
28
29
.globl pci_read_cfg_word
30
31
pci_read_cfg_word:
32
config_addr
33
config_data 2
34
lhbrx r3, 0, r9
35
eieio
36
sync
37
blr
38
39
40
41
.globl pci_write_cfg_word
42
43
pci_write_cfg_word:
44
config_addr
45
config_data 2
46
sthbrx r6, 0, r9
47
eieio
48
sync
49
blr
50
51
52
53
.globl pci_read_cfg_long
54
55
pci_read_cfg_long:
56
config_addr
57
config_data 0
58
lwbrx r3, 0, r9
59
eieio
60
sync
61
blr
62
63
64
65
.globl pci_write_cfg_long
66
67
pci_write_cfg_long:
68
config_addr
69
config_data 0
70
stwbrx r6, 0, r9
71
eieio
72
sync
73
blr
74