|
@@ -36,6 +36,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
36
|
36
|
#include <ipxe/uri.h>
|
37
|
37
|
#include <ipxe/open.h>
|
38
|
38
|
#include <ipxe/ata.h>
|
|
39
|
+#include <ipxe/device.h>
|
39
|
40
|
#include <ipxe/aoe.h>
|
40
|
41
|
|
41
|
42
|
/** @file
|
|
@@ -772,6 +773,16 @@ static void aoedev_config_done ( struct aoe_device *aoedev, int rc ) {
|
772
|
773
|
xfer_window_changed ( &aoedev->ata );
|
773
|
774
|
}
|
774
|
775
|
|
|
776
|
+/**
|
|
777
|
+ * Identify device underlying AoE device
|
|
778
|
+ *
|
|
779
|
+ * @v aoedev AoE device
|
|
780
|
+ * @ret device Underlying device
|
|
781
|
+ */
|
|
782
|
+static struct device * aoedev_identify_device ( struct aoe_device *aoedev ) {
|
|
783
|
+ return aoedev->netdev->dev;
|
|
784
|
+}
|
|
785
|
+
|
775
|
786
|
/**
|
776
|
787
|
* Describe AoE device in an ACPI table
|
777
|
788
|
*
|
|
@@ -807,6 +818,8 @@ static struct interface_operation aoedev_ata_op[] = {
|
807
|
818
|
INTF_OP ( xfer_window, struct aoe_device *, aoedev_window ),
|
808
|
819
|
INTF_OP ( intf_close, struct aoe_device *, aoedev_close ),
|
809
|
820
|
INTF_OP ( acpi_describe, struct aoe_device *, aoedev_describe ),
|
|
821
|
+ INTF_OP ( identify_device, struct aoe_device *,
|
|
822
|
+ aoedev_identify_device ),
|
810
|
823
|
};
|
811
|
824
|
|
812
|
825
|
/** AoE device ATA interface descriptor */
|