[363] | 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_s.c,v 1.2 2003/06/30 15:58:39 takayuki Exp $
|
---|
| 51 | */
|
---|
| 52 |
|
---|
| 53 | /* this ALWAYS GENERATED file contains the RPC server 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 | #include "ATLDeviceManager.h"
|
---|
| 67 |
|
---|
| 68 | #define TYPE_FORMAT_STRING_SIZE 3
|
---|
| 69 | #define PROC_FORMAT_STRING_SIZE 29
|
---|
| 70 |
|
---|
| 71 | typedef struct _MIDL_TYPE_FORMAT_STRING
|
---|
| 72 | {
|
---|
| 73 | short Pad;
|
---|
| 74 | unsigned char Format[ TYPE_FORMAT_STRING_SIZE ];
|
---|
| 75 | } MIDL_TYPE_FORMAT_STRING;
|
---|
| 76 |
|
---|
| 77 | typedef struct _MIDL_PROC_FORMAT_STRING
|
---|
| 78 | {
|
---|
| 79 | short Pad;
|
---|
| 80 | unsigned char Format[ PROC_FORMAT_STRING_SIZE ];
|
---|
| 81 | } MIDL_PROC_FORMAT_STRING;
|
---|
| 82 |
|
---|
| 83 | extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;
|
---|
| 84 | extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;
|
---|
| 85 |
|
---|
| 86 | /* Standard interface: __MIDL_itf_ATLDeviceManager_0000, ver. 0.0,
|
---|
| 87 | GUID={0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} */
|
---|
| 88 |
|
---|
| 89 |
|
---|
| 90 | /* Standard interface: _IKernelEvents, ver. 0.0,
|
---|
| 91 | GUID={0x1353969D,0xE84F,0x463F,{0xB2,0x11,0x33,0x7E,0x9B,0xCF,0xB9,0x9E}} */
|
---|
| 92 |
|
---|
| 93 |
|
---|
| 94 | extern const MIDL_SERVER_INFO _IKernelEvents_ServerInfo;
|
---|
| 95 |
|
---|
| 96 | extern RPC_DISPATCH_TABLE _IKernelEvents_v0_0_DispatchTable;
|
---|
| 97 |
|
---|
| 98 | static const RPC_SERVER_INTERFACE _IKernelEvents___RpcServerInterface =
|
---|
| 99 | {
|
---|
| 100 | sizeof(RPC_SERVER_INTERFACE),
|
---|
| 101 | {{0x1353969D,0xE84F,0x463F,{0xB2,0x11,0x33,0x7E,0x9B,0xCF,0xB9,0x9E}},{0,0}},
|
---|
| 102 | {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
|
---|
| 103 | &_IKernelEvents_v0_0_DispatchTable,
|
---|
| 104 | 0,
|
---|
| 105 | 0,
|
---|
| 106 | 0,
|
---|
| 107 | &_IKernelEvents_ServerInfo,
|
---|
| 108 | 0
|
---|
| 109 | };
|
---|
| 110 | RPC_IF_HANDLE _IKernelEvents_v0_0_s_ifspec = (RPC_IF_HANDLE)& _IKernelEvents___RpcServerInterface;
|
---|
| 111 |
|
---|
| 112 | extern const MIDL_STUB_DESC _IKernelEvents_StubDesc;
|
---|
| 113 |
|
---|
| 114 |
|
---|
| 115 | static const MIDL_STUB_DESC _IKernelEvents_StubDesc =
|
---|
| 116 | {
|
---|
| 117 | (void __RPC_FAR *)& _IKernelEvents___RpcServerInterface,
|
---|
| 118 | MIDL_user_allocate,
|
---|
| 119 | MIDL_user_free,
|
---|
| 120 | 0,
|
---|
| 121 | 0,
|
---|
| 122 | 0,
|
---|
| 123 | 0,
|
---|
| 124 | 0,
|
---|
| 125 | __MIDL_TypeFormatString.Format,
|
---|
| 126 | 1, /* -error bounds_check flag */
|
---|
| 127 | 0x20000, /* Ndr library version */
|
---|
| 128 | 0,
|
---|
| 129 | 0x50100a4, /* MIDL Version 5.1.164 */
|
---|
| 130 | 0,
|
---|
| 131 | 0,
|
---|
| 132 | 0, /* notify & notify_flag routine table */
|
---|
| 133 | 1, /* Flags */
|
---|
| 134 | 0, /* Reserved3 */
|
---|
| 135 | 0, /* Reserved4 */
|
---|
| 136 | 0 /* Reserved5 */
|
---|
| 137 | };
|
---|
| 138 |
|
---|
| 139 | static RPC_DISPATCH_FUNCTION _IKernelEvents_table[] =
|
---|
| 140 | {
|
---|
| 141 | NdrServerCall2,
|
---|
| 142 | 0
|
---|
| 143 | };
|
---|
| 144 | RPC_DISPATCH_TABLE _IKernelEvents_v0_0_DispatchTable =
|
---|
| 145 | {
|
---|
| 146 | 1,
|
---|
| 147 | _IKernelEvents_table
|
---|
| 148 | };
|
---|
| 149 |
|
---|
| 150 | static const SERVER_ROUTINE _IKernelEvents_ServerRoutineTable[] =
|
---|
| 151 | {
|
---|
| 152 | (SERVER_ROUTINE)OnInterruptRequest
|
---|
| 153 | };
|
---|
| 154 |
|
---|
| 155 | static const unsigned short _IKernelEvents_FormatStringOffsetTable[] =
|
---|
| 156 | {
|
---|
| 157 | 0
|
---|
| 158 | };
|
---|
| 159 |
|
---|
| 160 | static const MIDL_SERVER_INFO _IKernelEvents_ServerInfo =
|
---|
| 161 | {
|
---|
| 162 | &_IKernelEvents_StubDesc,
|
---|
| 163 | _IKernelEvents_ServerRoutineTable,
|
---|
| 164 | __MIDL_ProcFormatString.Format,
|
---|
| 165 | _IKernelEvents_FormatStringOffsetTable,
|
---|
| 166 | 0,
|
---|
| 167 | 0,
|
---|
| 168 | 0,
|
---|
| 169 | 0
|
---|
| 170 | };
|
---|
| 171 |
|
---|
| 172 | #if !defined(__RPC_WIN32__)
|
---|
| 173 | #error Invalid build platform for this stub.
|
---|
| 174 | #endif
|
---|
| 175 |
|
---|
| 176 | #if !(TARGET_IS_NT40_OR_LATER)
|
---|
| 177 | #error You need a Windows NT 4.0 or later to run this stub because it uses these features:
|
---|
| 178 | #error -Oif or -Oicf, more than 32 methods in the interface.
|
---|
| 179 | #error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
|
---|
| 180 | #error This app will die there with the RPC_X_WRONG_STUB_VERSION error.
|
---|
| 181 | #endif
|
---|
| 182 |
|
---|
| 183 |
|
---|
| 184 | static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
|
---|
| 185 | {
|
---|
| 186 | 0,
|
---|
| 187 | {
|
---|
| 188 |
|
---|
| 189 | /* Procedure OnInterruptRequest */
|
---|
| 190 |
|
---|
| 191 | 0x33, /* FC_AUTO_HANDLE */
|
---|
| 192 | 0x48, /* Old Flags: */
|
---|
| 193 | /* 2 */ NdrFcLong( 0x0 ), /* 0 */
|
---|
| 194 | /* 6 */ NdrFcShort( 0x0 ), /* 0 */
|
---|
| 195 | #ifndef _ALPHA_
|
---|
| 196 | /* 8 */ NdrFcShort( 0x8 ), /* x86, MIPS, PPC Stack size/offset = 8 */
|
---|
| 197 | #else
|
---|
| 198 | NdrFcShort( 0x10 ), /* Alpha Stack size/offset = 16 */
|
---|
| 199 | #endif
|
---|
| 200 | /* 10 */ NdrFcShort( 0x8 ), /* 8 */
|
---|
| 201 | /* 12 */ NdrFcShort( 0x8 ), /* 8 */
|
---|
| 202 | /* 14 */ 0x4, /* Oi2 Flags: has return, */
|
---|
| 203 | 0x2, /* 2 */
|
---|
| 204 |
|
---|
| 205 | /* Parameter inhno */
|
---|
| 206 |
|
---|
| 207 | /* 16 */ NdrFcShort( 0x48 ), /* Flags: in, base type, */
|
---|
| 208 | #ifndef _ALPHA_
|
---|
| 209 | /* 18 */ NdrFcShort( 0x0 ), /* x86, MIPS, PPC Stack size/offset = 0 */
|
---|
| 210 | #else
|
---|
| 211 | NdrFcShort( 0x0 ), /* Alpha Stack size/offset = 0 */
|
---|
| 212 | #endif
|
---|
| 213 | /* 20 */ 0x8, /* FC_LONG */
|
---|
| 214 | 0x0, /* 0 */
|
---|
| 215 |
|
---|
| 216 | /* Return value */
|
---|
| 217 |
|
---|
| 218 | /* 22 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
|
---|
| 219 | #ifndef _ALPHA_
|
---|
| 220 | /* 24 */ NdrFcShort( 0x4 ), /* x86, MIPS, PPC Stack size/offset = 4 */
|
---|
| 221 | #else
|
---|
| 222 | NdrFcShort( 0x8 ), /* Alpha Stack size/offset = 8 */
|
---|
| 223 | #endif
|
---|
| 224 | /* 26 */ 0x8, /* FC_LONG */
|
---|
| 225 | 0x0, /* 0 */
|
---|
| 226 |
|
---|
| 227 | 0x0
|
---|
| 228 | }
|
---|
| 229 | };
|
---|
| 230 |
|
---|
| 231 | static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
|
---|
| 232 | {
|
---|
| 233 | 0,
|
---|
| 234 | {
|
---|
| 235 | NdrFcShort( 0x0 ), /* 0 */
|
---|
| 236 |
|
---|
| 237 | 0x0
|
---|
| 238 | }
|
---|
| 239 | };
|
---|