Basic XT structures

This commit is contained in:
Rafal Kupiec 2022-07-29 16:31:59 +02:00
parent 0fb2c6875a
commit 35f2c67138
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
6 changed files with 97 additions and 3 deletions

15
sdk/xtdk/amd64/xtstruct.h Normal file
View File

@ -0,0 +1,15 @@
/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: sdk/xtdk/amd64/xtstruct.h
* DESCRIPTION: XT structures forward references specific to AMD64 architecture
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#ifndef __XTDK_AMD64_XTSTRUCT_H
#define __XTDK_AMD64_XTSTRUCT_H
/* Architecture-related structures forward references */
#endif /* __XTDK_AMD64_XTSTRUCT_H */

15
sdk/xtdk/i686/xtstruct.h Normal file
View File

@ -0,0 +1,15 @@
/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: sdk/xtdk/i686/xtstruct.h
* DESCRIPTION: XT structures forward references specific to i686 architecture
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#ifndef __XTDK_I686_XTSTRUCT_H
#define __XTDK_I686_XTSTRUCT_H
/* Architecture-related structures forward references */
#endif /* __XTDK_I686_XTSTRUCT_H */

37
sdk/xtdk/xtcommon.h Normal file
View File

@ -0,0 +1,37 @@
/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: sdk/xtdk/xtcommon.h
* DESCRIPTION: Basic and common XT structures for kernel and user modes
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#ifndef __XTDK_XTCOMMON_H
#define __XTDK_XTCOMMON_H
#include "xttypes.h"
#include "xtstruct.h"
/* Double linked list structure definition */
typedef struct _LIST_ENTRY
{
PLIST_ENTRY Flink;
PLIST_ENTRY Blink;
} LIST_ENTRY, *PLIST_ENTRY;
/* 32-bit double linked list structure definition */
typedef struct _LIST_ENTRY32
{
ULONG Flink;
ULONG Blink;
} LIST_ENTRY32, *PLIST_ENTRY32;
/* 64-bit double linked list structure definition */
typedef struct _LIST_ENTRY64
{
ULONGLONG Flink;
ULONGLONG Blink;
} LIST_ENTRY64, *PLIST_ENTRY64;
#endif /* __XTDK_XTCOMMON_H */

View File

@ -6,8 +6,8 @@
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#ifndef __XTDK_XTBASE_H
#define __XTDK_XTBASE_H
#ifndef __XTDK_XTDEFS_H
#define __XTDK_XTDEFS_H
/* Routines and arguments modifiers */
@ -82,4 +82,4 @@ typedef __builtin_va_list VA_LIST;
#define UlongToHandle(Var) ((HANDLE)(ULONG_PTR)Var)
#define UlongToPtr(Var) ((PVOID)(ULONG_PTR)Var)
#endif /* __XTDK_XTBASE_H */
#endif /* __XTDK_XTDEFS_H */

View File

@ -11,3 +11,12 @@
#include "xttypes.h"
#include "xtdefs.h"
#include "xtstatus.h"
/* XT forward references */
#include "xtstruct.h"
/* Architecture-specific XT forward references */
#include ARCH_HEADER(xtstruct.h)
/* Architecture-independent XT API */
#include "xtcommon.h"

18
sdk/xtdk/xtstruct.h Normal file
View File

@ -0,0 +1,18 @@
/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: sdk/xtdk/xtstruct.h
* DESCRIPTION: XT structures forward references
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#ifndef __XTDK_XTSTRUCT_H
#define __XTDK_XTSTRUCT_H
/* Structures forward references */
typedef struct _LIST_ENTRY LIST_ENTRY, *PLIST_ENTRY;
typedef struct _LIST_ENTRY32 LIST_ENTRY32, *PLIST_ENTRY32;
typedef struct _LIST_ENTRY64 LIST_ENTRY64, *PLIST_ENTRY64;
#endif /* __XTDK_XTSTRUCT_H */