blob: c4a09aab101f89864166d8a475e7722c96b3f898 [file] [log] [blame]
wdenkc7de8292002-11-19 11:04:11 +00001#include "macros.h"
2
3
4
5 .globl pci_read_cfg_byte
6
7pci_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
19pci_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
31pci_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
43pci_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
55pci_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
67pci_write_cfg_long:
68 config_addr
69 config_data 0
70 stwbrx r6, 0, r9
71 eieio
72 sync
73 blr
74