ReactOS  0.4.14-dev-317-g96040ec
spinlock.c
Go to the documentation of this file.
1 /*
2  * VideoPort driver
3  *
4  * Copyright (C) 2002, 2003, 2004 ReactOS Team
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  *
20  */
21 
22 #include "videoprt.h"
23 
24 #define NDEBUG
25 #include <debug.h>
26 
27 /*
28  * @implemented
29  */
30 
33  IN PVOID HwDeviceExtension,
35 {
36  TRACE_(VIDEOPRT, "VideoPortCreateSpinLock\n");
38  if (*SpinLock == NULL)
41  return NO_ERROR;
42 }
43 
44 /*
45  * @implemented
46  */
47 
50  IN PVOID HwDeviceExtension,
52 {
53  TRACE_(VIDEOPRT, "VideoPortDeleteSpinLock\n");
55  return NO_ERROR;
56 }
57 
58 /*
59  * @implemented
60  */
61 
62 VOID NTAPI
64  IN PVOID HwDeviceExtension,
67 {
68  TRACE_(VIDEOPRT, "VideoPortAcquireSpinLock\n");
70 }
71 
72 /*
73  * @implemented
74  */
75 
76 VOID NTAPI
78  IN PVOID HwDeviceExtension,
80 {
81  TRACE_(VIDEOPRT, "VideoPortAcquireSpinLockAtDpcLevel\n");
83 }
84 
85 /*
86  * @implemented
87  */
88 
89 VOID NTAPI
91  IN PVOID HwDeviceExtension,
94 {
95  TRACE_(VIDEOPRT, "VideoPortReleaseSpinLock\n");
97 }
98 
99 /*
100  * @implemented
101  */
102 
103 VOID NTAPI
105  IN PVOID HwDeviceExtension,
107 {
108  TRACE_(VIDEOPRT, "VideoPortReleaseSpinLockFromDpcLevel\n");
110 }
#define IN
Definition: typedefs.h:38
unsigned char * PUCHAR
Definition: retypes.h:3
VOID NTAPI KeAcquireSpinLockAtDpcLevel(IN PKSPIN_LOCK SpinLock)
Definition: spinlock.c:192
VOID NTAPI KeAcquireSpinLock(PKSPIN_LOCK SpinLock, PKIRQL OldIrql)
Definition: spinlock.c:50
#define ERROR_NOT_ENOUGH_MEMORY
Definition: dderror.h:7
KSPIN_LOCK * PKSPIN_LOCK
Definition: env_spec_w32.h:73
#define NO_ERROR
Definition: dderror.h:5
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK SpinLock
Definition: iofuncs.h:798
VOID NTAPI VideoPortAcquireSpinLock(IN PVOID HwDeviceExtension, IN PSPIN_LOCK SpinLock, OUT PUCHAR OldIrql)
Definition: spinlock.c:63
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
FORCEINLINE VOID KeInitializeSpinLock(_Out_ PKSPIN_LOCK SpinLock)
Definition: kefuncs.h:251
smooth NULL
Definition: ftsmooth.c:416
#define TRACE_(x)
Definition: compat.h:66
VOID NTAPI KeReleaseSpinLockFromDpcLevel(IN PKSPIN_LOCK SpinLock)
Definition: spinlock.c:215
VOID NTAPI VideoPortAcquireSpinLockAtDpcLevel(IN PVOID HwDeviceExtension, IN PSPIN_LOCK SpinLock)
Definition: spinlock.c:77
unsigned char UCHAR
Definition: xmlstorage.h:181
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql
Definition: kefuncs.h:803
#define ExAllocatePool(type, size)
Definition: fbtusb.h:44
struct _VIDEO_PORT_SPIN_LOCK * PSPIN_LOCK
Definition: video.h:156
VP_STATUS NTAPI VideoPortCreateSpinLock(IN PVOID HwDeviceExtension, OUT PSPIN_LOCK *SpinLock)
Definition: spinlock.c:32
ULONG KSPIN_LOCK
Definition: env_spec_w32.h:72
VOID NTAPI KeReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL NewIrql)
Definition: spinlock.c:73
VOID NTAPI VideoPortReleaseSpinLockFromDpcLevel(IN PVOID HwDeviceExtension, IN PSPIN_LOCK SpinLock)
Definition: spinlock.c:104
#define OUT
Definition: typedefs.h:39
VOID NTAPI VideoPortReleaseSpinLock(IN PVOID HwDeviceExtension, IN PSPIN_LOCK SpinLock, IN UCHAR NewIrql)
Definition: spinlock.c:90
LONG VP_STATUS
Definition: video.h:153
VP_STATUS NTAPI VideoPortDeleteSpinLock(IN PVOID HwDeviceExtension, IN PSPIN_LOCK SpinLock)
Definition: spinlock.c:49
#define ExFreePool(addr)
Definition: env_spec_w32.h:352
_Requires_lock_held_ SpinLock _Releases_lock_ SpinLock _In_ _IRQL_restores_ KIRQL NewIrql
Definition: ke.h:114