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 775B

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