OvmfPkg: IndustryStandard: add definitions from the VirtIo 1.0 spec
These header files are intentionally minimal, and intentionally kept apart from the VirtIo 0.9.5 headers. The header inclusion chains end up like this (the Virtio10*.h header files in the middle are new): Virtio.h -> Virtio10.h -> Virtio095.h ^ ^ | | VirtioNet.h -> Virtio10Net.h -> Virtio095Net.h Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
32
OvmfPkg/Include/IndustryStandard/Virtio10Net.h
Normal file
32
OvmfPkg/Include/IndustryStandard/Virtio10Net.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/** @file
|
||||
Definitions from the VirtIo 1.0 specification (csprd05), specifically for the
|
||||
network device.
|
||||
|
||||
Copyright (C) 2016, Red Hat, Inc.
|
||||
|
||||
This program and the accompanying materials are licensed and made available
|
||||
under the terms and conditions of the BSD License which accompanies this
|
||||
distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT
|
||||
WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
**/
|
||||
|
||||
#ifndef _VIRTIO_1_0_NET_H_
|
||||
#define _VIRTIO_1_0_NET_H_
|
||||
|
||||
#include <IndustryStandard/Virtio10.h>
|
||||
#include <IndustryStandard/Virtio095Net.h>
|
||||
|
||||
//
|
||||
// VirtIo 1.0 packet header
|
||||
//
|
||||
#pragma pack (1)
|
||||
typedef struct {
|
||||
VIRTIO_NET_REQ V0_9_5;
|
||||
UINT16 NumBuffers;
|
||||
} VIRTIO_1_0_NET_REQ;
|
||||
#pragma pack ()
|
||||
|
||||
#endif // _VIRTIO_1_0_NET_H_
|
Reference in New Issue
Block a user