mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 22:33:18 +00:00
c7de829c79
Add code for AmigaOne board (preliminary merge to U-Boot, still WIP) * Patch by Jon Diekema, 12 Nov 2002: - Adding URL for IEEE OUI lookup - Making the autoboot #defines dependent on CONFIG_AUTOBOOT_KEYED being defined. - In the CONFIG_EXTRA_ENV_SETTINGS #define, the root-on-initrd and root-on-nfs macros are designed to switch how the default boot method gets defined.
74 lines
708 B
ArmAsm
74 lines
708 B
ArmAsm
#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
|
|
|