00001 #ifndef _UNDILOAD_H 00002 #define _UNDILOAD_H 00003 00004 /** @file 00005 * 00006 * UNDI load/unload 00007 * 00008 */ 00009 00010 FILE_LICENCE ( GPL2_OR_LATER ); 00011 00012 struct undi_device; 00013 struct undi_rom; 00014 00015 extern int undi_load ( struct undi_device *undi, struct undi_rom *undirom ); 00016 extern int undi_unload ( struct undi_device *undi ); 00017 00018 /** 00019 * Call UNDI loader to create a pixie 00020 * 00021 * @v undi UNDI device 00022 * @v undirom UNDI ROM 00023 * @v pci_busdevfn PCI bus:dev.fn 00024 * @ret rc Return status code 00025 */ 00026 static inline int undi_load_pci ( struct undi_device *undi, 00027 struct undi_rom *undirom, 00028 unsigned int pci_busdevfn ) { 00029 undi->pci_busdevfn = pci_busdevfn; 00030 undi->isapnp_csn = UNDI_NO_ISAPNP_CSN; 00031 undi->isapnp_read_port = UNDI_NO_ISAPNP_READ_PORT; 00032 return undi_load ( undi, undirom ); 00033 } 00034 00035 #endif /* _UNDILOAD_H */
1.5.7.1