Browse Source
The VFIO_AMD_XGBE device type has been deprecated in the QEMU 10.0 timeframe. The AMD "Seattle" device is not supported anymore. Remove it. Reviewed-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Alex Williamson <alex.williamson@redhat.com> Link: https://lore.kernel.org/qemu-devel/20250901064631.530723-6-clg@redhat.com Signed-off-by: Cédric Le Goater <clg@redhat.com>pull/302/head
10 changed files with 9 additions and 439 deletions
@ -1,61 +0,0 @@ |
|||
/*
|
|||
* AMD XGBE VFIO device |
|||
* |
|||
* Copyright Linaro Limited, 2015 |
|||
* |
|||
* Authors: |
|||
* Eric Auger <eric.auger@linaro.org> |
|||
* |
|||
* This work is licensed under the terms of the GNU GPL, version 2. See |
|||
* the COPYING file in the top-level directory. |
|||
* |
|||
*/ |
|||
|
|||
#include "qemu/osdep.h" |
|||
#include "hw/vfio/vfio-amd-xgbe.h" |
|||
#include "migration/vmstate.h" |
|||
#include "qemu/module.h" |
|||
#include "qemu/error-report.h" |
|||
|
|||
static void amd_xgbe_realize(DeviceState *dev, Error **errp) |
|||
{ |
|||
VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(dev); |
|||
VFIOAmdXgbeDeviceClass *k = VFIO_AMD_XGBE_DEVICE_GET_CLASS(dev); |
|||
|
|||
warn_report("-device vfio-amd-xgbe is deprecated"); |
|||
vdev->compat = g_strdup("amd,xgbe-seattle-v1a"); |
|||
vdev->num_compat = 1; |
|||
|
|||
k->parent_realize(dev, errp); |
|||
} |
|||
|
|||
static const VMStateDescription vfio_platform_amd_xgbe_vmstate = { |
|||
.name = "vfio-amd-xgbe", |
|||
.unmigratable = 1, |
|||
}; |
|||
|
|||
static void vfio_amd_xgbe_class_init(ObjectClass *klass, const void *data) |
|||
{ |
|||
DeviceClass *dc = DEVICE_CLASS(klass); |
|||
VFIOAmdXgbeDeviceClass *vcxc = |
|||
VFIO_AMD_XGBE_DEVICE_CLASS(klass); |
|||
device_class_set_parent_realize(dc, amd_xgbe_realize, |
|||
&vcxc->parent_realize); |
|||
dc->desc = "VFIO AMD XGBE"; |
|||
dc->vmsd = &vfio_platform_amd_xgbe_vmstate; |
|||
} |
|||
|
|||
static const TypeInfo vfio_amd_xgbe_dev_info = { |
|||
.name = TYPE_VFIO_AMD_XGBE, |
|||
.parent = TYPE_VFIO_PLATFORM, |
|||
.instance_size = sizeof(VFIOAmdXgbeDevice), |
|||
.class_init = vfio_amd_xgbe_class_init, |
|||
.class_size = sizeof(VFIOAmdXgbeDeviceClass), |
|||
}; |
|||
|
|||
static void register_amd_xgbe_dev_type(void) |
|||
{ |
|||
type_register_static(&vfio_amd_xgbe_dev_info); |
|||
} |
|||
|
|||
type_init(register_amd_xgbe_dev_type) |
|||
@ -1,46 +0,0 @@ |
|||
/*
|
|||
* VFIO AMD XGBE device |
|||
* |
|||
* Copyright Linaro Limited, 2015 |
|||
* |
|||
* Authors: |
|||
* Eric Auger <eric.auger@linaro.org> |
|||
* |
|||
* This work is licensed under the terms of the GNU GPL, version 2. See |
|||
* the COPYING file in the top-level directory. |
|||
* |
|||
*/ |
|||
|
|||
#ifndef HW_VFIO_VFIO_AMD_XGBE_H |
|||
#define HW_VFIO_VFIO_AMD_XGBE_H |
|||
|
|||
#include "hw/vfio/vfio-platform.h" |
|||
#include "qom/object.h" |
|||
|
|||
#define TYPE_VFIO_AMD_XGBE "vfio-amd-xgbe" |
|||
|
|||
/**
|
|||
* This device exposes: |
|||
* - 5 MMIO regions: MAC, PCS, SerDes Rx/Tx regs, |
|||
SerDes Integration Registers 1/2 & 2/2 |
|||
* - 2 level sensitive IRQs and optional DMA channel IRQs |
|||
*/ |
|||
struct VFIOAmdXgbeDevice { |
|||
VFIOPlatformDevice vdev; |
|||
}; |
|||
|
|||
typedef struct VFIOAmdXgbeDevice VFIOAmdXgbeDevice; |
|||
|
|||
struct VFIOAmdXgbeDeviceClass { |
|||
/*< private >*/ |
|||
VFIOPlatformDeviceClass parent_class; |
|||
/*< public >*/ |
|||
DeviceRealize parent_realize; |
|||
}; |
|||
|
|||
typedef struct VFIOAmdXgbeDeviceClass VFIOAmdXgbeDeviceClass; |
|||
|
|||
DECLARE_OBJ_CHECKERS(VFIOAmdXgbeDevice, VFIOAmdXgbeDeviceClass, |
|||
VFIO_AMD_XGBE_DEVICE, TYPE_VFIO_AMD_XGBE) |
|||
|
|||
#endif |
|||
Loading…
Reference in new issue