Mercurial > ecos-v3_0-branch
annotate packages/hal/powerpc/pati/current/include/plf_stub.h @ 2830:3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
[ Bugzilla 1000694]
| author | jld |
|---|---|
| date | Wed, 25 Feb 2009 12:50:14 +0000 |
| parents | 74dbf4c3f2e1 |
| children |
| rev | line source |
|---|---|
|
2830
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
1 #ifndef CYGONCE_HAL_PLF_STUB_H |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
2 #define CYGONCE_HAL_PLF_STUB_H |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
3 |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
4 //============================================================================= |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
5 // |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
6 // plf_stub.h |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
7 // |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
8 // Platform header for GDB stub support. |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
9 // |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
10 //============================================================================= |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
11 // ####ECOSGPLCOPYRIGHTBEGIN#### |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
12 // ------------------------------------------- |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
13 // This file is part of eCos, the Embedded Configurable Operating System. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
14 // Copyright (C) 2008 Free Software Foundation, Inc. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
15 // |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
16 // eCos is free software; you can redistribute it and/or modify it under |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
17 // the terms of the GNU General Public License as published by the Free |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
18 // Software Foundation; either version 2 or (at your option) any later |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
19 // version. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
20 // |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
21 // eCos is distributed in the hope that it will be useful, but WITHOUT |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
22 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
23 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
24 // for more details. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
25 // |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
26 // You should have received a copy of the GNU General Public License |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
27 // along with eCos; if not, write to the Free Software Foundation, Inc., |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
28 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
29 // |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
30 // As a special exception, if other files instantiate templates or use |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
31 // macros or inline functions from this file, or you compile this file |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
32 // and link it with other works to produce a work based on this file, |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
33 // this file does not by itself cause the resulting work to be covered by |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
34 // the GNU General Public License. However the source code for this file |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
35 // must still be made available in accordance with section (3) of the GNU |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
36 // General Public License v2. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
37 // |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
38 // This exception does not invalidate any other reasons why a work based |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
39 // on this file might be covered by the GNU General Public License. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
40 // ------------------------------------------- |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2553
diff
changeset
|
41 // ####ECOSGPLCOPYRIGHTEND#### |
|
2830
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
42 //============================================================================= |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
43 //#####DESCRIPTIONBEGIN#### |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
44 // |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
45 // Author(s): Steven Clugston |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
46 // Original: Bob Koninckx |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
47 // Date: 2008-05-08 |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
48 // Purpose: Platform HAL stub support for PowerPC/PATI boards. |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
49 // Usage: #include <cyg/hal/plf_stub.h> |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
50 // |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
51 //####DESCRIPTIONEND#### |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
52 // |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
53 //============================================================================= |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
54 |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
55 #include <pkgconf/system.h> |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
56 #include <pkgconf/hal.h> |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
57 #include <pkgconf/hal_powerpc_pati.h> |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
58 |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
59 #ifdef CYGPKG_IO_SERIAL |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
60 #include <pkgconf/io_serial.h> |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
61 #endif |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
62 |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
63 #ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
64 |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
65 #include <cyg/infra/cyg_type.h> // CYG_UNUSED_PARAM, externC |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
66 |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
67 #include <cyg/hal/ppc_stub.h> // architecture stub support |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
68 |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
69 //---------------------------------------------------------------------------- |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
70 // Define some platform specific communication details. This is mostly |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
71 // handled by hal_if now, but we need to make sure the comms tables are |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
72 // properly initialized. |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
73 |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
74 externC void cyg_hal_plf_comms_init(void); |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
75 |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
76 #define HAL_STUB_PLATFORM_INIT_SERIAL() cyg_hal_plf_comms_init() |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
77 |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
78 #define HAL_STUB_PLATFORM_SET_BAUD_RATE(baud) CYG_UNUSED_PARAM(int, (baud)) |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
79 #define HAL_STUB_PLATFORM_INTERRUPTIBLE 0 |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
80 |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
81 //---------------------------------------------------------------------------- |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
82 // Stub initializer. |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
83 //---------------------------------------------------------------------------- |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
84 // Stub initializer. |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
85 extern void hal_plf_stub_init( void ); |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
86 #define HAL_STUB_PLATFORM_INIT() hal_plf_stub_init(); |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
87 |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
88 #endif // ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
89 externC void cyg_hal_plf_reset( void ); |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
90 //----------------------------------------------------------------------------- |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
91 #endif // CYGONCE_HAL_PLF_STUB_H |
|
3caad2060bd3
Strip erroneous CR chars from text files in the eCos repository.
jld
parents:
2729
diff
changeset
|
92 // End of plf_stub.h |
