Changeset 6815 for trunk/src


Ignore:
Timestamp:
Sep 26, 2001, 5:52:37 AM (24 years ago)
Author:
bird
Message:

Updated to work for kKrnlLib.DLL and internally in kKrnlLib.

Location:
trunk/src/win32k/kKrnlLib/include
Files:
1 added
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/kKrnlLib/include/OS2KIO.h

    r6701 r6815  
    1 /* $Id: OS2KIO.h,v 1.1 2001-09-14 01:50:14 bird Exp $
     1/* $Id: OS2KIO.h,v 1.2 2001-09-26 03:52:35 bird Exp $
    22 *
    3  * OS/2 kernel IO: prototypes, typedefs and macros.
     3 * OS/2 kernel I/O: prototypes, typedefs and macros.
     4 *
     5 * Copyright (c) 1999-2001 knut st. osmundsen (kosmunds@csc.com)
    46 *
    57 * Project Odin Software License can be found in LICENSE.TXT
     
    2729    PULONG pulsomething
    2830    );
     31APIRET KRNLCALL OrgIOSftOpen(
     32    PSZ pszFilename,
     33    ULONG flOpenFlags,
     34    ULONG fsOpenMode,
     35    PSFN phFile,
     36    PULONG pulsomething
     37    );
    2938
    3039
     
    3544 */
    3645APIRET KRNLCALL IOSftClose(
     46    SFN hFile
     47    );
     48APIRET KRNLCALL OrgIOSftClose(
    3749    SFN hFile
    3850    );
     
    4658 */
    4759APIRET KRNLCALL IOSftTransPath(
     60    PSZ pszPath
     61    );
     62APIRET KRNLCALL OrgIOSftTransPath(
    4863    PSZ pszPath
    4964    );
     
    6176 */
    6277APIRET KRNLCALL IOSftReadAt(
     78    SFN hFile,
     79    PULONG pcbActual,
     80    PVOID pvBuffer,
     81    ULONG flFlags,
     82    ULONG ulOffset
     83    );
     84APIRET KRNLCALL OrgIOSftReadAt(
    6385    SFN hFile,
    6486    PULONG pcbActual,
     
    86108    ULONG ulOffset
    87109    );
     110APIRET KRNLCALL OrgIOSftWriteAt(
     111    SFN hFile,
     112    PULONG pcbActual,
     113    PVOID pvBuffer,
     114    ULONG flFlags,
     115    ULONG ulOffset
     116    );
    88117
    89118
     
    98127    PULONG pcbFile
    99128    );
     129APIRET KRNLCALL OrgSftFileSize(
     130    SFN hFile,
     131    PULONG pcbFile
     132    );
    100133
    101134#endif
  • trunk/src/win32k/kKrnlLib/include/OS2KLDR.h

    r6701 r6815  
    1 /* $Id: OS2KLDR.h,v 1.1 2001-09-14 01:50:15 bird Exp $
     1/* $Id: OS2KLDR.h,v 1.2 2001-09-26 03:52:35 bird Exp $
    22 *
    33 * OS/2 kernel Loader Stuff.
     
    2929    ULONG    ote_pagemap;          /* Object page map index */
    3030    ULONG    ote_mapsize;          /* Num of entries in obj page map */
    31   /*ULONG    ote_reserved;*/
    3231    USHORT   ote_sel;              /* Object Selector */
    3332    USHORT   ote_hob;              /* Object Handle */
     
    226225*   Global Variables                                                           *
    227226*******************************************************************************/
     227#ifdef KKRNLLIB
    228228extern PSZ*    pLdrLibPath;             /* Pointer to the libpath pointer. */
    229229extern PPMTE   pmte_h;
     
    234234extern PPMTE   pspecific_h;
    235235extern PPMTE   pspecific_l;
     236#else
     237extern PSZ     LdrLibPath;             /* Pointer to the libpath. */
     238extern PMTE    mte_h;
     239extern PMTE    program_h;
     240extern PMTE    program_l;
     241extern PMTE    global_h;
     242extern PMTE    global_l;
     243extern PMTE    specific_h;
     244extern PMTE    specific_l;
     245#endif
    236246
    237247/*******************************************************************************
     
    245255    );
    246256
    247 ULONG LDRCALL myldrClose(SFN);
     257extern ULONG LDRCALL OrgldrClose(SFN);
    248258
    249259
     
    257267    );
    258268
    259 ULONG LDRCALL myldrOpen(PSFN phFile, PSZ pszFilename, PULONG pfl);
     269extern ULONG LDRCALL OrgldrOpen(PSFN phFile, PSZ pszFilename, PULONG pfl);
    260270
    261271
     
    272282    );
    273283
    274 ULONG LDRCALL myldrRead(
     284extern ULONG LDRCALL OrgmyldrRead(
    275285    SFN     hFile,
    276286    ULONG   ulOffset,
     
    282292
    283293
    284 
    285294/**
    286295 * _LDRQAppType
     
    291300    );
    292301
    293 ULONG LDRCALL myLDRQAppType(ULONG,ULONG);
     302extern ULONG LDRCALL OrgLDRQAppType(ULONG,ULONG);
    294303
    295304
     
    313322    );
    314323
    315 ULONG LDRCALL myldrEnum32bitRelRecs(PMTE, ULONG, ULONG, PVOID, ULONG, PVOID);
    316 
     324extern ULONG LDRCALL OrgldrEnum32bitRelRecs(PMTE, ULONG, ULONG, PVOID, ULONG, PVOID);
    317325
    318326
     
    372380 *      endloop
    373381 *  endif
     382 * @remark  Win32k Internal stuff???
    374383 */
    375384extern ULONG LDRCALL ldrOpenPath_old(   /* retd  0x10 */
     
    379388    PULONG      pful                /* ebp + 0x14 */
    380389    );
    381 
    382 ULONG LDRCALL myldrOpenPath_old(PCHAR pachFilename, USHORT cchFilename, ldrlv_t *plv, PULONG pful);
    383390
    384391
     
    429436    );
    430437
    431 ULONG LDRCALL myldrOpenPath(PCHAR pachFilename, USHORT cchFilename, ldrlv_t *plv, PULONG pful, ULONG lLibPath);
     438extern ULONG LDRCALL OrgldrOpenPath(PCHAR pachFilename, USHORT cchFilename, ldrlv_t *plv, PULONG pful, ULONG lLibPath);
    432439
    433440
     
    442449 * @sketch
    443450 */
    444 ULONG LDRCALL ldrFindModule(        /* retd  0x10 */
     451extern ULONG LDRCALL ldrFindModule( /* retd  0x10 */
    445452    PCHAR       pachFilename,       /* ebp + 0x08 */
    446453    USHORT      cchFilename,        /* ebp + 0x0c */
     
    449456    );
    450457
    451 ULONG LDRCALL myldrFindModule(PCHAR pachFilename, USHORT cchFilename, USHORT usClass, PPMTE ppMTE);
     458extern ULONG LDRCALL OrgldrFindModule(PCHAR pachFilename, USHORT cchFilename, USHORT usClass, PPMTE ppMTE);
    452459
    453460
     
    469476    PULONG      pcUsage);               /* ebp + 0x10 */
    470477
    471 ULONG LDRCALL myldrWasLoadModuled(HMTE hmte, PPTDA pptda, PULONG pcUsage);
     478extern ULONG LDRCALL OrgldrWasLoadModuled(HMTE hmte, PPTDA pptda, PULONG pcUsage);
    472479#endif
    473480
     
    497504    PULONG      pulProcType);           /* ebp + 0x1c */
    498505
    499 ULONG LDRCALL myLDRGetProcAddr(HMTE hmte, ULONG ulOrdinal, PCSZ pszName, PULONG pulAddress, BOOL fFlat, PULONG pulProcType);
     506extern ULONG LDRCALL OrgLDRGetProcAddr(HMTE hmte, ULONG ulOrdinal, PCSZ pszName, PULONG pulAddress, BOOL fFlat, PULONG pulProcType);
    500507
    501508
     
    508515 */
    509516extern ULONG LDRCALL LDRClearSem(void);
     517extern ULONG LDRCALL OrgLDRClearSem(void);
    510518
    511519
     
    515523 *            OS2 errorcode on failure. (ERROR_INTERRUPT?)
    516524 */
     525#ifdef KKRNLLIB
    517526#define LDRRequestSem()   KSEMRequestMutex(pLdrSem, (ULONG)-1)
     527#else
     528#define LDRRequestSem()   KSEMRequestMutex(&LdrSem, (ULONG)-1)
     529#endif
    518530
    519531
     
    522534 */
    523535#ifdef _OS2KSEM_h_
     536#ifdef KKRNLLIB
    524537extern PKSEMMTX    pLdrSem;
     538#else
     539extern KSEMMTX     LdrSem;
     540#endif
    525541#endif
    526542
     
    535551 */
    536552extern PMTE LDRCALL ldrValidateMteHandle(HMTE hMTE);
     553extern PMTE LDRCALL OrgldrValidateMteHandle(HMTE hMTE);
    537554
    538555
     
    544561 */
    545562extern PMTE KRNLCALL ldrASMpMTEFromHandle(HMTE  hMTE);
     563extern PMTE KRNLCALL OrgldrASMpMTEFromHandle(HMTE  hMTE);
    546564
    547565
     
    553571 */
    554572extern ULONG LDRCALL ldrTransPath(PSZ pszFilename);
     573extern ULONG LDRCALL OrgldrTransPath(PSZ pszFilename);
    555574
    556575
     
    570589    );
    571590
    572 VOID LDRCALL myldrSetVMflags(PMTE pMTE, ULONG flObj, PULONG pflFlags1, PULONG pflFlags2);
     591extern VOID LDRCALL OrgldrSetVMflags(PMTE pMTE, ULONG flObj, PULONG pflFlags1, PULONG pflFlags2);
    573592
    574593
     
    584603    PMTE        pMTE                /* ebp + 0x08 */
    585604    );
    586 
    587 ULONG LDRCALL myldrCheckInternalName(PMTE pMTE);
     605extern ULONG LDRCALL OrgldrCheckInternalName(PMTE pMTE);
    588606
    589607
     
    596614 */
    597615extern ULONG LDRCALL    ldrGetFileName(PSZ pszFilename, PCHAR *ppchName, PCHAR *ppchExt);
     616extern ULONG LDRCALL    OrgldrGetFileName(PSZ pszFilename, PCHAR *ppchName, PCHAR *ppchExt);
    598617
    599618
     
    604623 * @param   ppachName       Pointer to pointer which should hold the name pointer upon successfull return.
    605624 * @param   ppachExt        Pointer to pointer which should hold the extention pointer upon successfull return.
     625 * @remark  Win32k internal function???
    606626 */
    607627extern ULONG LDRCALL    ldrGetFileName2(PSZ pszFilename, PCHAR *ppchName, PCHAR *ppchExt);
     
    615635 */
    616636extern VOID LDRCALL     ldrUCaseString(PCHAR pch, unsigned cch);
     637extern VOID LDRCALL     OrgldrUCaseString(PCHAR pch, unsigned cch);
     638
     639
     640
     641/**
     642 * Resolves the ordinal number of an name export.
     643 * @returns OS2 return code. (I.e. ON_ERROR on success)
     644 * @param   pMTE            Pointer to the module table entry for the
     645 *                          module.
     646 * @param   pszExportName   Name to resolve. This is case sensitive.
     647 * @param   pusOrdinal      Pointer to variable which on success will hold
     648 *                          the ordinal value found for the name export.
     649 */
     650extern ULONG LDRCALL    ldrGetOrdNum(PMTE pMTE, PSZ pszExportName, PUSHORT pusOrdinal);
     651extern ULONG LDRCALL    OrgldrGetOrdNum(PMTE pMTE, PSZ pszExportName, PUSHORT pusOrdinal);
     652
     653
     654/**
     655 * Frees a task.
     656 * @param   pPTDA   Pointer to per task data area of the task to be freed.
     657 */
     658extern void LDRCALL     LDRFreeTask(PPTDA pPTDA);
     659extern void LDRCALL     OrgLDRFreeTask(PPTDA pPTDA);
    617660
    618661
     
    622665 * set to the fully qualified filename of the file last opened (successfully).
    623666 */
    624 extern PSZ *pldrpFileNameBuf;
     667#ifdef KKRNLLIB
     668extern PSZ *    pldrpFileNameBuf;
    625669#define ldrpFileNameBuf (*pldrpFileNameBuf)
     670#else
     671extern PSZ      ldrpFileNameBuf;
     672#endif
    626673
    627674
  • trunk/src/win32k/kKrnlLib/include/OS2KPG.h

    r6701 r6815  
    1 /* $Id: OS2KPG.h,v 1.1 2001-09-14 01:50:15 bird Exp $
     1/* $Id: OS2KPG.h,v 1.2 2001-09-26 03:52:35 bird Exp $
    22 *
    33 * OS/2 kernel page manager stuff.
     
    1717 *      <li> 0 - Swapping disabled. </ul>
    1818 */
     19#ifdef KKRNLLIB
    1920extern int * pPGSwapEnabled;
    2021#define PGSwapEnabled (*pPGSwapEnabled)
     22#else
     23extern int   PGSwapEnabled;
     24#endif
     25
    2126
    2227/**
    2328 * Count of physical pages - hope this is correct.
    2429 */
     30#ifdef KKRNLLIB
    2531extern int * ppgPhysPages;
    2632#define pgPhysPages (*ppgPhysPages)
     33#else
     34extern int   pgPhysPages;
     35#endif
     36
    2737
    2838/**
    2939 * Pointer to top of physical memory (physical address).
    3040 */
     41#ifdef KKRNLLIB
    3142extern PULONG ppgPhysMax;
    3243#define pgPhysMax (*ppgPhysMax)
     44#else
     45extern ULONG  pgPhysMax;
     46#endif
     47
    3348
    3449/**
    3550 * Count of resident pages.
    3651 */
     52#ifdef KKRNLLIB
    3753extern int * ppgResidentPages;
    3854#define pgResidentPages (*ppgResidentPages)
     55#else
     56extern int   pgResidentPages;
     57#endif
     58
    3959
    4060/**
    4161 * Count of swappable pages which is currently present in memory.
    4262 */
     63#ifdef KKRNLLIB
    4364extern int * ppgSwappablePages;
    4465#define pgSwappablePages (*ppgSwappablePages)
     66#else
     67extern int   pgSwappablePages;
     68#endif
     69
    4570
    4671/**
    4772* Count of discardable pages which is currently present in memory.
    4873*/
     74#ifdef KKRNLLIB
    4975extern int * ppgDiscardableInmem;
    5076#define pgDiscardableInmem (*ppgDiscardableInmem)
     77#else
     78extern int   pgDiscardableInmem;
     79#endif
     80
    5181
    5282/**
    5383 * Count of discardable pages allocated.
    5484 */
     85#ifdef KKRNLLIB
    5586extern int * ppgDiscardablePages;
    5687#define pgDiscardablePages (*ppgDiscardablePages)
     88#else
     89extern int   pgDiscardablePages;
     90#endif
     91
    5792
    5893/**
    5994 * Count of page faults since bootup.
    6095 */
     96#ifdef KKRNLLIB
    6197extern PULONG ppgcPageFaults;
    6298#define pgcPageFaults (*ppgcPageFaults)
     99#else
     100extern ULONG  pgcPageFaults;
     101#endif
     102
    63103
    64104/**
    65105 * Count of page faults currently being processed.
    66106 */
     107#ifdef KKRNLLIB
    67108extern PULONG ppgcPageFaultsActive;
    68109#define pgcPageFaultsActive (*ppgcPageFaultsActive)
     110#else
     111extern ULONG  pgcPageFaultsActive;
     112#endif
    69113
    70114
     
    73117 */
    74118ULONG KRNLCALL PGPhysAvail(void);
     119ULONG KRNLCALL OrgPGPhysAvail(void);
    75120
    76121
     
    79124 */
    80125ULONG KRNLCALL PGPhysPresent(void);
     126ULONG KRNLCALL OrgPGPhysPresent(void);
     127
     128
     129/**
     130 * This function returns a bit vector for the dirty pages of a specified context
     131 * for a specified range of pages.
     132 *
     133 * The dirty bits for the range are reset.
     134 *
     135 * @returns OS/2 return code. (NO_ERROR on success)
     136 * @param   ulVirtualPageNo     Virtual page fram number.
     137 * @param   pPTDA               Pointer to the context.
     138 * @param   cPages              Number of pages. (max 32-bit due to ulDirtyBits.)
     139 * @param   ulDirtyBits         Dirty bits.
     140 * @remark  VDM function... Not imported any longer.
     141 */
     142/*ULONG KRNLCALL PGGetDirty(ULONG ulVirtualPageNo, PPTDA pPTDA, ULONG cPages, PULONG ulDirtyBits);*/
     143/*ULONG KRNLCALL OrgPGGetDirty(ULONG ulVirtualPageNo, PPTDA pPTDA, ULONG cPages, PULONG ulDirtyBits);*/
     144
    81145
    82146#endif
  • trunk/src/win32k/kKrnlLib/include/OS2KPTDA.h

    r6701 r6815  
    1 /* $Id: OS2KPTDA.h,v 1.1 2001-09-14 01:50:15 bird Exp $
     1/* $Id: OS2KPTDA.h,v 1.2 2001-09-26 03:52:36 bird Exp $
    22 *
    33 * PTDA access functions.
    44 *
    5  * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
     5 * Copyright (c) 2000-2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
    66 *
    77 * Project Odin Software License can be found in LICENSE.TXT
     
    2727
    2828
     29#ifdef KKRNLLIB
    2930extern  PPPTDA      ppPTDACur;          /* Please access this only thru the ptdaGetCur() function. */
     31#else
     32extern  PPTDA       pPTDACur;           /* Please access this only thru the ptdaGetCur() function. */
     33#endif
    3034
    3135
     
    3943 */
    4044//PPTDA   ptdaGetCur(void);
     45#ifdef KKRNLLIB
    4146#define ptdaGetCur()                    (*ppPTDACur)
     47#else
     48#define ptdaGetCur()                    (pPTDACur)
     49#endif
     50
    4251
    4352
  • trunk/src/win32k/kKrnlLib/include/OS2KSEC.h

    r6701 r6815  
    1 /* $Id: OS2KSEC.h,v 1.1 2001-09-14 01:50:15 bird Exp $
     1/* $Id: OS2KSEC.h,v 1.2 2001-09-26 03:52:36 bird Exp $
    22 *
    33 * OS/2 Kernel Security helpers : prototypes, typedefs and macros.
     
    1717 */
    1818PSZ SECCALL SecPathFromSFN(SFN hFile);
     19PSZ SECCALL OrgSecPathFromSFN(SFN hFile);
    1920
    2021
  • trunk/src/win32k/kKrnlLib/include/OS2KSEM.h

    r6701 r6815  
    1 /* $Id: OS2KSEM.h,v 1.1 2001-09-14 01:50:15 bird Exp $
     1/* $Id: OS2KSEM.h,v 1.2 2001-09-26 03:52:36 bird Exp $
    22 *
    33 * OS/2 kernel Semaphore functions.
     
    156156 */
    157157extern ULONG KRNLCALL KSEMRequestMutex(HKSEMMTX hkmtx, ULONG ulTimeout);
     158extern ULONG KRNLCALL OrgKSEMRequestMutex(HKSEMMTX hkmtx, ULONG ulTimeout);
    158159extern VOID  KRNLCALL KSEMReleaseMutex(HKSEMMTX hkmtx);
     160extern VOID  KRNLCALL OrgKSEMReleaseMutex(HKSEMMTX hkmtx);
    159161extern ULONG KRNLCALL KSEMQueryMutex(HKSEMMTX hkmtx, PUSHORT pcusNest);
     162extern ULONG KRNLCALL OrgKSEMQueryMutex(HKSEMMTX hkmtx, PUSHORT pcusNest);
    160163
    161164
     
    180183#endif
    181184extern VOID  KRNLCALL KSEMInit(PKSEM pksem, ULONG fulType, ULONG fulFlags);
     185extern VOID  KRNLCALL OrgKSEMInit(PKSEM pksem, ULONG fulType, ULONG fulFlags);
    182186#if 0
    183187extern VOID  KRNLCALL KSEMQuery(HKSEM hksem, ULONG p2)
  • trunk/src/win32k/kKrnlLib/include/OS2KSM.h

    r6701 r6815  
    1 /* $Id: OS2KSM.h,v 1.1 2001-09-14 01:50:15 bird Exp $
     1/* $Id: OS2KSM.h,v 1.2 2001-09-26 03:52:36 bird Exp $
    22 *
    33 * OS/2 kernel swapper manager stuff.
     
    1818 *      <li> 0 - Swapping disabled. </ul>
    1919 */
     20#ifdef KKRNLLIB
    2021extern PSHORT       pSMswapping;
    2122#define SMswapping (*pSMswapping)
     23#else
     24extern SHORT        SMswapping;
     25#endif
     26
    2227
    2328/**
    2429 * Real swapper file size in disk frames (ie. pages).
    2530 */
     31#ifdef KKRNLLIB
    2632extern PULONG       psmFileSize;
    2733#define smFileSize (*psmFileSize)
     34#else
     35extern ULONG        smFileSize;
     36#endif
     37
    2838
    2939/**
    3040 * Number of broken disk frames.
    3141 */
     42#ifdef KKRNLLIB
    3243extern PULONG       psmcBrokenDF;
    3344#define smcBrokenDF (*psmcBrokenDF)
     45#else
     46extern ULONG        smcBrokenDF;
     47#endif
     48
    3449
    3550/**
    3651 * Number of disk frames (DF) currently in use.
    3752 */
     53#ifdef KKRNLLIB
    3854extern PULONG       pSMcDFInuse;
    3955#define SMcDFInuse (*pSMcDFInuse)
     56#else
     57extern ULONG        SMcDFInuse;
     58#endif
     59
    4060
    4161/**
     
    4464#define SMcDFAvail (smFileSize - smcBrokenDF - SMcDFInuse)
    4565
     66
    4667/**
    4768 * The minimum free space on the swap volume (in pages). (Addjusted SMCFGMinFree)
    4869 */
     70#ifdef KKRNLLIB
    4971extern PULONG       pSMMinFree;
    5072#define SMMinFree (*pSMMinFree)
     73#else
     74extern ULONG        SMMinFree;
     75#endif
     76
    5177
    5278/**
    5379 * The minimum free space on the swap volumen (in pages * 4) specified in config.sys.
    5480 */
     81#ifdef KKRNLLIB
    5582extern PULONG       pSMCFGMinFree;
    5683#define SMCFGMinFree (*pSMCFGMinFree)
     84#else
     85extern ULONG        SMCFGMinFree;
     86#endif
     87
    5788
    5889/**
    5990 * The initial swapfile size (in pages * 4) specified in config.sys.
    6091 */
     92#ifdef KKRNLLIB
    6193extern PULONG       pSMCFGSwapSize;
    6294#define SMCFGSwapSize  (*pSMCFGSwapSize)
     95#else
     96extern ULONG        SMCFGSwapSize;
     97#endif
     98
    6399
    64100/**
    65101 * Number of swapper grow attempt which has failed since boot.
    66102 */
     103#ifdef KKRNLLIB
    67104extern PULONG       psmcGrowFails;
    68105#define smcGrowFails (*psmcGrowFails)
     106#else
     107extern ULONG        smcGrowFails;
     108#endif
     109
    69110
    70111/**
     
    72113 * This count isn't counted into the SMcDFInuse count I think.
    73114 */
     115#ifdef KKRNLLIB
    74116extern PULONG       pSMcInMemFile;
    75117#define SMcInMemFile (*pSMcInMemFile)
     118#else
     119extern ULONG        SMcInMemFile;
     120#endif
    76121
    77122
  • trunk/src/win32k/kKrnlLib/include/OS2KTCB.h

    r6701 r6815  
    1 /* $Id: OS2KTCB.h,v 1.1 2001-09-14 01:50:16 bird Exp $
     1/* $Id: OS2KTCB.h,v 1.2 2001-09-26 03:52:37 bird Exp $
    22 *
    33 * TCB - Thread Control Block access methods.
     
    149149} TCB, *PTCB, **PPTCB;
    150150
     151#ifdef KKRNLLIB
    151152extern PPTCB    ppTCBCur;
     153#else
     154extern PTCB     pTCBCur;
     155#endif
    152156
    153157
     
    161165 *              NULL if not task-time.
    162166 */
     167#ifdef KKRNLLIB
    163168#define tcbGetCur()     *ppTCBCur
     169#else
     170#define tcbGetCur()     pTCBCur
     171#endif
    164172
    165173
  • trunk/src/win32k/kKrnlLib/include/OS2KTK.h

    r6701 r6815  
    1 /* $Id: OS2KTK.h,v 1.1 2001-09-14 01:50:16 bird Exp $
     1/* $Id: OS2KTK.h,v 1.2 2001-09-26 03:52:37 bird Exp $
    22 *
    33 * OS2KTK - OS/2 Kernel Task.
     
    9898 */
    9999extern ULONG KRNLCALL   TKFuBuff(PVOID pv, PVOID pvUsr, ULONG cb, ULONG fl);
     100extern ULONG KRNLCALL   OrgTKFuBuff(PVOID pv, PVOID pvUsr, ULONG cb, ULONG fl);
    100101
    101102
     
    109110 */
    110111extern ULONG KRNLCALL   TKSuBuff(PVOID pvUsr, PVOID pv, ULONG cb, ULONG fl);
     112extern ULONG KRNLCALL   OrgTKSuBuff(PVOID pvUsr, PVOID pv, ULONG cb, ULONG fl);
    111113
    112114
     
    122124 */
    123125extern ULONG KRNLCALL   TKFuBufLen(PLONG pcch, PVOID pvUsr, ULONG cchMax, ULONG fl, BOOL fDblNULL);
     126extern ULONG KRNLCALL   OrgTKFuBufLen(PLONG pcch, PVOID pvUsr, ULONG cchMax, ULONG fl, BOOL fDblNULL);
    124127
    125128
     
    133136 */
    134137extern ULONG KRNLCALL   TKSuFuBuff(PVOID pvTarget, PVOID pvSource, ULONG cb, ULONG fl);
     138extern ULONG KRNLCALL   OrgTKSuFuBuff(PVOID pvTarget, PVOID pvSource, ULONG cb, ULONG fl);
    135139
    136140
     
    144148 */
    145149extern ULONG KRNLCALL   TKPidToPTDA(PID pid, PPPTDA ppPTDA);
     150extern ULONG KRNLCALL   OrgTKPidToPTDA(PID pid, PPPTDA ppPTDA);
    146151#endif
    147152
     
    165170 */
    166171extern ULONG KRNLCALL   TKScanTasks(ULONG flFlags, ULONG id, PTKSCANTASKWORKER pfnWorker, ULONG ulArg);
     172extern ULONG KRNLCALL   OrgTKScanTasks(ULONG flFlags, ULONG id, PTKSCANTASKWORKER pfnWorker, ULONG ulArg);
    167173#endif
    168174
     
    170176/**
    171177 * Post signal to one or more processes.
    172  * @returns  NO_ERROR on success.
    173  *           On error ERROR_NOT_DESCENDANT, ERROR_SIGNAL_REFUSED,
    174  *           ERROR_INVALID_PROCID, ERROR_ZOMBIE_PROCESS, ERROR_SIGNAL_PENDING. (it seems)
    175  * @param    usSignal       Signal number.
    176  * @param    usAction       Action.
    177  *                          0 - the process and all children.
    178  *                          1 - only the process
    179  *                          2 - the process and all it's descendants.
    180  *                          3 - all processes in that screen group.
    181  * @param    usSignalArg    Signal argument.
    182  * @param    usPIDSGR       Process Id or Screen Group Id.
     178 * @returns NO_ERROR on success.
     179 *          On error ERROR_NOT_DESCENDANT, ERROR_SIGNAL_REFUSED,
     180 *          ERROR_INVALID_PROCID, ERROR_ZOMBIE_PROCESS, ERROR_SIGNAL_PENDING. (it seems)
     181 * @param   usSignal       Signal number.
     182 * @param   usAction       Action.
     183 *                         0 - the process and all children.
     184 *                         1 - only the process
     185 *                         2 - the process and all it's descendants.
     186 *                         3 - all processes in that screen group.
     187 * @param   usSignalArg    Signal argument.
     188 * @param   usPIDSGR       Process Id or Screen Group Id.
     189 * @remark  Win32k Internal call.
    183190 */
    184191extern ULONG _Optlink POST_SIGNAL32(USHORT usSignal, USHORT usAction, USHORT usSignalArg, USHORT usPIDSGR);
     
    196203 */
    197204extern void KRNLCALL TKForceThread(ULONG flFlag, PTCB pTCB);
     205extern void KRNLCALL OrgTKForceThread(ULONG flFlag, PTCB pTCB);
    198206#endif
    199207
     
    207215 */
    208216extern void KRNLCALL  TKForceTask(ULONG flFlag, PPTDA pPTDA, BOOL fForce);
     217extern void KRNLCALL  OrgTKForceTask(ULONG flFlag, PPTDA pPTDA, BOOL fForce);
    209218#endif
    210219
     
    216225 */
    217226extern ULONG KRNLCALL TKGetPriority(PTCB pTCB);
     227extern ULONG KRNLCALL OrgTKGetPriority(PTCB pTCB);
    218228#endif
    219229
     
    231241 */
    232242extern ULONG KRNLCALL TKSleep(ULONG ulSleepId, ULONG ulTimeout, ULONG fUnInterruptable, ULONG flWakeupType);
     243extern ULONG KRNLCALL OrgTKSleep(ULONG ulSleepId, ULONG ulTimeout, ULONG fUnInterruptable, ULONG flWakeupType);
    233244
    234245/**
     
    242253 */
    243254extern ULONG KRNLCALL TKWakeup(ULONG ulSleepId, ULONG flWakeupType, PULONG cWakedUp);
     255extern ULONG KRNLCALL OrgTKWakeup(ULONG ulSleepId, ULONG flWakeupType, PULONG cWakedUp);
    244256
    245257#ifdef INCL_OS2KRNL_TCB
     
    251263 */
    252264extern ULONG KRNLCALL TKWakeThread(PTCB pTCB);
     265extern ULONG KRNLCALL OrgTKWakeThread(PTCB pTCB);
    253266#endif
    254267
     
    262275 */
    263276extern PTCB  KRNLCALL TKQueryWakeup(ULONG ulSleepId, ULONG flWakeupType);
    264 #endif
    265 
    266 #endif
     277extern PTCB  KRNLCALL OrgTKQueryWakeup(ULONG ulSleepId, ULONG flWakeupType);
     278#endif
     279
     280#endif
  • trunk/src/win32k/kKrnlLib/include/OS2KVM.h

    r6701 r6815  
    1 /* $Id: OS2KVM.h,v 1.1 2001-09-14 01:50:16 bird Exp $
     1/* $Id: OS2KVM.h,v 1.2 2001-09-26 03:52:37 bird Exp $
    22 *
    33 * OS/2 kernel VM functions.
     
    225225 * Virtual Address Limit - this pointer might be NULL!
    226226 */
     227#ifdef KKRNLLIB
    227228extern ULONG *pVirtualAddressLimit;
    228 #define VirtualAddressLimit (pVirtualAddressLimit ? *pVirtualAddressLimit : 0x20000000)
     229#define VirtualAddressLimit (pVirtualAddressLimit ? *pVirtualAddressLimit : 0x20000000UL)
     230#else
     231extern ULONG VirtualAddressLimit;
     232#define VirtualAddressLimit (&VirtualAddressLimit ?  VirtualAddressLimit  : 0x20000000UL)
     233#endif
    229234
    230235/**
    231236 * System arena header.
    232237 */
     238#ifdef KKRNLLIB
    233239extern PVMAH pahvmSys;
    234240#define ahvmSys (*pahvmSys)
     241#else
     242extern VMAH ahvmSys;
     243#endif
    235244
    236245/**
    237246 * Shared arena header.
    238247 */
     248#ifdef KKRNLLIB
    239249extern PVMAH pahvmShr;
    240250#define ahvmShr (*pahvmShr)
     251#else
     252extern VMAH  ahvmShr;
     253#endif
    241254
    242255/**
    243256 * High Shread arena header - only aurora and Warp Server Advanced SMP.
    244  */
     257 * Check if &ahvmhShr is NULL!
     258 */
     259#ifdef KKRNLLIB
    245260extern PVMAH pahvmhShr;
    246261#define ahvmhShr (*pahvmhShr)
     262#else
     263extern VMAH  ahvmhShr;
     264#endif
    247265
    248266
     
    253271    ULONG ulCS,
    254272    ULONG ulEIP);
     273HMTE KRNLCALL OrgVMGetOwner(
     274    ULONG ulCS,
     275    ULONG ulEIP);
    255276
    256277APIRET KRNLCALL VMAllocMem(
     
    264285    ULONG   SomeArg2,
    265286    PVMAC   pvmac);
     287APIRET KRNLCALL OrgVMAllocMem(
     288    ULONG   cbSize,
     289    ULONG   cbCommit,
     290    ULONG   flFlags1,
     291    HPTDA   hPTDA,
     292    USHORT  usVMOwnerId,
     293    HMTE    hMTE,
     294    ULONG   flFlags2,
     295    ULONG   SomeArg2,
     296    PVMAC   pvmac);
    266297
    267298APIRET KRNLCALL VMFreeMem(
     299    ULONG   ulAddress,
     300    HPTDA   hPTDA,
     301    ULONG   flFlags);
     302APIRET KRNLCALL OrgVMFreeMem(
    268303    ULONG   ulAddress,
    269304    HPTDA   hPTDA,
     
    276311    HPTDA   hPTDA,
    277312    PVMAC   pvmac);
     313APIRET KRNLCALL OrgVMMapDebugAlias(
     314    ULONG   flVMFlags,
     315    ULONG   ulAddress,
     316    ULONG   cbSize,
     317    HPTDA   hPTDA,
     318    PVMAC   pvmac);
    278319
    279320APIRET KRNLCALL VMObjHandleInfo(
     
    281322    PULONG  pulAddr,
    282323    PUSHORT pushPTDA);
     324APIRET KRNLCALL OrgVMObjHandleInfo(
     325    USHORT  usHob,
     326    PULONG  pulAddr,
     327    PUSHORT pushPTDA);
    283328
    284329#ifdef _OS2KLDR_H_
    285330PMTE KRNLCALL VMPseudoHandleMap(
     331    HMTE    hMTE);
     332PMTE KRNLCALL OrgVMPseudoHandleMap(
    286333    HMTE    hMTE);
    287334#endif
     
    301348    ULONG   flFlags,
    302349    PULONG  pulSentinelAddress);
     350VOID    KRNLCALL OrgvmRecalcShrBound(
     351    ULONG   flFlags,
     352    PULONG  pulSentinelAddress);
    303353
    304354
     
    317367    VMHOB   usOwner,
    318368    PVMHOB  phob);
     369APIRET KRNLCALL OrgVMCreatePseudoHandle(
     370    PVOID   pvData,
     371    VMHOB   usOwner,
     372    PVMHOB  phob);
    319373
    320374
     
    327381APIRET KRNLCALL VMFreePseudoHandle(
    328382    VMHOB   hob);
    329 
    330 
    331 #endif
     383APIRET KRNLCALL OrgVMFreePseudoHandle(
     384    VMHOB   hob);
     385
     386
     387#endif
  • trunk/src/win32k/kKrnlLib/include/OS2Krnl.h

    r6797 r6815  
    1 /* $Id: OS2Krnl.h,v 1.2 2001-09-24 02:13:01 bird Exp $
     1/* $Id: OS2Krnl.h,v 1.3 2001-09-26 03:52:36 bird Exp $
    22 *
    33 * OS/2 kernel structures, typedefs and macros.
     
    8282    #define INCL_OS2KRNL_VM
    8383    #define INCL_OS2KRNL_VMOWNER
     84    #define INCL_OS2KRNL_SEL
    8485    #define INCL_OS2KRNL_SM
    8586    #define INCL_OS2KRNL_SEM
    8687    #define INCL_OS2KRNL_TK
    8788    #define INCL_OS2KRNL_PTDA
     89    #define INCL_OS2KRNL_PG
    8890    #define INCL_OS2KRNL_TCB
    8991    #define INCL_OS2KRNL_SEC
     
    107109#endif
    108110
    109 #ifdef INCL_OS2KRNL_PG
    110     #include <OS2KPG.h>
    111 #endif
    112 
    113111#ifdef INCL_OS2KRNL_SM
    114112    #include <OS2KSM.h>
     
    127125#endif
    128126
     127#ifdef INCL_OS2KRNL_PG
     128    #include <OS2KPG.h>
     129#endif
     130
     131#ifdef INCL_OS2KRNL_SEL
     132    #include <OS2KSEL.h>
     133#endif
     134
    129135#ifdef INCL_OS2KRNL_TK
    130136    #include <OS2KTK.h>
Note: See TracChangeset for help on using the changeset viewer.