1 | /*
|
---|
2 | * TOPPERS/JSP Kernel
|
---|
3 | * Toyohashi Open Platform for Embedded Real-Time Systems/
|
---|
4 | * Just Standard Profile Kernel
|
---|
5 | *
|
---|
6 | * Copyright (C) 2000-2003 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.idl,v 1.6 2003/12/24 07:40:42 takayuki Exp $
|
---|
51 | */
|
---|
52 |
|
---|
53 | import "oaidl.idl";
|
---|
54 | import "ocidl.idl";
|
---|
55 |
|
---|
56 | [
|
---|
57 | object,
|
---|
58 | uuid(0FDFFA99-68D5-4BE0-8984-FB6A3A2C0AAC),
|
---|
59 | helpstring("IInformation Interface"),
|
---|
60 | pointer_default(unique)
|
---|
61 | ]
|
---|
62 | interface IInformation : IUnknown
|
---|
63 | {
|
---|
64 | };
|
---|
65 |
|
---|
66 | [
|
---|
67 | object,
|
---|
68 | uuid(6575FAAB-8750-42D2-ADDD-4BE764AA2767),
|
---|
69 | helpstring("IDevice Interface"),
|
---|
70 | pointer_default(unique)
|
---|
71 | ]
|
---|
72 | interface IDevice : IUnknown
|
---|
73 | {
|
---|
74 | [helpstring("Method IsValid")] HRESULT IsValid([out]BOOL * valid);
|
---|
75 | [helpstring("Method SetDeviceName")] HRESULT SetDeviceName([in]BSTR devname);
|
---|
76 | [helpstring("Method Map")] HRESULT Map([in]unsigned long address, [in]unsigned long size);
|
---|
77 | [helpstring("Method Unmap")] HRESULT Unmap([in]unsigned long address);
|
---|
78 | [helpstring("Method RaiseInterrupt")] HRESULT RaiseInterrupt([in]unsigned long inhno);
|
---|
79 | };
|
---|
80 |
|
---|
81 | [
|
---|
82 | uuid(DA93137D-FB52-4421-B95D-9077340AD03B),
|
---|
83 | helpstring("_IDeviceEvents Interface")
|
---|
84 | ]
|
---|
85 | interface _IDeviceEvents : IUnknown
|
---|
86 | {
|
---|
87 | [helpstring("Method OnRead")] HRESULT OnRead([in]long address, [in]long sz, [out,size_is(sz),length_is(sz)] byte data []);
|
---|
88 | [helpstring("Method OnWrite")] HRESULT OnWrite([in]long address, [in]long sz, [in,size_is(sz),length_is(sz)] byte data []);
|
---|
89 | [helpstring("Method OnKernelStart")] HRESULT OnKernelStart();
|
---|
90 | [helpstring("Method OnKernelExit")] HRESULT OnKernelExit();
|
---|
91 | };
|
---|
92 |
|
---|
93 | [
|
---|
94 | object,
|
---|
95 | uuid(D3E42099-3FDD-4A78-BDBD-4E57D362F5ED),
|
---|
96 | helpstring("IKernel Interface"),
|
---|
97 | pointer_default(unique)
|
---|
98 | ]
|
---|
99 | interface IKernel : IUnknown
|
---|
100 | {
|
---|
101 | [helpstring("Method Read")] HRESULT Read([in]unsigned long address, [in] unsigned long sz, [out,size_is(sz),length_is(sz)] byte data []);
|
---|
102 | [helpstring("Method IsValid")] HRESULT IsValid([out]BOOL * valid);
|
---|
103 | [helpstring("Method Write")] HRESULT Write([in]unsigned long address, [in]unsigned long sz, [in,size_is(sz),length_is(sz)] byte data []);
|
---|
104 | [helpstring("ã¡ã½ãã OnLogEvent")] HRESULT OnLogEvent([in] long sz, [in,size_is(sz), length_is(sz)] byte data []);
|
---|
105 | };
|
---|
106 |
|
---|
107 |
|
---|
108 | [
|
---|
109 | uuid(1353969D-E84F-463F-B211-337E9BCFB99E),
|
---|
110 | helpstring("_IKernelEvents Interface")
|
---|
111 | ]
|
---|
112 | interface _IKernelEvents : IUnknown
|
---|
113 | {
|
---|
114 | [helpstring("Method OnInterruptRequest")] HRESULT OnInterruptRequest([in]unsigned long inhno);
|
---|
115 | };
|
---|
116 |
|
---|
117 | [
|
---|
118 | uuid(11E125BE-FC60-4DC9-8393-DC393B556D06),
|
---|
119 | helpstring("_IInformationEvents Interface")
|
---|
120 | ]
|
---|
121 | interface _IInformationEvents : IUnknown
|
---|
122 | {
|
---|
123 | [helpstring("Method OnDeviceChanged")] HRESULT OnDeviceChanged(short reason, long devid, long extra);
|
---|
124 | [helpstring("Method OnKernelChanged")] HRESULT OnKernelChanged(short reason);
|
---|
125 | };
|
---|
126 | [
|
---|
127 | object,
|
---|
128 | uuid(395F900A-AC7E-4A78-9BC1-EE5EF76254FF),
|
---|
129 |
|
---|
130 | helpstring("IKernelLog Interface"),
|
---|
131 | pointer_default(unique)
|
---|
132 | ]
|
---|
133 | interface IKernelLog : IUnknown
|
---|
134 | {
|
---|
135 | };
|
---|
136 | [
|
---|
137 | uuid(35E35399-55ED-45FC-8F0B-4A1BC6CEA3F0),
|
---|
138 | helpstring("_IKernelLogEvents Interface")
|
---|
139 | ]
|
---|
140 | interface _IKernelLogEvents : IUnknown
|
---|
141 | {
|
---|
142 | [helpstring("ã¡ã½ãã OnKernelStart")] HRESULT OnKernelStart();
|
---|
143 | [helpstring("ã¡ã½ãã OnKernelExit")] HRESULT OnKernelExit();
|
---|
144 | [helpstring("ã¡ã½ãã OnLogEvent")] HRESULT OnLogEvent([in] long sz, [in, size_is(sz), length_is(sz)] byte data []);
|
---|
145 | };
|
---|
146 |
|
---|
147 | [
|
---|
148 | uuid(F15F5272-83F3-42C3-874C-E4FF2B904AC2),
|
---|
149 | version(1.0),
|
---|
150 | helpstring("Toppers JSP on Windows DeviceManager 1.0 Type Library")
|
---|
151 | ]
|
---|
152 | library ATLDEVICEMANAGERLib
|
---|
153 | {
|
---|
154 | importlib("stdole32.tlb");
|
---|
155 | importlib("stdole2.tlb");
|
---|
156 |
|
---|
157 | [
|
---|
158 | uuid(FEE2A68B-7F98-40E0-9853-183EE68BC7F8),
|
---|
159 | helpstring("Device Class")
|
---|
160 | ]
|
---|
161 | coclass Device
|
---|
162 | {
|
---|
163 | [default] interface IDevice;
|
---|
164 | [default, source] interface _IDeviceEvents;
|
---|
165 | };
|
---|
166 |
|
---|
167 |
|
---|
168 | [
|
---|
169 | uuid(D7AAF617-008A-4961-BB51-041CFD490ED3),
|
---|
170 | helpstring("Information Class")
|
---|
171 | ]
|
---|
172 | coclass Information
|
---|
173 | {
|
---|
174 | [default] interface IInformation;
|
---|
175 | [default, source] interface _IInformationEvents;
|
---|
176 | };
|
---|
177 |
|
---|
178 |
|
---|
179 | [
|
---|
180 | uuid(51789667-9F20-40AF-AF7F-9856325DFB0B),
|
---|
181 | helpstring("Kernel Class")
|
---|
182 | ]
|
---|
183 | coclass Kernel
|
---|
184 | {
|
---|
185 | [default] interface IKernel;
|
---|
186 | [default, source] interface _IKernelEvents;
|
---|
187 | };
|
---|
188 |
|
---|
189 | [
|
---|
190 | uuid(4BD327FC-9E4A-4A5D-9503-27C979A8E802),
|
---|
191 | helpstring("KernelLog Class")
|
---|
192 | ]
|
---|
193 | coclass KernelLog
|
---|
194 | {
|
---|
195 | [default] interface IKernelLog;
|
---|
196 | [default, source] dispinterface _IKernelLogEvents;
|
---|
197 | };
|
---|
198 | };
|
---|