source: bootcd/isolinux/syslinux-6.03/gpxe/src/arch/i386/include/undiload.h

Last change on this file was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 767 bytes
Line 
1#ifndef _UNDILOAD_H
2#define _UNDILOAD_H
3
4/** @file
5 *
6 * UNDI load/unload
7 *
8 */
9
10FILE_LICENCE ( GPL2_OR_LATER );
11
12struct undi_device;
13struct undi_rom;
14
15extern int undi_load ( struct undi_device *undi, struct undi_rom *undirom );
16extern int undi_unload ( struct undi_device *undi );
17
18/**
19 * Call UNDI loader to create a pixie
20 *
21 * @v undi              UNDI device
22 * @v undirom           UNDI ROM
23 * @v pci_busdevfn      PCI bus:dev.fn
24 * @ret rc              Return status code
25 */
26static 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 );
33}
34
35#endif /* _UNDILOAD_H */
Note: See TracBrowser for help on using the repository browser.