diff options
author | Richard Henderson <rth@twiddle.net> | 2011-05-06 18:04:44 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2011-05-06 18:04:44 -0700 |
commit | 90bb73f3fbcb32569f271bf1130fab45b2b4fb66 (patch) | |
tree | 34ea8971642427f3136d634f97d79795949c49a1 /sys-clipper.S | |
parent | 45a30cd864c313b353f47c8186b2b932069af4a1 (diff) | |
download | qemu-palcode-90bb73f3fbcb32569f271bf1130fab45b2b4fb66.zip qemu-palcode-90bb73f3fbcb32569f271bf1130fab45b2b4fb66.tar.gz qemu-palcode-90bb73f3fbcb32569f271bf1130fab45b2b4fb66.tar.bz2 |
Inline i/o routines.
Diffstat (limited to 'sys-clipper.S')
-rw-r--r-- | sys-clipper.S | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/sys-clipper.S b/sys-clipper.S index 88ca020..81a0939 100644 --- a/sys-clipper.S +++ b/sys-clipper.S @@ -113,34 +113,20 @@ Cserve_Dis: ENDFN Cserve_Dis /* - * inb - * - * Read a byte from the PCI I/O bus. + * PCI parameters */ - .globl inb - .ent inb -inb: - .frame $sp, 0, $26, 0 - .prologue 0 - LOAD_KSEG_PCI_IO v0 - addq v0, a0, v0 - ldbu v0, 0(v0) - ret - .end inb -/* - * outb - * - * Write a byte to the PCI I/O bus. - */ - .globl outb - .ent outb -outb: - .frame $sp, 0, $26, 0 - .prologue 0 - LOAD_KSEG_PCI_IO p0 - addq p0, a1, p0 - stb a0, 0(p0) - ret - .end outb + .section .sdata + + .align 3 + .globl pci_io_base + .type pci_io_base, @object + .size pci_io_base, 8 +pci_io_base: + .quad PIO_KSEG_ADDR + TYPHOON_PCHIP0_PCI_IO + .globl pci_conf_base + .type pci_conf_base, @object + .size pci_conf_base, 8 +pci_conf_base: + .quad PIO_KSEG_ADDR + TYPHOON_PCHIP0_PCI_CONF |