Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

undiload.h 767B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef _UNDILOAD_H
  2. #define _UNDILOAD_H
  3. /** @file
  4. *
  5. * UNDI load/unload
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER );
  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 */