mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:22:58 +00:00
[SDK][VIRTIO][NETKVM] Make VirtIO a separate library (#6280)
* [SDK][VIRTIO][NETKVM] Make VirtIO a separate library This is to avoid code duplication when more VirtIO drivers are brought in. This will also be used on development of a VirtIO XDDM GPU Driver. * [VIRTIO] Sync with upstream
This commit is contained in:
parent
96d5b6281d
commit
823fdb19d7
20 changed files with 35 additions and 8 deletions
41
sdk/lib/drivers/virtio/osdep.h
Normal file
41
sdk/lib/drivers/virtio/osdep.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Copyright (c) 2007 Qumranet All Rights Reserved
|
||||
//
|
||||
// Module Name:
|
||||
// osdep.h
|
||||
//
|
||||
// Abstract:
|
||||
// Windows OS dependent definitions of data types
|
||||
//
|
||||
// Author:
|
||||
// Yan Vugenfirer - February 2007.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <ntddk.h>
|
||||
|
||||
#ifdef __REACTOS__
|
||||
#ifdef __GNUC__
|
||||
#undef FORCEINLINE
|
||||
#define FORCEINLINE __attribute__((__always_inline__))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef __REACTOS__
|
||||
#if !defined(ENOSPC)
|
||||
#define ENOSPC 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(__cplusplus) && !defined(bool)
|
||||
// Important note: in MSFT C++ bool length is 1 bytes
|
||||
// C++ does not define length of bool
|
||||
// inconsistent definition of 'bool' may create compatibility problems
|
||||
#define bool u8
|
||||
#define false FALSE
|
||||
#define true TRUE
|
||||
#endif
|
||||
|
||||
#define SMP_CACHE_BYTES 64
|
Loading…
Add table
Add a link
Reference in a new issue