mirror of https://github.com/ipxe/ipxe.git
Renamed describe to describe_device for consistency
parent
99b857559b
commit
3b14360f5c
|
@ -327,7 +327,7 @@ void nic_disable ( struct nic *nic __unused ) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static char * nic_describe ( struct type_dev *type_dev ) {
|
static char * nic_describe_device ( struct type_dev *type_dev ) {
|
||||||
struct nic *nic = ( struct nic * ) type_dev;
|
struct nic *nic = ( struct nic * ) type_dev;
|
||||||
static char nic_description[] = "MAC 00:00:00:00:00:00";
|
static char nic_description[] = "MAC 00:00:00:00:00:00";
|
||||||
|
|
||||||
|
@ -340,9 +340,9 @@ static char * nic_describe ( struct type_dev *type_dev ) {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
struct type_driver nic_driver = {
|
struct type_driver nic_driver = {
|
||||||
.name = "NIC",
|
.name = "NIC",
|
||||||
.type_dev = ( struct type_dev * ) &nic,
|
.type_dev = ( struct type_dev * ) &nic,
|
||||||
.describe = nic_describe,
|
.describe_device = nic_describe_device,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Careful. We need an aligned buffer to avoid problems on machines
|
/* Careful. We need an aligned buffer to avoid problems on machines
|
||||||
|
|
|
@ -179,7 +179,7 @@ struct type_dev;
|
||||||
struct type_driver {
|
struct type_driver {
|
||||||
char *name;
|
char *name;
|
||||||
struct type_dev *type_dev; /* single instance */
|
struct type_dev *type_dev; /* single instance */
|
||||||
char * ( * describe ) ( struct type_dev *type_dev );
|
char * ( * describe_device ) ( struct type_dev *type_dev );
|
||||||
};
|
};
|
||||||
|
|
||||||
#define __type_driver __attribute__ (( used, __section__ ( ".drivers.type" ) ))
|
#define __type_driver __attribute__ (( used, __section__ ( ".drivers.type" ) ))
|
||||||
|
|
Loading…
Reference in New Issue