1 | /*
|
---|
2 | * TOPPERS/JSP Kernel
|
---|
3 | * Toyohashi Open Platform for Embedded Real-Time Systems/
|
---|
4 | * Just Standard Profile Kernel
|
---|
5 | *
|
---|
6 | * Copyright (C) 2000 by Embedded and Real-Time Systems Laboratory
|
---|
7 | * Toyohashi Univ. of Technology, JAPAN
|
---|
8 | *
|
---|
9 | * ä¸è¨è使¨©è
|
---|
10 | ã¯ï¼ä»¥ä¸ã® (1)ã(4) ã®æ¡ä»¶ãï¼Free Software Foundation
|
---|
11 | * ã«ãã£ã¦å
|
---|
12 | ¬è¡¨ããã¦ãã GNU General Public License ã® Version 2 ã«è¨
|
---|
13 | * è¿°ããã¦ããæ¡ä»¶ãæºããå ´åã«éãï¼æ¬ã½ããã¦ã§ã¢ï¼æ¬ã½ããã¦ã§ã¢
|
---|
14 | * ãæ¹å¤ãããã®ãå«ãï¼ä»¥ä¸åãï¼ã使ç¨ã»è¤è£½ã»æ¹å¤ã»åé
|
---|
15 | å¸ï¼ä»¥ä¸ï¼
|
---|
16 | * å©ç¨ã¨å¼ã¶ï¼ãããã¨ãç¡åã§è¨±è«¾ããï¼
|
---|
17 | * (1) æ¬ã½ããã¦ã§ã¢ãã½ã¼ã¹ã³ã¼ãã®å½¢ã§å©ç¨ããå ´åã«ã¯ï¼ä¸è¨ã®èä½
|
---|
18 | * 権表示ï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãï¼ãã®ã¾ã¾ã®å½¢ã§ã½ã¼
|
---|
19 | * ã¹ã³ã¼ãä¸ã«å«ã¾ãã¦ãããã¨ï¼
|
---|
20 | * (2) æ¬ã½ããã¦ã§ã¢ãï¼ã©ã¤ãã©ãªå½¢å¼ãªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿
|
---|
21 | * ç¨ã§ããå½¢ã§åé
|
---|
22 | å¸ããå ´åã«ã¯ï¼åé
|
---|
23 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨
|
---|
24 | * è
|
---|
25 | ããã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®è使¨©è¡¨ç¤ºï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨
|
---|
26 | * ã®ç¡ä¿è¨¼è¦å®ãæ²è¼ãããã¨ï¼
|
---|
27 | * (3) æ¬ã½ããã¦ã§ã¢ãï¼æ©å¨ã«çµã¿è¾¼ããªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿
|
---|
28 | * ç¨ã§ããªãå½¢ã§åé
|
---|
29 | å¸ããå ´åã«ã¯ï¼æ¬¡ã®ããããã®æ¡ä»¶ãæºããã
|
---|
30 | * ã¨ï¼
|
---|
31 | * (a) åé
|
---|
32 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨è
|
---|
33 | ããã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®è
|
---|
34 | * 使¨©è¡¨ç¤ºï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãæ²è¼ãããã¨ï¼
|
---|
35 | * (b) åé
|
---|
36 | å¸ã®å½¢æ
|
---|
37 | ãï¼å¥ã«å®ããæ¹æ³ã«ãã£ã¦ï¼TOPPERSããã¸ã§ã¯ãã«
|
---|
38 | * å ±åãããã¨ï¼
|
---|
39 | * (4) æ¬ã½ããã¦ã§ã¢ã®å©ç¨ã«ããç´æ¥çã¾ãã¯éæ¥çã«çãããããªãæ
|
---|
40 | * 害ãããï¼ä¸è¨è使¨©è
|
---|
41 | ããã³TOPPERSããã¸ã§ã¯ããå
|
---|
42 | 責ãããã¨ï¼
|
---|
43 | *
|
---|
44 | * æ¬ã½ããã¦ã§ã¢ã¯ï¼ç¡ä¿è¨¼ã§æä¾ããã¦ãããã®ã§ããï¼ä¸è¨è使¨©è
|
---|
45 | ã
|
---|
46 | * ãã³TOPPERSããã¸ã§ã¯ãã¯ï¼æ¬ã½ããã¦ã§ã¢ã«é¢ãã¦ï¼ãã®é©ç¨å¯è½æ§ã
|
---|
47 | * å«ãã¦ï¼ãããªãä¿è¨¼ãè¡ããªãï¼ã¾ãï¼æ¬ã½ããã¦ã§ã¢ã®å©ç¨ã«ããç´
|
---|
48 | * æ¥çã¾ãã¯éæ¥çã«çãããããªãæå®³ã«é¢ãã¦ãï¼ãã®è²¬ä»»ãè² ããªãï¼
|
---|
49 | *
|
---|
50 | * @(#) $Id: devicemanager_c.c,v 1.2 2003/06/30 15:58:39 takayuki Exp $
|
---|
51 | */
|
---|
52 |
|
---|
53 | /* this ALWAYS GENERATED file contains the RPC client stubs */
|
---|
54 |
|
---|
55 |
|
---|
56 | /* File created by MIDL compiler version 5.01.0164 */
|
---|
57 | /* at Sat Dec 30 17:42:51 2000
|
---|
58 | */
|
---|
59 | /* Compiler settings for D:\Sources\Program sources\TOPPERS\ATLDevice\ATLDeviceManager\ATLDeviceManager.idl:
|
---|
60 | Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
|
---|
61 | error checks: allocation ref bounds_check enum stub_data
|
---|
62 | */
|
---|
63 | //@@MIDL_FILE_HEADING( )
|
---|
64 |
|
---|
65 | #include <string.h>
|
---|
66 | #if defined( _ALPHA_ )
|
---|
67 | #include <stdarg.h>
|
---|
68 | #endif
|
---|
69 |
|
---|
70 | #include <malloc.h>
|
---|
71 | #include "ATLDeviceManager.h"
|
---|
72 |
|
---|
73 | #define TYPE_FORMAT_STRING_SIZE 3
|
---|
74 | #define PROC_FORMAT_STRING_SIZE 29
|
---|
75 |
|
---|
76 | typedef struct _MIDL_TYPE_FORMAT_STRING
|
---|
77 | {
|
---|
78 | short Pad;
|
---|
79 | unsigned char Format[ TYPE_FORMAT_STRING_SIZE ];
|
---|
80 | } MIDL_TYPE_FORMAT_STRING;
|
---|
81 |
|
---|
82 | typedef struct _MIDL_PROC_FORMAT_STRING
|
---|
83 | {
|
---|
84 | short Pad;
|
---|
85 | unsigned char Format[ PROC_FORMAT_STRING_SIZE ];
|
---|
86 | } MIDL_PROC_FORMAT_STRING;
|
---|
87 |
|
---|
88 |
|
---|
89 | extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;
|
---|
90 | extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;
|
---|
91 |
|
---|
92 | /* Standard interface: __MIDL_itf_ATLDeviceManager_0000, ver. 0.0,
|
---|
93 | GUID={0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} */
|
---|
94 |
|
---|
95 |
|
---|
96 | /* Standard interface: _IKernelEvents, ver. 0.0,
|
---|
97 | GUID={0x1353969D,0xE84F,0x463F,{0xB2,0x11,0x33,0x7E,0x9B,0xCF,0xB9,0x9E}} */
|
---|
98 |
|
---|
99 |
|
---|
100 |
|
---|
101 | static const RPC_CLIENT_INTERFACE _IKernelEvents___RpcClientInterface =
|
---|
102 | {
|
---|
103 | sizeof(RPC_CLIENT_INTERFACE),
|
---|
104 | {{0x1353969D,0xE84F,0x463F,{0xB2,0x11,0x33,0x7E,0x9B,0xCF,0xB9,0x9E}},{0,0}},
|
---|
105 | {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
|
---|
106 | 0,
|
---|
107 | 0,
|
---|
108 | 0,
|
---|
109 | 0,
|
---|
110 | 0,
|
---|
111 | 0
|
---|
112 | };
|
---|
113 | RPC_IF_HANDLE _IKernelEvents_v0_0_c_ifspec = (RPC_IF_HANDLE)& _IKernelEvents___RpcClientInterface;
|
---|
114 |
|
---|
115 | extern const MIDL_STUB_DESC _IKernelEvents_StubDesc;
|
---|
116 |
|
---|
117 | static RPC_BINDING_HANDLE _IKernelEvents__MIDL_AutoBindHandle;
|
---|
118 |
|
---|
119 |
|
---|
120 | /* [helpstring] */ HRESULT OnInterruptRequest(
|
---|
121 | /* [in] */ unsigned long inhno)
|
---|
122 | {
|
---|
123 |
|
---|
124 | CLIENT_CALL_RETURN _RetVal;
|
---|
125 |
|
---|
126 |
|
---|
127 | #if defined( _ALPHA_ )
|
---|
128 | va_list vlist;
|
---|
129 | #endif
|
---|
130 |
|
---|
131 | #if defined( _ALPHA_ )
|
---|
132 | va_start(vlist,inhno);
|
---|
133 | _RetVal = NdrClientCall2(
|
---|
134 | ( PMIDL_STUB_DESC )&_IKernelEvents_StubDesc,
|
---|
135 | (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0],
|
---|
136 | vlist.a0);
|
---|
137 | #elif defined( _PPC_ ) || defined( _MIPS_ )
|
---|
138 |
|
---|
139 | _RetVal = NdrClientCall2(
|
---|
140 | ( PMIDL_STUB_DESC )&_IKernelEvents_StubDesc,
|
---|
141 | (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0],
|
---|
142 | ( unsigned char __RPC_FAR * )&inhno);
|
---|
143 | #else
|
---|
144 | _RetVal = NdrClientCall2(
|
---|
145 | ( PMIDL_STUB_DESC )&_IKernelEvents_StubDesc,
|
---|
146 | (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0],
|
---|
147 | ( unsigned char __RPC_FAR * )&inhno);
|
---|
148 | #endif
|
---|
149 | return ( HRESULT )_RetVal.Simple;
|
---|
150 |
|
---|
151 | }
|
---|
152 |
|
---|
153 |
|
---|
154 | static const MIDL_STUB_DESC _IKernelEvents_StubDesc =
|
---|
155 | {
|
---|
156 | (void __RPC_FAR *)& _IKernelEvents___RpcClientInterface,
|
---|
157 | MIDL_user_allocate,
|
---|
158 | MIDL_user_free,
|
---|
159 | &_IKernelEvents__MIDL_AutoBindHandle,
|
---|
160 | 0,
|
---|
161 | 0,
|
---|
162 | 0,
|
---|
163 | 0,
|
---|
164 | __MIDL_TypeFormatString.Format,
|
---|
165 | 1, /* -error bounds_check flag */
|
---|
166 | 0x20000, /* Ndr library version */
|
---|
167 | 0,
|
---|
168 | 0x50100a4, /* MIDL Version 5.1.164 */
|
---|
169 | 0,
|
---|
170 | 0,
|
---|
171 | 0, /* notify & notify_flag routine table */
|
---|
172 | 1, /* Flags */
|
---|
173 | 0, /* Reserved3 */
|
---|
174 | 0, /* Reserved4 */
|
---|
175 | 0 /* Reserved5 */
|
---|
176 | };
|
---|
177 |
|
---|
178 | #if !defined(__RPC_WIN32__)
|
---|
179 | #error Invalid build platform for this stub.
|
---|
180 | #endif
|
---|
181 |
|
---|
182 | #if !(TARGET_IS_NT40_OR_LATER)
|
---|
183 | #error You need a Windows NT 4.0 or later to run this stub because it uses these features:
|
---|
184 | #error -Oif or -Oicf, more than 32 methods in the interface.
|
---|
185 | #error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
|
---|
186 | #error This app will die there with the RPC_X_WRONG_STUB_VERSION error.
|
---|
187 | #endif
|
---|
188 |
|
---|
189 |
|
---|
190 | static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
|
---|
191 | {
|
---|
192 | 0,
|
---|
193 | {
|
---|
194 |
|
---|
195 | /* Procedure OnInterruptRequest */
|
---|
196 |
|
---|
197 | 0x33, /* FC_AUTO_HANDLE */
|
---|
198 | 0x48, /* Old Flags: */
|
---|
199 | /* 2 */ NdrFcLong( 0x0 ), /* 0 */
|
---|
200 | /* 6 */ NdrFcShort( 0x0 ), /* 0 */
|
---|
201 | #ifndef _ALPHA_
|
---|
202 | /* 8 */ NdrFcShort( 0x8 ), /* x86, MIPS, PPC Stack size/offset = 8 */
|
---|
203 | #else
|
---|
204 | NdrFcShort( 0x10 ), /* Alpha Stack size/offset = 16 */
|
---|
205 | #endif
|
---|
206 | /* 10 */ NdrFcShort( 0x8 ), /* 8 */
|
---|
207 | /* 12 */ NdrFcShort( 0x8 ), /* 8 */
|
---|
208 | /* 14 */ 0x4, /* Oi2 Flags: has return, */
|
---|
209 | 0x2, /* 2 */
|
---|
210 |
|
---|
211 | /* Parameter inhno */
|
---|
212 |
|
---|
213 | /* 16 */ NdrFcShort( 0x48 ), /* Flags: in, base type, */
|
---|
214 | #ifndef _ALPHA_
|
---|
215 | /* 18 */ NdrFcShort( 0x0 ), /* x86, MIPS, PPC Stack size/offset = 0 */
|
---|
216 | #else
|
---|
217 | NdrFcShort( 0x0 ), /* Alpha Stack size/offset = 0 */
|
---|
218 | #endif
|
---|
219 | /* 20 */ 0x8, /* FC_LONG */
|
---|
220 | 0x0, /* 0 */
|
---|
221 |
|
---|
222 | /* Return value */
|
---|
223 |
|
---|
224 | /* 22 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
|
---|
225 | #ifndef _ALPHA_
|
---|
226 | /* 24 */ NdrFcShort( 0x4 ), /* x86, MIPS, PPC Stack size/offset = 4 */
|
---|
227 | #else
|
---|
228 | NdrFcShort( 0x8 ), /* Alpha Stack size/offset = 8 */
|
---|
229 | #endif
|
---|
230 | /* 26 */ 0x8, /* FC_LONG */
|
---|
231 | 0x0, /* 0 */
|
---|
232 |
|
---|
233 | 0x0
|
---|
234 | }
|
---|
235 | };
|
---|
236 |
|
---|
237 | static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
|
---|
238 | {
|
---|
239 | 0,
|
---|
240 | {
|
---|
241 | NdrFcShort( 0x0 ), /* 0 */
|
---|
242 |
|
---|
243 | 0x0
|
---|
244 | }
|
---|
245 | };
|
---|