[contrib] Allow Network Protocol header to display in rom-o-matic
[gpxe.git] / src / arch / i386 / include / undiload.h
blob426830e8d1d8f254ad4d05310ee7b11e467e6633
1 #ifndef _UNDILOAD_H
2 #define _UNDILOAD_H
4 /** @file
6 * UNDI load/unload
8 */
10 FILE_LICENCE ( GPL2_OR_LATER );
12 struct undi_device;
13 struct undi_rom;
15 extern int undi_load ( struct undi_device *undi, struct undi_rom *undirom );
16 extern int undi_unload ( struct undi_device *undi );
18 /**
19 * Call UNDI loader to create a pixie
21 * @v undi UNDI device
22 * @v undirom UNDI ROM
23 * @v pci_busdevfn PCI bus:dev.fn
24 * @ret rc Return status code
26 static inline int undi_load_pci ( struct undi_device *undi,
27 struct undi_rom *undirom,
28 unsigned int pci_busdevfn ) {
29 undi->pci_busdevfn = pci_busdevfn;
30 undi->isapnp_csn = UNDI_NO_ISAPNP_CSN;
31 undi->isapnp_read_port = UNDI_NO_ISAPNP_READ_PORT;
32 return undi_load ( undi, undirom );
35 #endif /* _UNDILOAD_H */