1 |
786 |
skrzyp |
2009-04-28 John Dallaway
|
2 |
|
|
|
3 |
|
|
cdl/io_disk.cdl: Use CYGPKG_IO as the parent.
|
4 |
|
|
|
5 |
|
|
2006-09-21 Jonathan Larmour
|
6 |
|
|
|
7 |
|
|
* include/disk.h (DISK_CHANNEL): No need for extra _part_dev
|
8 |
|
|
slot intended for entire disk's own devtab.
|
9 |
|
|
|
10 |
|
|
* src/disk.c (disk_lookup): Just access pdevs_dev directly
|
11 |
|
|
with no adjusted offset.
|
12 |
|
|
(disk_init): No longer set entry 0 from device devtab.
|
13 |
|
|
It's unnecessary.
|
14 |
|
|
|
15 |
|
|
2006-09-20 Jonathan Larmour
|
16 |
|
|
|
17 |
|
|
* include/disk.h: Merge eCosCentric CVS with public eCos CVS.
|
18 |
|
|
This merges (and therefore changes) the API. ChangeLog
|
19 |
|
|
entries have been incorporated in the correct places below.
|
20 |
|
|
* include/diskio.h: Also merged.
|
21 |
|
|
* cdl/io_disk.cdl: Also merged.
|
22 |
|
|
* src/disk.c: Also merged.
|
23 |
|
|
|
24 |
|
|
2006-08-18 Andy Jackson
|
25 |
|
|
|
26 |
|
|
* cdl/io_disk.cdl: Made debugging CDL controlled.
|
27 |
|
|
* src/disk.c: Added support to allow non-CHS disk devices to
|
28 |
|
|
use LBA information in MBR.
|
29 |
|
|
|
30 |
|
|
2006-02-03 Nick Garnett
|
31 |
|
|
|
32 |
|
|
* src/disk.c (read_partition): Switched to favour LBA partition
|
33 |
|
|
information in partition tables. This also means we don't now rely
|
34 |
|
|
on the driver reporting a correct CHS size for the disk.
|
35 |
|
|
(disk_bread, disk_bwrite): API changed to take length in sectors
|
36 |
|
|
rather than bytes. Also call hardware driver to transfer in
|
37 |
|
|
(up to) max_transfer sized chunks, rather than a sector at a
|
38 |
|
|
time. Call in to driver now made with DSR lock claimed, to avoid a
|
39 |
|
|
race condition between the DSR and the calling thread.
|
40 |
|
|
(disk_get_config): Added phys_block_size to channel info.
|
41 |
|
|
|
42 |
|
|
* include/diskio.h (struct cyg_disk_identify_t): Added
|
43 |
|
|
phys_block_size and max_transfer fields. These must be filled in
|
44 |
|
|
by the driver.
|
45 |
|
|
|
46 |
|
|
2005-12-12 Jonathan Larmour
|
47 |
|
|
|
48 |
|
|
* include/disk.h (DISK_CHANNEL_INIT): New macro. Allows a
|
49 |
|
|
DISK_CHANNEL to be defined dynamically.
|
50 |
|
|
|
51 |
|
|
2005-12-02 Andrew Lunn
|
52 |
|
|
|
53 |
|
|
* src/disk.c: Add comments that bread/bwrite take the position and
|
54 |
|
|
len in terms of blocks, not bytes.
|
55 |
|
|
|
56 |
|
|
2005-10-11 Nick Garnett
|
57 |
|
|
|
58 |
|
|
* src/disk.c (disk_bread, disk_bwrite): Made calls to
|
59 |
|
|
cyg_thread_yield() dependent on presence ok kernel.
|
60 |
|
|
|
61 |
|
|
2005-06-01 Jonathan Larmour
|
62 |
|
|
|
63 |
|
|
* src/disk.c (disk_bwrite): Uncomment the cyg_thread_yield() at
|
64 |
|
|
the end to prevent thread starvation between threads at the same
|
65 |
|
|
priority.
|
66 |
|
|
(disk_bread): Ditto.
|
67 |
|
|
|
68 |
|
|
2004-07-21 Nick Garnett
|
69 |
|
|
|
70 |
|
|
* src/disk.c (read_partition): Changed to account for very large
|
71 |
|
|
disks which report bogus CHS geometry. We can only use the LBA
|
72 |
|
|
partition parameters in such disks.
|
73 |
|
|
(disk_set_config): Added some extra debug output.
|
74 |
|
|
|
75 |
|
|
2004-07-01 Savin Zlobec
|
76 |
|
|
|
77 |
|
|
* src/disk.c:
|
78 |
|
|
* include/disk.h:
|
79 |
|
|
* include/diskio.h:
|
80 |
|
|
Use predefined arrays for partition devices and info
|
81 |
|
|
radher than malloc. Extended DISK_CHANNEL macro to
|
82 |
|
|
support defining maximum number of partitions.
|
83 |
|
|
|
84 |
|
|
2004-04-15 Nick Garnett
|
85 |
|
|
|
86 |
|
|
* src/disk.c:
|
87 |
|
|
Various changes to support disconnect/reconnect of changeable
|
88 |
|
|
media.
|
89 |
|
|
|
90 |
|
|
* include/diskio.h: Added mount counter to disk_info structure.
|
91 |
|
|
|
92 |
|
|
* include/disk.h: Changed disk_disconnected() function to take a
|
93 |
|
|
pointer to a struct disk_channel rather than a struct
|
94 |
|
|
cyg_devtab_entry. Added mount count to disk_channel structure.
|
95 |
|
|
Moved include of diskio.h to end to fix declaration problems.
|
96 |
|
|
|
97 |
|
|
2004-02-04 Nick Garnett
|
98 |
|
|
|
99 |
|
|
* src/disk.c: Fixed bug in write routine where controller result
|
100 |
|
|
field was not being initialized. Added signals on controller queue
|
101 |
|
|
condition variable after setting controller busy flag to false.
|
102 |
|
|
|
103 |
|
|
* include/disk.h: Made controller result and busy fields
|
104 |
|
|
volatile. Just in case.
|
105 |
|
|
|
106 |
|
|
2004-01-23 Nick Garnett
|
107 |
|
|
|
108 |
|
|
* include/disk.h:
|
109 |
|
|
* src/disk.c:
|
110 |
|
|
Many changes. Added additional disk_controller data structure to
|
111 |
|
|
better reflect hardware structure. Added support for serialization
|
112 |
|
|
of multithreaded accesses to a single controller. Added support
|
113 |
|
|
for asynchronous, interrupt driven, IO operations. Various
|
114 |
|
|
tidies.
|
115 |
|
|
|
116 |
|
|
2004-01-15 Nick Garnett
|
117 |
|
|
|
118 |
|
|
* src/disk.c:
|
119 |
|
|
* include/disk.h: Removed block_pos arguments from
|
120 |
|
|
hardware driver read and write calls: it is not necessary.
|
121 |
|
|
|
122 |
|
|
* src/disk.c (read_mbr): Modified to read a complete sector from
|
123 |
|
|
the disk rather than pieces. Drivers should only ever see
|
124 |
|
|
reads/writes in multiples of 512 bytes.
|
125 |
|
|
|
126 |
|
|
2003-10-16 Savin Zlobec
|
127 |
|
|
|
128 |
|
|
* src/disk.c:
|
129 |
|
|
Check return code from MBR scan and set
|
130 |
|
|
connected flag only if there was no error.
|
131 |
|
|
|
132 |
|
|
2003-09-01 Savin Zlobec
|
133 |
|
|
|
134 |
|
|
* cdl/io_disk.cdl:
|
135 |
|
|
* inc/disk.h:
|
136 |
|
|
* inc/diskio.h:
|
137 |
|
|
* src/disk.c:
|
138 |
|
|
A block device IO implementation
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
|
142 |
|
|
//===========================================================================
|
143 |
|
|
// ####GPLCOPYRIGHTBEGIN####
|
144 |
|
|
// -------------------------------------------
|
145 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
146 |
|
|
// Copyright (C) 2003, 2004, 2005, 2006, 2009 Free Software Foundation, Inc.
|
147 |
|
|
//
|
148 |
|
|
// This program is free software; you can redistribute it and/or modify
|
149 |
|
|
// it under the terms of the GNU General Public License as published by
|
150 |
|
|
// the Free Software Foundation; either version 2 or (at your option) any
|
151 |
|
|
// later version.
|
152 |
|
|
//
|
153 |
|
|
// This program is distributed in the hope that it will be useful, but
|
154 |
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
155 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
156 |
|
|
// General Public License for more details.
|
157 |
|
|
//
|
158 |
|
|
// You should have received a copy of the GNU General Public License
|
159 |
|
|
// along with this program; if not, write to the
|
160 |
|
|
// Free Software Foundation, Inc., 51 Franklin Street,
|
161 |
|
|
// Fifth Floor, Boston, MA 02110-1301, USA.
|
162 |
|
|
// -------------------------------------------
|
163 |
|
|
// ####GPLCOPYRIGHTEND####
|
164 |
|
|
//===========================================================================
|