1 |
786 |
skrzyp |
2004-11-03 David Vrabel
|
2 |
|
|
|
3 |
|
|
* src/pci.c (cyg_pci_configure_device): Fix bug which caused
|
4 |
|
|
memory resources to be not allocated.
|
5 |
|
|
|
6 |
|
|
2004-10-13 David Brennan
|
7 |
|
|
|
8 |
|
|
* src/pci.c: Added include of cyg/infra/diag.h to fix compiler
|
9 |
|
|
warning.
|
10 |
|
|
|
11 |
|
|
2004-10-12 Mark Salter
|
12 |
|
|
|
13 |
|
|
* cdl/io_pci.cdl (CYGPKG_IO_PCI_CONFIGURE_INTLINE): New option.
|
14 |
|
|
* src/pci.c (cyg_pci_translate_interrupt): Don't write INT LINE
|
15 |
|
|
register unless CYGPKG_IO_PCI_CONFIGURE_INTLINE defined.
|
16 |
|
|
|
17 |
|
|
2004-08-31 Mark Salter
|
18 |
|
|
|
19 |
|
|
* src/pci.c (cyg_pci_translate_interrupt): Write vector number into
|
20 |
|
|
INT_LINE register.
|
21 |
|
|
(cyg_pci_get_device_info): Add mechanism for HALs to specify certain
|
22 |
|
|
BARs to be ignored.
|
23 |
|
|
* include/pci_hw.h (CYG_PCI_IGNORE_BAR): New macro.
|
24 |
|
|
* doc/pci.sgml: Add info on HAL_PCI_IGNORE_BAR.
|
25 |
|
|
|
26 |
|
|
2004-01-14 Nick Garnett
|
27 |
|
|
|
28 |
|
|
* src/pci.c (cyg_pci_get_device_info): Added fix for devices that
|
29 |
|
|
only implement the bottom 16 bits of an IO BAR. This is allowed by
|
30 |
|
|
the standard but is very rare and mostly present in older devices
|
31 |
|
|
only. Without this cyg_pci_allocate_io_priv() gets confused.
|
32 |
|
|
|
33 |
|
|
2004-01-09 David Vrabel
|
34 |
|
|
|
35 |
|
|
* src/pci.c (cyg_pci_find_device): Remove debug message.
|
36 |
|
|
|
37 |
|
|
2003-11-27 Andrew Lunn
|
38 |
|
|
|
39 |
|
|
* src/pci.c (cyg_pci_find_device): Removed a debug print which should
|
40 |
|
|
not be there and is causing an warning.
|
41 |
|
|
|
42 |
|
|
2003-11-18 Manu Sharma
|
43 |
|
|
|
44 |
|
|
* src/pci.c : Additional changes in cyg_pci_get_device_info,
|
45 |
|
|
cyg_pci_set_device_info and cyg_pci_configure_device to be able
|
46 |
|
|
to support non-contiguous BARs.
|
47 |
|
|
|
48 |
|
|
2003-09-29 Nick Garnett
|
49 |
|
|
|
50 |
|
|
* src/pci.c (cyg_pci_get_device_info): Removed check for inactive
|
51 |
|
|
BARs since the requirement for the BARs to be contiguous has been
|
52 |
|
|
relaxed in more recent versions of the PCI standard.
|
53 |
|
|
|
54 |
|
|
2003-08-08 Gary Thomas
|
55 |
|
|
|
56 |
|
|
* include/pci.h: Add CYGARC_PCI_DMA_ADDRESS() macro - used to
|
57 |
|
|
map CPU addresses to ones usable by PCI masters.
|
58 |
|
|
|
59 |
|
|
2003-02-24 Jonathan Larmour
|
60 |
|
|
|
61 |
|
|
* cdl/io_pci.cdl: Fix doc link.
|
62 |
|
|
|
63 |
|
|
2003-02-21 Gary Thomas
|
64 |
|
|
|
65 |
|
|
* src/pci.c (cyg_pci_get_device_info): While scanning active
|
66 |
|
|
devices, remember the I/O and memory addresses they use. This
|
67 |
|
|
allows for new devices to be added which will not conflict.
|
68 |
|
|
|
69 |
|
|
2003-02-20 Gary Thomas
|
70 |
|
|
|
71 |
|
|
* tests/pcihdr.h: Update to latest published version.
|
72 |
|
|
|
73 |
|
|
2002-05-14 Jesper Skov
|
74 |
|
|
|
75 |
|
|
* tests/pci1.c: Fix warning.
|
76 |
|
|
|
77 |
|
|
2002-02-13 Hugo Tyson
|
78 |
|
|
|
79 |
|
|
* doc/pci.sgml: Tidy up some typos and PROGRAMLISTING width
|
80 |
|
|
issues.
|
81 |
|
|
|
82 |
|
|
2002-02-11 Mark Salter
|
83 |
|
|
|
84 |
|
|
* doc/pci.sgml: Brought docs up to date with current code.
|
85 |
|
|
|
86 |
|
|
2002-01-31 Mark Salter
|
87 |
|
|
|
88 |
|
|
* src/pci.c (cyg_pci_init): Set default memory and io bases here
|
89 |
|
|
as the HAL_PCI_ALLOC_BASE_* macros may not be static values.
|
90 |
|
|
|
91 |
|
|
2002-01-21 Mark Salter
|
92 |
|
|
|
93 |
|
|
* src/pci.c (cyg_pci_get_device_info): Fix setting of upper 32 bits
|
94 |
|
|
for 64-bit BAR.
|
95 |
|
|
|
96 |
|
|
2001-09-28 Gary Thomas
|
97 |
|
|
|
98 |
|
|
* src/pci.c (cyg_pci_find_next):
|
99 |
|
|
* include/pci.h: Allow platforms to restrict PCI bus/device ranges.
|
100 |
|
|
|
101 |
|
|
2001-08-22 Gary Thomas
|
102 |
|
|
|
103 |
|
|
* src/pci.c:
|
104 |
|
|
printf() is no longer a part of RedBoot. Thus all programs
|
105 |
|
|
must use diag_printf() and related functions instead.
|
106 |
|
|
|
107 |
|
|
2001-02-28 Hugo Tyson
|
108 |
|
|
|
109 |
|
|
* tests/pci1.c (pci_scan): Added a new function to re-scan the
|
110 |
|
|
device list after configuring to let a human confirm that we truly
|
111 |
|
|
are seeing distinct devices - ie. do they retain their distinct
|
112 |
|
|
resource allocations in the BARs? This was useful to me in
|
113 |
|
|
investigating a recalcitrant target...
|
114 |
|
|
|
115 |
|
|
2001-02-02 Jesper Skov
|
116 |
|
|
|
117 |
|
|
* tests/pci2.c (pci_test): Removed bogus check for 1MB IO limit.
|
118 |
|
|
|
119 |
|
|
2001-01-10 Jesper Skov
|
120 |
|
|
|
121 |
|
|
* src/pci.c (cyg_pci_get_device_info): Do correct casting of
|
122 |
|
|
header_type. Do not make assumptions about structure layout.
|
123 |
|
|
|
124 |
|
|
* tests/pcihdr.h: Updated.
|
125 |
|
|
|
126 |
|
|
2001-01-02 Hugo Tyson
|
127 |
|
|
|
128 |
|
|
* include/pci.h: Define new API to perform more generalized matching
|
129 |
|
|
on device properties.
|
130 |
|
|
|
131 |
|
|
* src/pci.c (cyg_pci_find_matching): New API implementation.
|
132 |
|
|
|
133 |
|
|
2000-12-21 Mark Salter
|
134 |
|
|
|
135 |
|
|
* include/pci_hw.h: Add platform hook so certain devices
|
136 |
|
|
can be skipped by generic PCI io code. This is a workaround
|
137 |
|
|
for a hw problem where configuration space cycles on some
|
138 |
|
|
devices cause a bus lockup.
|
139 |
|
|
|
140 |
|
|
* src/pci.c (cyg_pci_find_next): Use platform hook to ignore
|
141 |
|
|
certain devices during device search.
|
142 |
|
|
|
143 |
|
|
2000-12-02 Gary Thomas
|
144 |
|
|
|
145 |
|
|
* src/pci.c:
|
146 |
|
|
* cdl/io_pci.cdl: Add CDL to control debug prints.
|
147 |
|
|
|
148 |
|
|
2000-11-30 Gary Thomas
|
149 |
|
|
|
150 |
|
|
* src/pci.c (cyg_pci_find_next): Improve debug prints when
|
151 |
|
|
scanning the bus, showing vendor and device code for each slot.
|
152 |
|
|
|
153 |
|
|
2000-11-19 Gary Thomas
|
154 |
|
|
|
155 |
|
|
* src/pci.c (cyg_pci_find_device): Don't update 'devid' if no
|
156 |
|
|
suitable devices found. This allows for simpler rescan for
|
157 |
|
|
multiple device types.
|
158 |
|
|
|
159 |
|
|
2000-11-12 Gary Thomas
|
160 |
|
|
|
161 |
|
|
* src/pci_hw.c:
|
162 |
|
|
* src/pci.c: Layout changes require
|
163 |
|
|
|
164 |
|
|
2000-11-06 Jonathan Larmour
|
165 |
|
|
|
166 |
|
|
* src/pci.c (cyg_pci_find_next): Conditionalize debug printfs
|
167 |
|
|
|
168 |
|
|
2000-11-04 Mark Salter
|
169 |
|
|
|
170 |
|
|
* src/pci.c (cyg_pci_get_device_info): Add bridge support. Handle
|
171 |
|
|
already configured devices.
|
172 |
|
|
(cyg_pci_set_device_info): Add bridge support.
|
173 |
|
|
(cyg_pci_find_next): Support device id with valid bus number
|
174 |
|
|
combined with CYG_PCI_NULL_DEVFN.
|
175 |
|
|
(cyg_pci_configure_device): Return true if device already configured.
|
176 |
|
|
Fixed for devices which use no BARs.
|
177 |
|
|
(cyg_pci_allocate_io_priv): Remove bogus limit check.
|
178 |
|
|
(cyg_pci_configure_bus): New function to recursively configure a
|
179 |
|
|
bus and its subordinate bases.
|
180 |
|
|
|
181 |
|
|
* include/pci_cfg.h: Added bridge definitions.
|
182 |
|
|
(CYG_PCI_CFG_BAR_5): Corrected.
|
183 |
|
|
|
184 |
|
|
* include/pci.h (CYG_PCI_NULL_DEVFN): Define.
|
185 |
|
|
(cyg_pci_device): Add bridge support. Add num_bars. Add
|
186 |
|
|
declaration for cyg_pci_configure_bus.
|
187 |
|
|
(CYG_PCI_MAX_BUS): Increase to (arbitrary) 8.
|
188 |
|
|
|
189 |
|
|
2000-03-28 John Dallaway
|
190 |
|
|
|
191 |
|
|
* cdl/io_pci.cdl:
|
192 |
|
|
|
193 |
|
|
Adjust documentation URLs.
|
194 |
|
|
|
195 |
|
|
2000-01-31 Simon FitzMaurice
|
196 |
|
|
* cdl\io_pci.cdl:
|
197 |
|
|
|
198 |
|
|
Adjust help URLs in line with new doc layout.
|
199 |
|
|
|
200 |
|
|
2000-01-28 Simon FitzMaurice
|
201 |
|
|
* cdl\io_pci.cdl:
|
202 |
|
|
|
203 |
|
|
Adjust help URLs in line with new doc layout.
|
204 |
|
|
|
205 |
|
|
2000-01-19 Hugo Tyson
|
206 |
|
|
|
207 |
|
|
* cdl/*.cdl: Add descriptions to a number of options &c which were
|
208 |
|
|
lacking same, also tidied up other typos as noticed en passant.
|
209 |
|
|
|
210 |
|
|
1999-12-21 Jonathan Larmour
|
211 |
|
|
|
212 |
|
|
* cdl/io_pci.cdl (CYGPKG_IO_PCI): Relevant to more than one platform
|
213 |
|
|
so reparent under IO package
|
214 |
|
|
(CYGPKG_IO_PCI_CFLAGS_REMOVE): Fix display line typo
|
215 |
|
|
|
216 |
|
|
1999-11-03 John Dallaway
|
217 |
|
|
|
218 |
|
|
* cdl/io_pci.cdl: Define build options.
|
219 |
|
|
|
220 |
|
|
1999-09-24 Jesper Skov
|
221 |
|
|
|
222 |
|
|
* tests/pci2.c (pci_test): Replaced CYG_ASSERT with CYG_TEST_CHECK
|
223 |
|
|
|
224 |
|
|
1999-09-10 Jonathan Larmour
|
225 |
|
|
|
226 |
|
|
* include/pkgconf/io_pci.h: Reparent under CYGPKG_IO - this is used under
|
227 |
|
|
more than one target now and the library itself is generic.
|
228 |
|
|
|
229 |
|
|
1999-08-25 Jesper Skov
|
230 |
|
|
|
231 |
|
|
* src/pci.c (cyg_pci_init): Made it idempotent.
|
232 |
|
|
|
233 |
|
|
* tests/pci1.c:
|
234 |
|
|
* tests/pci2.c:
|
235 |
|
|
* src/pci.c:
|
236 |
|
|
* include/pci.h:
|
237 |
|
|
All functions that deal with addresses in PCI space now use PCI
|
238 |
|
|
ADDRESS types.
|
239 |
|
|
|
240 |
|
|
1999-08-24 Jesper Skov
|
241 |
|
|
|
242 |
|
|
* tests/pci1.c:
|
243 |
|
|
* tests/pci2.c:
|
244 |
|
|
* include/pci.h:
|
245 |
|
|
* src/pci.c:
|
246 |
|
|
Handle requests for memory regions in 64bit space.
|
247 |
|
|
|
248 |
|
|
1999-08-24 Jesper Skov
|
249 |
|
|
|
250 |
|
|
* tests/pci1.c: Added more output, resource allocation, debug help
|
251 |
|
|
(enable devices).
|
252 |
|
|
|
253 |
|
|
* src/pci.c (cyg_pci_find_next): Handle multi-function devices.
|
254 |
|
|
|
255 |
|
|
* include/pci_cfg.h (CYG_PCI_CFG_COMMAND_ACTIVE): Added MASTER.
|
256 |
|
|
Added HEADER_TYPE definitions.
|
257 |
|
|
|
258 |
|
|
1999-08-23 Nick Garnett
|
259 |
|
|
|
260 |
|
|
* tests/pci1.c: Fixed a couple of bugs in the vendor/device/class
|
261 |
|
|
table search code.
|
262 |
|
|
|
263 |
|
|
1999-08-23 Jesper Skov
|
264 |
|
|
|
265 |
|
|
* tests/pcihdr.h: [Added]
|
266 |
|
|
* tests/pci1.c: Added Vendor/Device ID description output.
|
267 |
|
|
|
268 |
|
|
* include/pci_cfg.h: Added vendor and class IDs.
|
269 |
|
|
Also added Prog/IF IDs.
|
270 |
|
|
|
271 |
|
|
1999-08-19 Nick Garnett
|
272 |
|
|
|
273 |
|
|
* tests/pci1.c (pci_test): Added printf() of class_rev code to
|
274 |
|
|
output of bus scan.
|
275 |
|
|
|
276 |
|
|
* include/pci.h (CYG_PCI_MAX_FN): Increased to 8.
|
277 |
|
|
|
278 |
|
|
1999-08-19 Jesper Skov
|
279 |
|
|
|
280 |
|
|
* src/pci.c (cyg_pci_allocate_memory, cyg_pci_allocate_io):
|
281 |
|
|
Check that device is inactive. Ensure that 1MB limits (IO/MEM1MB)
|
282 |
|
|
are observed.
|
283 |
|
|
|
284 |
|
|
* tests/pci2.c (pci_test): Added tests of io/mem allocators.
|
285 |
|
|
|
286 |
|
|
1999-08-17 Jesper Skov
|
287 |
|
|
|
288 |
|
|
* tests/pci2.c (pci_test): Added (empty for now)
|
289 |
|
|
* tests/pci1.c: Added API checks.
|
290 |
|
|
* include/pci.h: Fixed typo.
|
291 |
|
|
|
292 |
|
|
* include/pci.h (CYG_PCI_NULL_DEVID): Changed initializer.
|
293 |
|
|
* src/pci.c (cyg_pci_find_next): Correct check for initializer.
|
294 |
|
|
|
295 |
|
|
* tests/pci1.c: Added.
|
296 |
|
|
Fixed output.
|
297 |
|
|
|
298 |
|
|
* include/pci_cfg.h:
|
299 |
|
|
* include/pci.h:
|
300 |
|
|
* include/pci_hw.h:
|
301 |
|
|
* src/pci_hw.c:
|
302 |
|
|
* src/pci.c:
|
303 |
|
|
Renamed cyg_pci_config_interrupt to cyg_pci_translate_interrupt.
|
304 |
|
|
Untabified.
|
305 |
|
|
|
306 |
|
|
1999-08-16 John Dallaway
|
307 |
|
|
|
308 |
|
|
* cdl/io_pci.cdl:
|
309 |
|
|
|
310 |
|
|
Parent PCI library package under package on which it depends.
|
311 |
|
|
|
312 |
|
|
1999-08-16 John Dallaway
|
313 |
|
|
|
314 |
|
|
* include/pkgconf/io_pci.h:
|
315 |
|
|
|
316 |
|
|
Parent PCI package under package on which it depends.
|
317 |
|
|
|
318 |
|
|
1999-08-16 Jesper Skov
|
319 |
|
|
|
320 |
|
|
* include/pci.h:
|
321 |
|
|
* src/pci.c (cyg_pci_config_interrupt):
|
322 |
|
|
* include/pci_hw.h:
|
323 |
|
|
* src/pci_hw.c (cyg_pcihw_config_interrupt):
|
324 |
|
|
Added interrupt configuration functions.
|
325 |
|
|
|
326 |
|
|
1999-08-13 Jesper Skov
|
327 |
|
|
|
328 |
|
|
* include/pci_cfg.h:
|
329 |
|
|
* include/pci.h:
|
330 |
|
|
* src/pci_hw.c:
|
331 |
|
|
* src/pci.c:
|
332 |
|
|
Extended cyg_pci_device and API.
|
333 |
|
|
Renamed HAL macros.
|
334 |
|
|
Put physical address in base_map.
|
335 |
|
|
|
336 |
|
|
(cyg_pci_get_device_info): Fix switch. Clear base_size when device
|
337 |
|
|
enabled.
|
338 |
|
|
|
339 |
|
|
1999-08-12 Jesper Skov
|
340 |
|
|
|
341 |
|
|
* include/pci_hw.h:
|
342 |
|
|
* include/pci_cfg.h:
|
343 |
|
|
* include/pci.h:
|
344 |
|
|
* src/pci_hw.c:
|
345 |
|
|
* src/pci.c:
|
346 |
|
|
Renamed some registers. Fixed some bad arguments. Added forgotten
|
347 |
|
|
externCs.
|
348 |
|
|
cyg_pci_configure_device fleshed out a bit.
|
349 |
|
|
|
350 |
|
|
* First half-empty files checked in.
|
351 |
|
|
|
352 |
|
|
//===========================================================================
|
353 |
|
|
// ####GPLCOPYRIGHTBEGIN####
|
354 |
|
|
// -------------------------------------------
|
355 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
356 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
357 |
|
|
//
|
358 |
|
|
// This program is free software; you can redistribute it and/or modify
|
359 |
|
|
// it under the terms of the GNU General Public License as published by
|
360 |
|
|
// the Free Software Foundation; either version 2 or (at your option) any
|
361 |
|
|
// later version.
|
362 |
|
|
//
|
363 |
|
|
// This program is distributed in the hope that it will be useful, but
|
364 |
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
365 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
366 |
|
|
// General Public License for more details.
|
367 |
|
|
//
|
368 |
|
|
// You should have received a copy of the GNU General Public License
|
369 |
|
|
// along with this program; if not, write to the
|
370 |
|
|
// Free Software Foundation, Inc., 51 Franklin Street,
|
371 |
|
|
// Fifth Floor, Boston, MA 02110-1301, USA.
|
372 |
|
|
// -------------------------------------------
|
373 |
|
|
// ####GPLCOPYRIGHTEND####
|
374 |
|
|
//===========================================================================
|