summaryrefslogtreecommitdiff
path: root/util/vgabios/pci-userspace.c
diff options
context:
space:
mode:
authorLi-Ta Lo <ollie@lanl.gov>2005-01-11 03:18:39 +0000
committerLi-Ta Lo <ollie@lanl.gov>2005-01-11 03:18:39 +0000
commit8b0356c2c9136493f79d9faddbda1bfac7ca687e (patch)
tree87b1de0d55fec22946177cd4d7d73987fca346d5 /util/vgabios/pci-userspace.c
parent3678ad8e38abee296221cd33e2cbc1e5181f715f (diff)
downloadcoreboot-8b0356c2c9136493f79d9faddbda1bfac7ca687e.tar.xz
use Paulo's reduced version
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1853 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/vgabios/pci-userspace.c')
-rw-r--r--util/vgabios/pci-userspace.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/vgabios/pci-userspace.c b/util/vgabios/pci-userspace.c
index aea3f6983d..f09c167cec 100644
--- a/util/vgabios/pci-userspace.c
+++ b/util/vgabios/pci-userspace.c
@@ -44,7 +44,7 @@ PCITAG findPci(unsigned short bx)
tag->slot = slot;
tag->func = func;
- if (pci_get_dev(pacc, bus, slot, func))
+ if (pci_get_dev(pacc, 0, bus, slot, func))
return tag;
return NULL;
@@ -58,7 +58,7 @@ u32 pciSlotBX(PCITAG tag)
u8 pciReadByte(PCITAG tag, u32 idx)
{
struct pci_dev *d;
- if ((d = pci_get_dev(pacc, tag->bus, tag->slot, tag->func)))
+ if ((d = pci_get_dev(pacc, 0, tag->bus, tag->slot, tag->func)))
return pci_read_byte(d, idx);
#ifdef DEBUG_PCI
printf("PCI: device not found while read byte (%x:%x.%x)\n",
@@ -70,7 +70,7 @@ u8 pciReadByte(PCITAG tag, u32 idx)
u16 pciReadWord(PCITAG tag, u32 idx)
{
struct pci_dev *d;
- if ((d = pci_get_dev(pacc, tag->bus, tag->slot, tag->func)))
+ if ((d = pci_get_dev(pacc, 0, tag->bus, tag->slot, tag->func)))
return pci_read_word(d, idx);
#ifdef DEBUG_PCI
printf("PCI: device not found while read word (%x:%x.%x)\n",
@@ -82,7 +82,7 @@ u16 pciReadWord(PCITAG tag, u32 idx)
u32 pciReadLong(PCITAG tag, u32 idx)
{
struct pci_dev *d;
- if ((d = pci_get_dev(pacc, tag->bus, tag->slot, tag->func)))
+ if ((d = pci_get_dev(pacc, 0, tag->bus, tag->slot, tag->func)))
return pci_read_long(d, idx);
#ifdef DEBUG_PCI
printf("PCI: device not found while read long (%x:%x.%x)\n",
@@ -95,7 +95,7 @@ u32 pciReadLong(PCITAG tag, u32 idx)
void pciWriteLong(PCITAG tag, u32 idx, u32 data)
{
struct pci_dev *d;
- if ((d = pci_get_dev(pacc, tag->bus, tag->slot, tag->func)))
+ if ((d = pci_get_dev(pacc, 0, tag->bus, tag->slot, tag->func)))
pci_write_long(d, idx, data);
#ifdef DEBUG_PCI
else
@@ -107,7 +107,7 @@ void pciWriteLong(PCITAG tag, u32 idx, u32 data)
void pciWriteWord(PCITAG tag, u32 idx, u16 data)
{
struct pci_dev *d;
- if ((d = pci_get_dev(pacc, tag->bus, tag->slot, tag->func)))
+ if ((d = pci_get_dev(pacc, 0, tag->bus, tag->slot, tag->func)))
pci_write_word(d, idx, data);
#ifdef DEBUG_PCI
else
@@ -120,7 +120,7 @@ void pciWriteWord(PCITAG tag, u32 idx, u16 data)
void pciWriteByte(PCITAG tag, u32 idx, u8 data)
{
struct pci_dev *d;
- if ((d = pci_get_dev(pacc, tag->bus, tag->slot, tag->func)))
+ if ((d = pci_get_dev(pacc, 0, tag->bus, tag->slot, tag->func)))
pci_write_long(d, idx, data);
#ifdef DEBUG_PCI
else