iPXE
|
UNDI load/unload. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
int | undi_load (struct undi_device *undi, struct undi_rom *undirom) |
Call UNDI loader to create a pixie. More... | |
int | undi_unload (struct undi_device *undi) |
Unload a pixie. More... | |
static int | undi_load_pci (struct undi_device *undi, struct undi_rom *undirom, unsigned int pci_busdevfn) |
Call UNDI loader to create a pixie. More... | |
UNDI load/unload.
Definition in file undiload.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
int undi_load | ( | struct undi_device * | undi, |
struct undi_rom * | undirom | ||
) |
Call UNDI loader to create a pixie.
undi | UNDI device |
undirom | UNDI ROM |
rc | Return status code |
Definition at line 66 of file undiload.c.
References __asm__(), __from_data16, __volatile__(), BIOS_SEG, bus, undi_rom::code_size, copy_from_real, undi_rom::data_size, DBG, DBGC, EBUSY, undi_device::entry, EUNDILOAD, undi_device::fbms, find_pnp_bios(), get_fbms(), undi_device::isapnp_csn, undi_device::isapnp_read_port, undi_rom::loader_entry, memset(), undi_device::pci_busdevfn, PCI_FUNC, PCI_SLOT, undi_device::ppxe, ppxe, undi_device::pxenv, PXENV_EXIT_SUCCESS, rc, REAL_CODE, undi_device::restore_fbms, set_fbms(), strerror(), undi_loader, undi_loader_entry, UNDI_NO_ISAPNP_CSN, and UNDI_NO_PCI_BUSDEVFN.
Referenced by undi_load_pci().
int undi_unload | ( | struct undi_device * | undi | ) |
Unload a pixie.
undi | UNDI device |
rc | Return status code |
Erases the PXENV+ and !PXE signatures, and frees the used base memory (if possible).
Definition at line 161 of file undiload.c.
References DBGC, EBUSY, undi_device::fbms, get_fbms(), memset(), undi_device::ppxe, put_real, undi_device::pxenv, undi_device::restore_fbms, set_fbms(), and undi_loader_entry.
Referenced by undipci_probe(), and undipci_remove().
|
inlinestatic |
Call UNDI loader to create a pixie.
undi | UNDI device |
undirom | UNDI ROM |
pci_busdevfn | PCI bus:dev.fn |
rc | Return status code |
Definition at line 26 of file undiload.h.
References undi_device::isapnp_csn, undi_device::isapnp_read_port, undi_device::pci_busdevfn, undi_load(), UNDI_NO_ISAPNP_CSN, and UNDI_NO_ISAPNP_READ_PORT.
Referenced by undipci_probe().