[aoe] Add support for identifying the underlying hardware device
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
3c35ae2f3b
commit
d068049789
|
@ -36,6 +36,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||||
#include <ipxe/uri.h>
|
#include <ipxe/uri.h>
|
||||||
#include <ipxe/open.h>
|
#include <ipxe/open.h>
|
||||||
#include <ipxe/ata.h>
|
#include <ipxe/ata.h>
|
||||||
|
#include <ipxe/device.h>
|
||||||
#include <ipxe/aoe.h>
|
#include <ipxe/aoe.h>
|
||||||
|
|
||||||
/** @file
|
/** @file
|
||||||
|
@ -772,6 +773,16 @@ static void aoedev_config_done ( struct aoe_device *aoedev, int rc ) {
|
||||||
xfer_window_changed ( &aoedev->ata );
|
xfer_window_changed ( &aoedev->ata );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Identify device underlying AoE device
|
||||||
|
*
|
||||||
|
* @v aoedev AoE device
|
||||||
|
* @ret device Underlying device
|
||||||
|
*/
|
||||||
|
static struct device * aoedev_identify_device ( struct aoe_device *aoedev ) {
|
||||||
|
return aoedev->netdev->dev;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Describe AoE device in an ACPI table
|
* Describe AoE device in an ACPI table
|
||||||
*
|
*
|
||||||
|
@ -807,6 +818,8 @@ static struct interface_operation aoedev_ata_op[] = {
|
||||||
INTF_OP ( xfer_window, struct aoe_device *, aoedev_window ),
|
INTF_OP ( xfer_window, struct aoe_device *, aoedev_window ),
|
||||||
INTF_OP ( intf_close, struct aoe_device *, aoedev_close ),
|
INTF_OP ( intf_close, struct aoe_device *, aoedev_close ),
|
||||||
INTF_OP ( acpi_describe, struct aoe_device *, aoedev_describe ),
|
INTF_OP ( acpi_describe, struct aoe_device *, aoedev_describe ),
|
||||||
|
INTF_OP ( identify_device, struct aoe_device *,
|
||||||
|
aoedev_identify_device ),
|
||||||
};
|
};
|
||||||
|
|
||||||
/** AoE device ATA interface descriptor */
|
/** AoE device ATA interface descriptor */
|
||||||
|
|
Reference in New Issue