|
0
|
1 #ifndef CYGONCE_DEVS_COMMON_DEVICE_HXX |
|
|
2 #define CYGONCE_DEVS_COMMON_DEVICE_HXX |
|
|
3 |
|
|
4 //========================================================================== |
|
|
5 // |
|
|
6 // device.hxx |
|
|
7 // |
|
|
8 // Header file for the generic device data structure |
|
|
9 // |
|
|
10 //========================================================================== |
|
|
11 //####COPYRIGHTBEGIN#### |
|
|
12 // |
|
|
13 // ------------------------------------------- |
|
|
14 // The contents of this file are subject to the Cygnus eCos Public License |
|
|
15 // Version 1.0 (the "License"); you may not use this file except in |
|
|
16 // compliance with the License. You may obtain a copy of the License at |
|
|
17 // http://sourceware.cygnus.com/ecos |
|
|
18 // |
|
|
19 // Software distributed under the License is distributed on an "AS IS" |
|
|
20 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
|
21 // License for the specific language governing rights and limitations under |
|
|
22 // the License. |
|
|
23 // |
|
|
24 // The Original Code is eCos - Embedded Cygnus Operating System, released |
|
|
25 // September 30, 1998. |
|
|
26 // |
|
|
27 // The Initial Developer of the Original Code is Cygnus. Portions created |
|
|
28 // by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. |
|
|
29 // ------------------------------------------- |
|
|
30 // |
|
|
31 //####COPYRIGHTEND#### |
|
|
32 //========================================================================== |
|
|
33 //#####DESCRIPTIONBEGIN#### |
|
|
34 // |
|
|
35 // Author(s): proven |
|
|
36 // Contributors: proven |
|
|
37 // Date: 1998-04-20 |
|
|
38 // Purpose: Define Cyg_Device data structure |
|
|
39 // Description: This file contains the C++ class declaration of Cyg_Device. |
|
|
40 // Cyg_Device is the base class for all devices. |
|
|
41 // Usage: #include <cyg/devs/common/device.hxx> |
|
|
42 // |
|
|
43 //####DESCRIPTIONEND#### |
|
|
44 // |
|
|
45 //========================================================================== |
|
|
46 |
|
|
47 #include <cyg/kernel/ktypes.h> |
|
|
48 #include <cyg/infra/cyg_ass.h> // assertion macros |
|
|
49 #include <cyg/infra/cyg_trac.h> // tracing macros |
|
|
50 |
|
|
51 #include <cyg/devs/common/iorb.h> |
|
|
52 |
|
|
53 // ------------------------------------------------------------------------- |
|
|
54 // Cyg_Device |
|
|
55 |
|
|
56 class Cyg_Device |
|
|
57 { |
|
|
58 protected: |
|
|
59 |
|
|
60 // Accessor functions |
|
|
61 void |
|
|
62 set_iorb_pdevice( Cyg_IORB * iorb ) { iorb->set_pdevice( this ); } |
|
|
63 |
|
|
64 public: |
|
|
65 }; |
|
|
66 |
|
|
67 #endif // CYGONCE_DEVS_COMMON_DEVICE_HXX |
|
|
68 // End of device.hxx |
|
|
69 |