X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=OvmfPkg%2FInclude%2FIndustryStandard%2FVirtioNet.h;h=34bf15a5883d73f8d5d3e890db8cefeef038b0a8;hb=56f65ed838e8d73e91d54a8ed984d777c936843c;hp=03dfeb2c594fa76de1f15bd2821c4a76ec5894bb;hpb=6fb4e772a0ad14399532201d1b9ecb811c9c7262;p=mirror_edk2.git diff --git a/OvmfPkg/Include/IndustryStandard/VirtioNet.h b/OvmfPkg/Include/IndustryStandard/VirtioNet.h index 03dfeb2c59..34bf15a588 100644 --- a/OvmfPkg/Include/IndustryStandard/VirtioNet.h +++ b/OvmfPkg/Include/IndustryStandard/VirtioNet.h @@ -1,5 +1,4 @@ /** @file - Virtio Network Device specific type and macro definitions corresponding to the virtio-0.9.5 specification. @@ -25,14 +24,13 @@ // #pragma pack(1) typedef struct { - VIRTIO_HDR Generic; - UINT8 VhdrMac[6]; - UINT16 VhdrLinkStatus; -} VNET_HDR; + UINT8 Mac[6]; + UINT16 LinkStatus; +} VIRTIO_NET_CONFIG; #pragma pack() -#define OFFSET_OF_VNET(Field) OFFSET_OF (VNET_HDR, Field) -#define SIZE_OF_VNET(Field) (sizeof ((VNET_HDR *) 0)->Field) +#define OFFSET_OF_VNET(Field) OFFSET_OF (VIRTIO_NET_CONFIG, Field) +#define SIZE_OF_VNET(Field) (sizeof ((VIRTIO_NET_CONFIG *) 0)->Field) // // Queue Identifiers @@ -91,7 +89,7 @@ typedef struct { #define VIRTIO_NET_HDR_GSO_ECN BIT7 // -// Link Status Bits in VNET_HDR.VhdrLinkStatus +// Link Status Bits in VIRTIO_NET_CONFIG.LinkStatus // #define VIRTIO_NET_S_LINK_UP BIT0 #define VIRTIO_NET_S_ANNOUNCE BIT1