Changeset 1467 for trunk/src/win32k/include
- Timestamp:
- Oct 27, 1999, 4:03:01 AM (26 years ago)
- Location:
- trunk/src/win32k/include
- Files:
-
- 1 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/include/OS2Krnl.h
r847 r1467 1 /* $Id: OS2Krnl.h,v 1. 1 1999-09-06 02:19:57bird Exp $1 /* $Id: OS2Krnl.h,v 1.2 1999-10-27 02:02:55 bird Exp $ 2 2 * 3 3 * OS/2 kernel structures, typedefs and macros. … … 10 10 #pragma pack(1) 11 11 12 #if ndef RING0_DEBUG_IN_RING313 typedef USHORT SFN, *PSFN; /* system file number */12 #ifdef RING0 13 typedef USHORT SFN, *PSFN; /* system file number */ 14 14 #else 15 15 #define SFN HFILE -
trunk/src/win32k/include/asmutils.h
r847 r1467 1 /* $Id: asmutils.h,v 1. 1 1999-09-06 02:19:57bird Exp $1 /* $Id: asmutils.h,v 1.2 1999-10-27 02:02:55 bird Exp $ 2 2 * 3 3 * Assembly utilities. … … 29 29 extern void __stdcall memmov(void *p, signed int off, unsigned int len); 30 30 31 #ifdef _OS2Krnl_h_32 extern PMTE _System GetOS2KrnlMTE(void);33 #endif34 35 31 #ifdef __cplusplus 36 32 } -
trunk/src/win32k/include/cout.h
r847 r1467 1 /* $Id: cout.h,v 1. 1 1999-09-06 02:19:57bird Exp $1 /* $Id: cout.h,v 1.2 1999-10-27 02:02:55 bird Exp $ 2 2 * 3 3 * cout - cout replacement. … … 6 6 * 7 7 */ 8 9 #error("Not used! Use kprintf/dprintf!") 8 10 9 11 #ifndef _cout_h_ -
trunk/src/win32k/include/dev16.h
r847 r1467 1 /* $Id: dev16.h,v 1. 1 1999-09-06 02:19:57bird Exp $1 /* $Id: dev16.h,v 1.2 1999-10-27 02:02:56 bird Exp $ 2 2 * dev16 - 16-bit specific. Should not be used in 32-bit C/C++. 3 3 * … … 42 42 #define D16_IOCTL_VERIFYPROCTAB 0x42 43 43 44 45 44 /** 46 * Regards goes to Matthieu Willm for this!45 * Regards goes to Matthieu Willm for (parts of) this! 47 46 */ 47 #ifdef INCL_16 48 typedef void FAR * FPVOID; 49 #else 50 typedef ULONG FPVOID; 51 #endif 48 52 typedef struct _DosTable /* dt */ 49 53 { 50 54 UCHAR cul; /* count of entries (dwords) in this table.*/ 51 ULONG notinterestingAtAll; 55 FPVOID fph_HardError; 56 FPVOID fph_UCase; 57 ULONG UnknownOrReserved1; 58 ULONG UnknownOrReserved2; 59 ULONG UnknownOrReserved3; 60 FPVOID fph_MemMapAlias; 61 FPVOID fph_MemUnmapAlias; 62 FPVOID fph_GoProtAll; 63 FPVOID fph_GoRealAll; 64 FPVOID fph_doshlp_RedirDev; 65 ULONG UnknownOrReserved4; 66 ULONG UnknownOrReserved5; 67 FPVOID fph_SFFromSFN; 68 FPVOID fph_SegGetInfo; 69 FPVOID fph_AsgCheckDrive; 70 ULONG UnknownOrReserved6; 71 ULONG UnknownOrReserved7; 52 72 } DOSTABLE, FAR *PDOSTABLE , NEAR *NPDOSTABLE; 53 73 … … 55 75 { 56 76 UCHAR cul; /* count of entries (dwords) in this table.*/ 57 ULONG notinteresting0;58 ULONG notinteresting1;59 ULONG notinteresting2;60 ULONG notinteresting3;61 ULONG notinteresting4;62 ULONG notinteresting5;63 ULONG notinteresting6;64 ULONG notinteresting7;65 ULONG notinteresting8;77 FPVOID fpErrMap24; 78 FPVOID fpErrMap24End; 79 FPVOID fpErr_Table_24; 80 FPVOID fpCDSAddr; 81 FPVOID fpGDT_RDR1; 82 FPVOID fpInterrupLevel; 83 FPVOID fp_cInDos; 84 ULONG UnknownOrReserved1; 85 ULONG UnknownOrReserved2; 66 86 ULONG R0FlatCS; 67 87 ULONG R0FlatDS; 68 ULONGTKSSBase;69 ULONG notinterestingC;70 ULONG notinterestingD;71 ULONG notinterestingE;72 ULONG notinterestingF;73 ULONGReserveVM;74 ULONG notinterestingH;75 ULONG notinterestingI;88 LIN pTKSSBase; 89 LIN pintSwitchStack; 90 LIN pprivatStack; 91 FPVOID fpPhysDiskTablePtr; 92 LIN pforceEMHandler; 93 LIN pReserveVM; 94 LIN p_pgpPageDir; 95 ULONG UnknownOrReserved3; 76 96 } DOSTABLE2, FAR *PDOSTABLE2 , NEAR *NPDOSTABLE2; 77 97 … … 89 109 */ 90 110 USHORT NEAR CallR0Init32(LIN pRpInit); 91 111 USHORT NEAR CallGetOTEs32(ULONG addressOTEBuf); 112 USHORT NEAR CallVerifyProcTab32(void); 92 113 93 114 /* -
trunk/src/win32k/include/dev32.h
r1269 r1467 1 /* $Id: dev32.h,v 1. 2 1999-10-14 01:16:49bird Exp $1 /* $Id: dev32.h,v 1.3 1999-10-27 02:02:56 bird Exp $ 2 2 * 3 3 * dev32 - header file for 32-bit part of the driver. … … 48 48 * Function prototypes. 49 49 */ 50 #if ndef __cplusplus50 #if !defined(__cplusplus) && defined(RING0) 51 51 USHORT _loadds _Far32 _Pascal R0Init32(RP32INIT *pRpInit); 52 52 USHORT _loadds _Far32 _Pascal GetOTEs32(PKRNLOBJTABLE pOTEBuf); 53 53 USHORT _loadds _Far32 _Pascal VerifyProcTab32(void); 54 54 #endif 55 #ifdef _OS2Krnl_h_ 56 PMTE _System GetOS2KrnlMTE(void); /* (devfirst.asm) */ 57 #endif 58 55 59 56 60 /* 57 61 * Global variables 58 62 */ 59 extern ULONGTKSSBase32;63 extern PULONG pulTKSSBase32; 60 64 61 65 /* 62 * Macros 66 * SSToDS( stack pointer ) 67 * 68 * In RING-0 this translates pointers to stack memory in the 69 * Stack Segment (SS) to pointers to stack memory in the 70 * Data Segment (DS). SS is 16-bit compatible, DS is 32-bit flat. 71 * It is vitally important to use this macro whenever creating 72 * a pointer to stack memory which don't implies that is a pointer 73 * relative to SS. For example when passing the pointer to an stack 74 * variable into an function call; like the addToModule calls. 75 * 76 * @returns 32-bit FLAT stack pointer. 63 77 */ 64 #define SSToDS(a) ((PVOID)((ULONG)(a) + TKSSBase32)) 78 #ifdef RING0 79 #define SSToDS(a) ((PVOID)((ULONG)(a) + *pulTKSSBase32)) 80 #else 81 #define SSToDS(a) ((PVOID)(a)) 82 #endif 65 83 66 84 #ifdef __cplusplus -
trunk/src/win32k/include/devSegDf.inc
r847 r1467 1 ; $Id: devSegDf.inc,v 1. 1 1999-09-06 02:19:58bird Exp $1 ; $Id: devSegDf.inc,v 1.2 1999-10-27 02:02:56 bird Exp $ 2 2 ; 3 3 ; Segment definitions for win32k.sys. … … 24 24 CODE32 ends 25 25 26 CALLTAB segment dword public ' CODE' use3226 CALLTAB segment dword public 'DATA' use32 27 27 CALLTAB ends 28 28 -
trunk/src/win32k/include/ldr.h
r1269 r1467 1 /* $Id: ldr.h,v 1. 2 1999-10-14 01:16:49bird Exp $1 /* $Id: ldr.h,v 1.3 1999-10-27 02:02:56 bird Exp $ 2 2 * 3 3 * ldr - loader header file. … … 14 14 extern BOOL fQAppType; 15 15 16 /* **************************************************************/17 /* handle state - Array of handle states. Four state per byte! */18 /***************************************************************/16 /* 17 * handle state - Array of handle states. Eight state per byte! 18 */ 19 19 #define MAX_FILE_HANDLES 0x10000 20 20 … … 31 31 32 32 33 /* *************/34 /* PE handles */35 /**************/36 typedef struct _ PENode33 /* 34 * Module struct. 35 */ 36 typedef struct _Module 37 37 { 38 /* linking stuff */ 39 struct _PENode *left; 40 struct _PENode *right; 38 AVLNODECORE coreKey; /* Key is hFile. */ 39 AVLNODECORE coreMTE; /* Key is pMTE. */ 41 40 42 /* key*/43 SFN hFile; /* system file number or file handle if you prefer that*/41 SFN hFile; /* System file number or file handle if you prefer that. */ 42 PMTE pMTE; /* Pointer to MTE if we got one - NULL is allowed. */ 44 43 45 /* misc */ 46 PMTE pMTE; /* pointer to MTE if we got one - may be NULL */ 44 ULONG fFlags; /* Flags. Flags if coreMte is in use and what Data contains. */ 45 union 46 { 47 Pe2Lx * pPe2Lx; /* Pointer to a Pe2Lx object. (Win32 executables) */ 48 #if 0 49 Elf2Lx * pElf2Lx; /* Pointer to a Elf2Lx object. (ELF executables) */ 50 Script * pScript; /* Pointer to a Script object. (Shell scripts) */ 51 Pe * pPe; /* Pointer to a Pe object. (Ring3 loader) */ 52 #endif 53 void * pv; 54 } Data; /* Pointer to data. Currently it's allways a Pe2Lx object! */ 55 } MODULE, *PMODULE; 47 56 48 /* Pe2Lx object */ 49 Pe2Lx *pPe2Lx; 50 } PENODE, *PPENODE; 57 #define MOD_FLAGS_IN_MTETREE 0x00000010 /* The node is present in the MTE-tree. */ 58 #define MOD_TYPE_MASK 0x0000000F /* Type mask. */ 59 #define MOD_TYPE_PE2LX 0x00000001 /* Pe2Lx module. */ 60 #define MOD_TYPE_ELF2LX 0x00000002 /* Elf2Lx module. */ 61 #define MOD_TYPE_SCRIPT 0x00000003 /* Script module. */ 62 #define MOD_TYPE_PE 0x00000004 /* Pe module. */ 51 63 52 #define SIZEOF_NODE (sizeof(NODE))53 64 54 ULONG insertNode(PPENODE pNode); 55 ULONG deleteNode(SFN key); /* removes from tree and freeNode */ 56 PPENODE getNodePtr(SFN key); 57 PPENODE findNodePtr(const char *pszFilename); 58 ULONG depthPE(void); 59 PPENODE allocateNode(void); 60 ULONG freeNode(PPENODE pNode); /* don't remove from tree! */ 65 /* 66 * Modules operations. 67 */ 68 PMODULE getModuleBySFN(SFN hFile); 69 PMODULE getModuleByMTE(PMTE pMTE); 70 PMODULE getModuleByFilename(PCSZ pszFilename); 61 71 62 /* if sequential insertion - this will give a lower tree. */ 63 /* testing shows that 3 gives best results for 27 to 134 nodes */ 64 #define ROTATION 3 65 #define AdjustKey(a) ((USHORT)(a << 16-ROTATION) | (USHORT)(a >> ROTATION) ) 66 #define UnAdjustKey(a) ((USHORT)(a >> 16-ROTATION) | (USHORT)(a << ROTATION) ) 72 ULONG addModule(SFN hFile, PMTE pMTE, ULONG fFlags, void *pData); 73 ULONG removeModule(SFN hFile); 67 74 68 75 #endif 76 69 77 /*************/ 70 78 /* functions */ -
trunk/src/win32k/include/log.h
r1269 r1467 1 /* $Id: log.h,v 1. 2 1999-10-14 01:16:50bird Exp $1 /* $Id: log.h,v 1.3 1999-10-27 02:02:56 bird Exp $ 2 2 * 3 3 * log - C-style logging - kprintf. … … 5 5 * 6 6 * Copyright (c) 1998-1999 knut st. osmundsen 7 * 8 * Project Odin Software License can be found in LICENSE.TXT 7 9 * 8 10 */ … … 15 17 #endif 16 18 19 /* 20 * COM-Port port numbers. 21 */ 17 22 #define OUTPUT_COM1 0x3f8 18 23 #define OUTPUT_COM2 0x2f8 24 19 25 20 26 /* … … 26 32 #include "vprintf.h" 27 33 #define kprintf(a) printf a 28 #define kernel_printf(a) printf a, printf("\n") /* obsolete */29 34 #else 30 35 #define kprintf(a) (void)0 31 #define kernel_printf(a) (void)032 36 #endif 33 37 -
trunk/src/win32k/include/malloc.h
r1269 r1467 1 /* $Id: malloc.h,v 1. 2 1999-10-14 01:16:50bird Exp $1 /* $Id: malloc.h,v 1.3 1999-10-27 02:02:57 bird Exp $ 2 2 * 3 3 * Heap. … … 46 46 #define MAXPTR _uHeapMaxPtr 47 47 48 #define HEAP_SIZE 0x00600000U /* 10MB of heap */ 48 /*#define HEAP_SIZE 0x00600000U*/ /* 10MB of heap */ 49 #define HEAP_SIZE 0x100000U /* 1MB of heap */ 49 50 50 51 /* HeapPointer assert - old ones... */ -
trunk/src/win32k/include/options.h
r847 r1467 1 /* $Id: options.h,v 1.1 1999-09-06 02:19:59 bird Exp $ 1 /* $Id: options.h,v 1.2 1999-10-27 02:02:57 bird Exp $ 2 * 2 3 * Options. 3 4 * 4 5 * Copyright (c) 1998-1999 knut st. osmundsen 6 * 7 * Project Odin Software License can be found in LICENSE.TXT 5 8 * 6 9 */ … … 9 12 #define _options_h_ 10 13 14 /******************************************************************************* 15 * Defined Constants And Macros * 16 *******************************************************************************/ 11 17 /* fKernel */ 12 18 #define KF_UNI 0x00000000UL 13 19 #define KF_SMP 0x00000001UL 14 20 21 /* Set defaults. */ 22 #define SET_OPTIONS_TO_DEFAULT(o) \ 23 o.fQuiet = 0; \ 24 o.usCom = OUTPUT_COM2; \ 25 o.fLogging = 0; \ 26 o.ulBuild = ~0; \ 27 o.fKernel = KF_UNI; \ 28 o.usVerMajor = ~0; \ 29 o.usVerMinor = ~0; 15 30 31 32 /******************************************************************************* 33 * Structures and Typedefs * 34 *******************************************************************************/ 16 35 /** Option struct */ 17 36 struct options … … 39 58 /** @cat Options affecting the generated LX executable */ 40 59 //******************************************************/ 41 int noExeTIBFix; /* ask win32k for initstuff (win32k only) */ 42 int AlignSections; /* don't align sections */ 43 //int TIBFixObject; /* make a TIBFix object - AlignSections = 0 */ 44 45 int lxoffset; /* if true use the fixed LXOFFSET if not ulPEOffset */ 46 int ourstub; /* our DOS stub or the one from the PE-file */ 60 /* none yet... */ 47 61 }; 48 62 49 63 50 extern struct options options; 51 52 #define SET_OPTIONS_TO_DEFAULT(o) \ 53 o.fQuiet = 0; \ 54 o.usCom = OUTPUT_COM2; \ 55 o.fLogging = 0; \ 56 o.ulBuild = 8259; \ 57 o.fKernel = KF_UNI; \ 58 o.usVerMajor = 20; \ 59 o.usVerMinor = 30; \ 60 o.noExeTIBFix = 0; \ 61 o.AlignSections = 1; \ 62 o.lxoffset = 0; \ 63 o.ourstub = 0 64 65 66 #define SET_OPTIONS_WIN32K(o) \ 67 SET_OPTIONS_TO_DEFAULT(o) 68 69 #define SET_OPTIONS_WIN32K_SAFE(o) \ 70 SET_OPTIONS_TO_DEFAULT(o); \ 71 o.noExeTIBFix = 0; \ 72 o.AlignSections = 1 73 74 75 #define SET_OPTIONS_PE2LX(o) \ 76 SET_OPTIONS_TO_DEFAULT(o); \ 77 o.fLogging = 1; \ 78 o.noExeTIBFix = 0; \ 79 o.AlignSections = 1; \ 80 o.lxoffset = 0; \ 81 o.ourstub = 0 64 /******************************************************************************* 65 * Global Variables * 66 *******************************************************************************/ 67 extern struct options options; /* defined in d32globals.c */ 82 68 83 69 #endif -
trunk/src/win32k/include/pe2lx.h
r1270 r1467 1 /* $Id: pe2lx.h,v 1. 4 1999-10-14 01:17:55bird Exp $1 /* $Id: pe2lx.h,v 1.5 1999-10-27 02:02:57 bird Exp $ 2 2 * 3 3 * Pe2Lx class declarations. Ring 0 and Ring 3 … … 17 17 * Defined Constants And Macros * 18 18 *******************************************************************************/ 19 /*20 * RING3 wrappings for RING0 constructs.21 */22 #ifdef RING323 typedef HFILE SFN; /* System File Number. (OS2Krnl.h) */24 typedef PVOID PMTE; /* Pointer to Module Table Entry. (OS2Krnl.h) */25 #endif26 27 19 /* 28 20 * Misc -
trunk/src/win32k/include/probkrnl.h
r847 r1467 1 /* $Id: probkrnl.h,v 1. 1 1999-09-06 02:19:59bird Exp $1 /* $Id: probkrnl.h,v 1.2 1999-10-27 02:02:57 bird Exp $ 2 2 * 3 3 * Include file for ProbKrnl. … … 57 57 extern unsigned long int _usVerMinor; /* 'usVerMinor' in PrbKrnl.c */ 58 58 59 #ifdef INCL_16 /* 16-bit only */ 60 int ProbeKernel(PRPINITIN pReqPack); 61 #endif 59 62 60 63 #endif
Note:
See TracChangeset
for help on using the changeset viewer.