|
@@ -73,14 +73,14 @@ extern int efi_snp_hii_install ( struct efi_snp_device *snpdev );
|
73
|
73
|
extern void efi_snp_hii_uninstall ( struct efi_snp_device *snpdev );
|
74
|
74
|
extern struct efi_snp_device * find_snpdev ( EFI_HANDLE handle );
|
75
|
75
|
extern struct efi_snp_device * last_opened_snpdev ( void );
|
76
|
|
-extern void efi_snp_set_claimed ( int claimed );
|
|
76
|
+extern void efi_snp_add_claim ( int delta );
|
77
|
77
|
|
78
|
78
|
/**
|
79
|
79
|
* Claim network devices for use by iPXE
|
80
|
80
|
*
|
81
|
81
|
*/
|
82
|
82
|
static inline void efi_snp_claim ( void ) {
|
83
|
|
- efi_snp_set_claimed ( 1 );
|
|
83
|
+ efi_snp_add_claim ( +1 );
|
84
|
84
|
}
|
85
|
85
|
|
86
|
86
|
/**
|
|
@@ -88,7 +88,7 @@ static inline void efi_snp_claim ( void ) {
|
88
|
88
|
*
|
89
|
89
|
*/
|
90
|
90
|
static inline void efi_snp_release ( void ) {
|
91
|
|
- efi_snp_set_claimed ( 0 );
|
|
91
|
+ efi_snp_add_claim ( -1 );
|
92
|
92
|
}
|
93
|
93
|
|
94
|
94
|
#endif /* _IPXE_EFI_SNP_H */
|