summaryrefslogtreecommitdiffstats
path: root/board/MAI/AmigaOneG3SE/memio.S
blob: c4a09aab101f89864166d8a475e7722c96b3f898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#include	"macros.h"

	

	.globl pci_read_cfg_byte
	
pci_read_cfg_byte:
	config_addr
	config_data	3
	eieio
	sync
	lbz	r3, 0(r9)
	blr

	

	.globl pci_write_cfg_byte
	
pci_write_cfg_byte:	
	config_addr
	config_data	3
	stb	r6, 0(r9)
	eieio
	sync
	blr



	.globl pci_read_cfg_word
	
pci_read_cfg_word:
	config_addr
	config_data	2
	lhbrx	r3, 0, r9
	eieio
	sync
	blr


	
	.globl pci_write_cfg_word
	
pci_write_cfg_word:
	config_addr
	config_data	2
	sthbrx	r6, 0, r9
	eieio
	sync
	blr

	

	.globl pci_read_cfg_long
	
pci_read_cfg_long:
	config_addr
	config_data	0
	lwbrx	r3, 0, r9
	eieio
	sync
	blr



	.globl pci_write_cfg_long
	
pci_write_cfg_long:
	config_addr
	config_data	0
	stwbrx	r6, 0, r9
	eieio
	sync
	blr

OpenPOWER on IntegriCloud