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: device.idl,v 1.4 2003/12/20 09:19:59 takayuki Exp $
|
---|
51 | */
|
---|
52 |
|
---|
53 | import "oaidl.idl";
|
---|
54 | import "ocidl.idl";
|
---|
55 | #include "olectl.h"
|
---|
56 |
|
---|
57 |
|
---|
58 | [
|
---|
59 | object,
|
---|
60 | uuid(6998EBB2-678E-4891-8BD0-C34F165488AC),
|
---|
61 | dual,
|
---|
62 | helpstring("IDeviceControl Interface"),
|
---|
63 | pointer_default(unique)
|
---|
64 | ]
|
---|
65 | interface IDeviceControl : IDispatch
|
---|
66 | {
|
---|
67 | [id(1), helpstring("Make a connection with the device manager")] HRESULT Connect();
|
---|
68 | [id(2), helpstring("Disconnect a device manager")] HRESULT Close();
|
---|
69 | [propget, id(3), helpstring("Turn true if this device is enabled")] HRESULT Valid([out, retval] BOOL *pVal);
|
---|
70 | [id(4), helpstring("Make a interrupt request to the kernel")] HRESULT RaiseInterrupt([in]long inhno);
|
---|
71 | [id(5), helpstring("Make a address mapping on the manager")] HRESULT Map([in]long address,[in]long size);
|
---|
72 | [id(6), helpstring("Release a address mapping on the manager")] HRESULT Unmap([in]long address);
|
---|
73 | [propget, id(7), helpstring("Turn true if the kernel is running")] HRESULT IsKernelStarted([out, retval] BOOL *pVal);
|
---|
74 | [propget, id(8), helpstring("Internal Buffer offset")] HRESULT Offset([out, retval] long *pVal);
|
---|
75 | [propput, id(8), helpstring("Internal Buffer offset")] HRESULT Offset([in] long newVal);
|
---|
76 | [propget, id(9), helpstring("Access Width of Internal Buffer")] HRESULT AccessSize([out, retval] short *pVal);
|
---|
77 | [propput, id(9), helpstring("Access width of internal buffer")] HRESULT AccessSize([in] short newVal);
|
---|
78 | [propget, id(10), helpstring("Value of current scope of internal buffer")] HRESULT Value([out, retval] long *pVal);
|
---|
79 | [propput, id(10), helpstring("Value of current scope of internal buffer")] HRESULT Value([in] long newVal);
|
---|
80 | [propget, id(11), helpstring("ããããã£DeviceName")] HRESULT DeviceName([out, retval] BSTR* pVal);
|
---|
81 | [propput, id(11), helpstring("ããããã£DeviceName")] HRESULT DeviceName([in] BSTR newVal);
|
---|
82 | };
|
---|
83 |
|
---|
84 | [
|
---|
85 | uuid(194B359F-594E-4EE4-A804-84723D1CF1C4),
|
---|
86 | version(1.0),
|
---|
87 | helpstring("TOPPERS/JSP on Windows Device Component Type Library")
|
---|
88 | ]
|
---|
89 | library ATLDEVICELib
|
---|
90 | {
|
---|
91 | importlib("stdole32.tlb");
|
---|
92 | importlib("stdole2.tlb");
|
---|
93 |
|
---|
94 | [
|
---|
95 | uuid(49253060-4210-43A1-8EA2-3A97587C89B9),
|
---|
96 | helpstring("_IDeviceControlEvents Interface")
|
---|
97 | ]
|
---|
98 | dispinterface _IDeviceControlEvents
|
---|
99 | {
|
---|
100 | properties:
|
---|
101 | methods:
|
---|
102 | [id(1), helpstring("Read event notification")] HRESULT OnRead([in] long address, [in] long sz);
|
---|
103 | [id(2), helpstring("Write event notification")] HRESULT OnWrite([in] long address, [in] long sz);
|
---|
104 | [id(3), helpstring("Kernel start notification")] HRESULT OnKernelStart();
|
---|
105 | [id(4), helpstring("Kernel completion notification")] HRESULT OnKernelExit();
|
---|
106 | };
|
---|
107 |
|
---|
108 | [
|
---|
109 | uuid(D6626115-E35B-4B38-BC65-3E59D5535AD4),
|
---|
110 | helpstring("DeviceControl Class")
|
---|
111 | ]
|
---|
112 | coclass DeviceControl
|
---|
113 | {
|
---|
114 | [default] interface IDeviceControl;
|
---|
115 | [default, source] dispinterface _IDeviceControlEvents;
|
---|
116 | };
|
---|
117 | };
|
---|