pcie: drop unused PCIExpressIndicator
The structure type is unused. Also, it's the only user of corresponding macros, so drop them too. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Anton Kuchin <antonkuchin@yandex-team.ru> Message-Id: <20230216180356.156832-10-vsementsov@yandex-team.ru> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
0a80f1cd06
commit
6b72b84d08
@ -27,14 +27,6 @@
|
||||
#include "hw/pci/pcie_sriov.h"
|
||||
#include "hw/hotplug.h"
|
||||
|
||||
typedef enum {
|
||||
/* for attention and power indicator */
|
||||
PCI_EXP_HP_IND_RESERVED = PCI_EXP_SLTCTL_IND_RESERVED,
|
||||
PCI_EXP_HP_IND_ON = PCI_EXP_SLTCTL_IND_ON,
|
||||
PCI_EXP_HP_IND_BLINK = PCI_EXP_SLTCTL_IND_BLINK,
|
||||
PCI_EXP_HP_IND_OFF = PCI_EXP_SLTCTL_IND_OFF,
|
||||
} PCIExpressIndicator;
|
||||
|
||||
typedef enum {
|
||||
/* these bits must match the bits in Slot Control/Status registers.
|
||||
* PCI_EXP_HP_EV_xxx = PCI_EXP_SLTCTL_xxxE = PCI_EXP_SLTSTA_xxx
|
||||
|
@ -66,11 +66,6 @@ typedef enum PCIExpLinkWidth {
|
||||
|
||||
#define PCI_EXP_SLTCAP_PSN_SHIFT ctz32(PCI_EXP_SLTCAP_PSN)
|
||||
|
||||
#define PCI_EXP_SLTCTL_IND_RESERVED 0x0
|
||||
#define PCI_EXP_SLTCTL_IND_ON 0x1
|
||||
#define PCI_EXP_SLTCTL_IND_BLINK 0x2
|
||||
#define PCI_EXP_SLTCTL_IND_OFF 0x3
|
||||
|
||||
#define PCI_EXP_SLTCTL_SUPPORTED \
|
||||
(PCI_EXP_SLTCTL_ABPE | \
|
||||
PCI_EXP_SLTCTL_PDCE | \
|
||||
|
Loading…
Reference in New Issue
Block a user