source-engine/common/quicktime_win32/DriverSynchronization.h

354 lines
6.9 KiB
C
Raw Normal View History

2020-04-22 16:56:21 +00:00
/*
File: DriverSynchronization.h
Contains: Driver Synchronization Interfaces.
Version: QuickTime 7.3
Copyright: (c) 2007 (c) 1985-2001 by Apple Computer, Inc., all rights reserved
Bugs?: For bug reports, consult the following page on
the World Wide Web:
http://developer.apple.com/bugreporter/
*/
#ifndef __DRIVERSYNCHRONIZATION__
#define __DRIVERSYNCHRONIZATION__
#ifndef __CONDITIONALMACROS__
#include <ConditionalMacros.h>
#endif
#ifndef __MACTYPES__
#include <MacTypes.h>
#endif
#if PRAGMA_ONCE
#pragma once
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if PRAGMA_IMPORT
#pragma import on
#endif
#if CALL_NOT_IN_CARBON
/*
* SynchronizeIO()
*
* Availability:
* Non-Carbon CFM: in DriverServicesLib 1.0 and later
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( void )
SynchronizeIO(void) ONEWORDINLINE(0x4E71);
#endif /* CALL_NOT_IN_CARBON */
/*
* CompareAndSwap()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( Boolean )
CompareAndSwap(
UInt32 oldVvalue,
UInt32 newValue,
UInt32 * OldValueAdr);
/*
* TestAndClear()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( Boolean )
TestAndClear(
UInt32 bit,
UInt8 * startAddress);
/*
* TestAndSet()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( Boolean )
TestAndSet(
UInt32 bit,
UInt8 * startAddress);
/*
* IncrementAtomic8()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( SInt8 )
IncrementAtomic8(SInt8 * value);
/*
* DecrementAtomic8()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( SInt8 )
DecrementAtomic8(SInt8 * value);
/*
* AddAtomic8()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( SInt8 )
AddAtomic8(
SInt32 amount,
SInt8 * value);
/*
* BitAndAtomic8()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( UInt8 )
BitAndAtomic8(
UInt32 mask,
UInt8 * value);
/*
* BitOrAtomic8()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( UInt8 )
BitOrAtomic8(
UInt32 mask,
UInt8 * value);
/*
* BitXorAtomic8()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( UInt8 )
BitXorAtomic8(
UInt32 mask,
UInt8 * value);
/*
* IncrementAtomic16()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( SInt16 )
IncrementAtomic16(SInt16 * value);
/*
* DecrementAtomic16()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( SInt16 )
DecrementAtomic16(SInt16 * value);
/*
* AddAtomic16()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( SInt16 )
AddAtomic16(
SInt32 amount,
SInt16 * value);
/*
* BitAndAtomic16()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( UInt16 )
BitAndAtomic16(
UInt32 mask,
UInt16 * value);
/*
* BitOrAtomic16()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( UInt16 )
BitOrAtomic16(
UInt32 mask,
UInt16 * value);
/*
* BitXorAtomic16()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( UInt16 )
BitXorAtomic16(
UInt32 mask,
UInt16 * value);
/*
* IncrementAtomic()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( SInt32 )
IncrementAtomic(SInt32 * value);
/*
* DecrementAtomic()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( SInt32 )
DecrementAtomic(SInt32 * value);
/*
* AddAtomic()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( SInt32 )
AddAtomic(
SInt32 amount,
SInt32 * value);
/*
* BitAndAtomic()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( UInt32 )
BitAndAtomic(
UInt32 mask,
UInt32 * value);
/*
* BitOrAtomic()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( UInt32 )
BitOrAtomic(
UInt32 mask,
UInt32 * value);
/*
* BitXorAtomic()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 8.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
*/
EXTERN_API_C( UInt32 )
BitXorAtomic(
UInt32 mask,
UInt32 * value);
#ifdef PRAGMA_IMPORT_OFF
#pragma import off
#elif PRAGMA_IMPORT
#pragma import reset
#endif
#ifdef __cplusplus
}
#endif
#endif /* __DRIVERSYNCHRONIZATION__ */