You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

undiload.h 734B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _UNDILOAD_H
  2. #define _UNDILOAD_H
  3. /** @file
  4. *
  5. * UNDI load/unload
  6. *
  7. */
  8. struct undi_device;
  9. struct undi_rom;
  10. extern int undi_load ( struct undi_device *undi, struct undi_rom *undirom );
  11. extern int undi_unload ( struct undi_device *undi );
  12. /**
  13. * Call UNDI loader to create a pixie
  14. *
  15. * @v undi UNDI device
  16. * @v undirom UNDI ROM
  17. * @v pci_busdevfn PCI bus:dev.fn
  18. * @ret rc Return status code
  19. */
  20. static inline int undi_load_pci ( struct undi_device *undi,
  21. struct undi_rom *undirom,
  22. unsigned int pci_busdevfn ) {
  23. undi->pci_busdevfn = pci_busdevfn;
  24. undi->isapnp_csn = UNDI_NO_ISAPNP_CSN;
  25. undi->isapnp_read_port = UNDI_NO_ISAPNP_READ_PORT;
  26. return undi_load ( undi, undirom );
  27. }
  28. #endif /* _UNDILOAD_H */