1 |
27 |
unneback |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# hal_i386_pcmb.cdl
|
4 |
|
|
#
|
5 |
|
|
# PC Motherboard HAL package configuration data
|
6 |
|
|
#
|
7 |
|
|
# ====================================================================
|
8 |
|
|
#####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
## -------------------------------------------
|
10 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
12 |
|
|
## Copyright (C) 2002 Gary Thomas
|
13 |
|
|
##
|
14 |
|
|
## eCos is free software; you can redistribute it and/or modify it under
|
15 |
|
|
## the terms of the GNU General Public License as published by the Free
|
16 |
|
|
## Software Foundation; either version 2 or (at your option) any later version.
|
17 |
|
|
##
|
18 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
19 |
|
|
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
20 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
21 |
|
|
## for more details.
|
22 |
|
|
##
|
23 |
|
|
## You should have received a copy of the GNU General Public License along
|
24 |
|
|
## with eCos; if not, write to the Free Software Foundation, Inc.,
|
25 |
|
|
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
26 |
|
|
##
|
27 |
|
|
## As a special exception, if other files instantiate templates or use macros
|
28 |
|
|
## or inline functions from this file, or you compile this file and link it
|
29 |
|
|
## with other works to produce a work based on this file, this file does not
|
30 |
|
|
## by itself cause the resulting work to be covered by the GNU General Public
|
31 |
|
|
## License. However the source code for this file must still be made available
|
32 |
|
|
## in accordance with section (3) of the GNU General Public License.
|
33 |
|
|
##
|
34 |
|
|
## This exception does not invalidate any other reasons why a work based on
|
35 |
|
|
## this file might be covered by the GNU General Public License.
|
36 |
|
|
##
|
37 |
|
|
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
38 |
|
|
## at http://sources.redhat.com/ecos/ecos-license/
|
39 |
|
|
## -------------------------------------------
|
40 |
|
|
#####ECOSGPLCOPYRIGHTEND####
|
41 |
|
|
# ====================================================================
|
42 |
|
|
######DESCRIPTIONBEGIN####
|
43 |
|
|
#
|
44 |
|
|
# Author(s): jskov
|
45 |
|
|
# Original data: jskov
|
46 |
|
|
# Contributors: nickg, gthomas
|
47 |
|
|
# Date: 1999-11-01
|
48 |
|
|
#
|
49 |
|
|
#####DESCRIPTIONEND####
|
50 |
|
|
#
|
51 |
|
|
# ====================================================================
|
52 |
|
|
|
53 |
|
|
cdl_package CYGPKG_HAL_I386_PCMB {
|
54 |
|
|
display "i386 PC Motherboard Support"
|
55 |
|
|
parent CYGPKG_HAL_I386
|
56 |
|
|
define_header hal_i386_pcmb.h
|
57 |
|
|
include_dir cyg/hal
|
58 |
|
|
description "
|
59 |
|
|
The i386 PC Motherboard HAL package provides the
|
60 |
|
|
support needed to run eCos binaries on an i386 PC
|
61 |
|
|
using a standard motherboard. This package provides
|
62 |
|
|
support for the standard PC devices: timers, interrupt
|
63 |
|
|
controller, serial ports, ASCII display, keyboard, PCI
|
64 |
|
|
bus etc. that are found on all PC compatible platforms.
|
65 |
|
|
It does not provide support for devices that may also be
|
66 |
|
|
found on modern motherboards, such as ethernet, sound and
|
67 |
|
|
video devices. These are supported by drivers elsewhere."
|
68 |
|
|
|
69 |
|
|
compile pcmb_misc.c pcmb_serial.c
|
70 |
|
|
|
71 |
|
|
implements CYGINT_HAL_I386_MEM_REAL_REGION_TOP
|
72 |
|
|
implements CYGINT_HAL_PLF_IF_IDE
|
73 |
|
|
|
74 |
|
|
# Real-time clock/counter specifics
|
75 |
|
|
cdl_component CYGNUM_HAL_RTC_CONSTANTS {
|
76 |
|
|
display "Real-time clock constants."
|
77 |
|
|
description "The RTC period is based on the clock input
|
78 |
|
|
to the 8254, which is 1193180 Hz.
|
79 |
|
|
CYGNUM_HAL_RTC_PERIOD is set for 100 ticks
|
80 |
|
|
per second."
|
81 |
|
|
flavor none
|
82 |
|
|
|
83 |
|
|
cdl_option CYGNUM_HAL_RTC_NUMERATOR {
|
84 |
|
|
display "Real-time clock numerator"
|
85 |
|
|
flavor data
|
86 |
|
|
calculated 1000000000
|
87 |
|
|
}
|
88 |
|
|
cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
|
89 |
|
|
display "Real-time clock denominator"
|
90 |
|
|
flavor data
|
91 |
|
|
calculated 100
|
92 |
|
|
}
|
93 |
|
|
cdl_option CYGNUM_HAL_RTC_PERIOD {
|
94 |
|
|
display "Real-time clock period"
|
95 |
|
|
flavor data
|
96 |
|
|
calculated 11932
|
97 |
|
|
}
|
98 |
|
|
}
|
99 |
|
|
|
100 |
|
|
cdl_component CYGPKG_HAL_I386_PCMB_MEMSIZE {
|
101 |
|
|
display "How to discover the size of available RAM."
|
102 |
|
|
flavor data
|
103 |
|
|
legal_values {"BIOS" "HARDCODE"}
|
104 |
|
|
default_value {"BIOS"}
|
105 |
|
|
description "It is possible for the HAL to discover the
|
106 |
|
|
size of RAM In several ways. Currently this
|
107 |
|
|
can be done by querying the BIOS or by
|
108 |
|
|
hardcoding the values into the executable."
|
109 |
|
|
|
110 |
|
|
cdl_option CYGNUM_HAL_I386_PCMB_MEMSIZE_BASE {
|
111 |
|
|
display "Amount of Base RAM available."
|
112 |
|
|
flavor data
|
113 |
|
|
default_value 0x000F0000
|
114 |
|
|
active_if { CYGPKG_HAL_I386_PCMB_MEMSIZE == "HARDCODE" }
|
115 |
|
|
}
|
116 |
|
|
|
117 |
|
|
cdl_option CYGNUM_HAL_I386_PCMB_MEMSIZE_EXTENDED {
|
118 |
|
|
display "Amount of Extended RAM available."
|
119 |
|
|
flavor data
|
120 |
|
|
default_value 0x00100000
|
121 |
|
|
active_if { CYGPKG_HAL_I386_PCMB_MEMSIZE == "HARDCODE" }
|
122 |
|
|
}
|
123 |
|
|
}
|
124 |
|
|
|
125 |
|
|
cdl_option CYGSEM_HAL_I386_PC_LARGE_PCI_SPACE {
|
126 |
|
|
display "Search entire PCI space"
|
127 |
|
|
flavor bool
|
128 |
|
|
default_value 0
|
129 |
|
|
description "
|
130 |
|
|
This option enables searching the entire PCI address space, including
|
131 |
|
|
up to 256 busses, etc. Probably only useful when there are bridges or
|
132 |
|
|
other PCI expanding devices (such as a board with it's own PCI bus)
|
133 |
|
|
in the system. If disabled, the system will revert to the default
|
134 |
|
|
PCI space size (typically 8 busses)."
|
135 |
|
|
}
|
136 |
|
|
|
137 |
|
|
cdl_option CYGNUM_HAL_I386_PC_STARTUP_VIDEO_MODE {
|
138 |
|
|
display "Switch the display to an alternative video mode"
|
139 |
|
|
flavor booldata
|
140 |
|
|
default_value 0
|
141 |
|
|
requires { !CYGSEM_HAL_I386_PC_DIAG_SCREEN }
|
142 |
|
|
active_if CYGPKG_REDBOOT
|
143 |
|
|
description "
|
144 |
|
|
This option can be used when building RedBoot to switch
|
145 |
|
|
the display to a suitable mode, typically before running
|
146 |
|
|
an eCos graphical application. The mode switch involves
|
147 |
|
|
calling the PC Video BIOS, so needs to happen while the
|
148 |
|
|
processor is still running in real mode. Some information
|
149 |
|
|
about the video BIOS, the current mode, and the available
|
150 |
|
|
modes will be written to video memory so that the eCos
|
151 |
|
|
application knows what happened.
|
152 |
|
|
|
153 |
|
|
Different graphics cards use different numbers for the
|
154 |
|
|
various modes, so there is no simple way of knowing which
|
155 |
|
|
mode should be specified to achieve the desired resolution.
|
156 |
|
|
Instead RedBoot can be built with a suitable default, for
|
157 |
|
|
example 0x0100, and then a simple eCos application can be
|
158 |
|
|
built using an appropriate eCos configuration and
|
159 |
|
|
run to find out about all the available mode. RedBoot can
|
160 |
|
|
then be reconfigured and rebuilt to use a suitable mode.
|
161 |
|
|
The PC motherboard support package comes with a simple
|
162 |
|
|
eCos program gfxmode.c which can be used for this."
|
163 |
|
|
}
|
164 |
|
|
|
165 |
|
|
cdl_component CYGPKG_HAL_I386_PCMB_SMP_SUPPORT {
|
166 |
|
|
active_if { CYGPKG_HAL_SMP_SUPPORT }
|
167 |
|
|
calculated { CYGPKG_HAL_SMP_SUPPORT }
|
168 |
|
|
compile pcmb_smp.c
|
169 |
|
|
|
170 |
|
|
define_proc {
|
171 |
|
|
puts $::cdl_header "#undef HAL_PLATFORM_EXTRA"
|
172 |
|
|
puts $::cdl_header "#define HAL_PLATFORM_EXTRA \"\[SMP\]\""
|
173 |
|
|
puts $::cdl_header ""
|
174 |
|
|
}
|
175 |
|
|
}
|
176 |
|
|
|
177 |
|
|
cdl_interface CYGINT_HAL_I386_PCMB_SCREEN_SUPPORT {
|
178 |
|
|
display "Enable PC screen support"
|
179 |
|
|
compile pcmb_screen.c
|
180 |
|
|
description "This option enables support for the PC screen and
|
181 |
|
|
keyboard. These are combined into a virtual serial
|
182 |
|
|
device that may be used for diagnostic output.
|
183 |
|
|
Note that there is little point in trying to use it
|
184 |
|
|
as a debug channel."
|
185 |
|
|
}
|
186 |
|
|
}
|