mirror of
https://github.com/ipxe/ipxe
synced 2025-12-18 02:20:19 +03:00
Added friendly enable/disable functions
This commit is contained in:
@@ -75,9 +75,16 @@ struct eisa_driver {
|
||||
* Functions in eisa.c
|
||||
*
|
||||
*/
|
||||
extern void enable_eisa_device ( struct eisa_device *eisa );
|
||||
extern void eisa_device_enabled ( struct eisa_device *eisa, int enabled );
|
||||
extern void fill_eisa_nic ( struct nic *nic, struct eisa_device *eisa );
|
||||
|
||||
static inline void enable_eisa_device ( struct eisa_device *eisa ) {
|
||||
eisa_device_enabled ( eisa, 1 );
|
||||
}
|
||||
static inline void disable_eisa_device ( struct eisa_device *eisa ) {
|
||||
eisa_device_enabled ( eisa, 0 );
|
||||
}
|
||||
|
||||
/*
|
||||
* EISA bus global definition
|
||||
*
|
||||
|
||||
@@ -209,10 +209,17 @@ struct isapnp_driver {
|
||||
* Functions in isapnp.c
|
||||
*
|
||||
*/
|
||||
extern void activate_isapnp_device ( struct isapnp_device *isapnp,
|
||||
int active );
|
||||
extern void isapnp_device_activation ( struct isapnp_device *isapnp,
|
||||
int activation );
|
||||
extern void isapnp_fill_nic ( struct nic *nic, struct isapnp_device *isapnp );
|
||||
|
||||
static inline void activate_isapnp_device ( struct isapnp_device *isapnp ) {
|
||||
isapnp_device_activation ( isapnp, 1 );
|
||||
}
|
||||
static inline void deactivate_isapnp_device ( struct isapnp_device *isapnp ) {
|
||||
isapnp_device_activation ( isapnp, 0 );
|
||||
}
|
||||
|
||||
/*
|
||||
* ISAPnP bus global definition
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user