summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/include
diff options
context:
space:
mode:
authorMichael Brown2007-01-09 03:58:07 +0100
committerMichael Brown2007-01-09 03:58:07 +0100
commit6b09dd824420f4507efe4ddf956f63825a1b4f35 (patch)
tree7a170a71cea0032be4af6f00b6e9b8deecba7832 /src/arch/i386/include
parentAvoid erasing non-existent signatures in undi_unload() (diff)
downloadipxe-6b09dd824420f4507efe4ddf956f63825a1b4f35.tar.gz
ipxe-6b09dd824420f4507efe4ddf956f63825a1b4f35.tar.xz
ipxe-6b09dd824420f4507efe4ddf956f63825a1b4f35.zip
undipci_probe() has to calculate busdevfn anyway, so we may as well pass
it directly to undi_load_pci().
Diffstat (limited to 'src/arch/i386/include')
-rw-r--r--src/arch/i386/include/undiload.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/arch/i386/include/undiload.h b/src/arch/i386/include/undiload.h
index cfb9066c2..e42563b49 100644
--- a/src/arch/i386/include/undiload.h
+++ b/src/arch/i386/include/undiload.h
@@ -10,8 +10,24 @@
struct undi_device;
struct undi_rom;
-extern int undi_load_pci ( struct undi_device *undi, struct undi_rom *undirom,
- unsigned int bus, unsigned int devfn );
+extern int undi_load ( struct undi_device *undi, struct undi_rom *undirom );
extern int undi_unload ( struct undi_device *undi );
+/**
+ * Call UNDI loader to create a pixie
+ *
+ * @v undi UNDI device
+ * @v undirom UNDI ROM
+ * @v pci_busdevfn PCI bus:dev.fn
+ * @ret rc Return status code
+ */
+static inline int undi_load_pci ( struct undi_device *undi,
+ struct undi_rom *undirom,
+ unsigned int pci_busdevfn ) {
+ undi->pci_busdevfn = pci_busdevfn;
+ undi->isapnp_csn = 0xffff;
+ undi->isapnp_read_port = 0xffff;
+ return undi_load ( undi, undirom );
+}
+
#endif /* _UNDILOAD_H */