1 2006-09-21 Jonathan Larmour <jifl@eCosCentric.com>
3 * include/disk.h (DISK_CHANNEL): No need for extra _part_dev
4 slot intended for entire disk's own devtab.
6 * src/disk.c (disk_lookup): Just access pdevs_dev directly
7 with no adjusted offset.
8 (disk_init): No longer set entry 0 from device devtab.
11 2006-09-20 Jonathan Larmour <jifl@eCosCentric.com>
13 * include/disk.h: Merge eCosCentric CVS with public eCos CVS.
14 This merges (and therefore changes) the API. ChangeLog
15 entries have been incorporated in the correct places below.
16 * include/diskio.h: Also merged.
17 * cdl/io_disk.cdl: Also merged.
18 * src/disk.c: Also merged.
20 2006-08-18 Andy Jackson <andy@xylanta.com>
22 * cdl/io_disk.cdl: Made debugging CDL controlled.
23 * src/disk.c: Added support to allow non-CHS disk devices to
24 use LBA information in MBR.
26 2006-02-03 Nick Garnett <nickg@ecoscentric.com>
28 * src/disk.c (read_partition): Switched to favour LBA partition
29 information in partition tables. This also means we don't now rely
30 on the driver reporting a correct CHS size for the disk.
31 (disk_bread, disk_bwrite): API changed to take length in sectors
32 rather than bytes. Also call hardware driver to transfer in
33 (up to) max_transfer sized chunks, rather than a sector at a
34 time. Call in to driver now made with DSR lock claimed, to avoid a
35 race condition between the DSR and the calling thread.
36 (disk_get_config): Added phys_block_size to channel info.
38 * include/diskio.h (struct cyg_disk_identify_t): Added
39 phys_block_size and max_transfer fields. These must be filled in
42 2005-12-12 Jonathan Larmour <jifl@eCosCentric.com>
44 * include/disk.h (DISK_CHANNEL_INIT): New macro. Allows a
45 DISK_CHANNEL to be defined dynamically.
47 2005-12-02 Andrew Lunn <andrew.lunn@ascom.ch>
49 * src/disk.c: Add comments that bread/bwrite take the position and
50 len in terms of blocks, not bytes.
52 2005-10-11 Nick Garnett <nickg@ecoscentric.com>
54 * src/disk.c (disk_bread, disk_bwrite): Made calls to
55 cyg_thread_yield() dependent on presence ok kernel.
57 2005-06-01 Jonathan Larmour <jifl@eCosCentric.com>
59 * src/disk.c (disk_bwrite): Uncomment the cyg_thread_yield() at
60 the end to prevent thread starvation between threads at the same
64 2004-07-21 Nick Garnett <nickg@ecoscentric.com>
66 * src/disk.c (read_partition): Changed to account for very large
67 disks which report bogus CHS geometry. We can only use the LBA
68 partition parameters in such disks.
69 (disk_set_config): Added some extra debug output.
71 2004-07-01 Savin Zlobec <savin@elatec.si>
76 Use predefined arrays for partition devices and info
77 radher than malloc. Extended DISK_CHANNEL macro to
78 support defining maximum number of partitions.
80 2004-04-15 Nick Garnett <nickg@ecoscentric.com>
83 Various changes to support disconnect/reconnect of changeable
86 * include/diskio.h: Added mount counter to disk_info structure.
88 * include/disk.h: Changed disk_disconnected() function to take a
89 pointer to a struct disk_channel rather than a struct
90 cyg_devtab_entry. Added mount count to disk_channel structure.
91 Moved include of diskio.h to end to fix declaration problems.
93 2004-02-04 Nick Garnett <nickg@ecoscentric.com>
95 * src/disk.c: Fixed bug in write routine where controller result
96 field was not being initialized. Added signals on controller queue
97 condition variable after setting controller busy flag to false.
99 * include/disk.h: Made controller result and busy fields
100 volatile. Just in case.
102 2004-01-23 Nick Garnett <nickg@ecoscentric.com>
106 Many changes. Added additional disk_controller data structure to
107 better reflect hardware structure. Added support for serialization
108 of multithreaded accesses to a single controller. Added support
109 for asynchronous, interrupt driven, IO operations. Various
112 2004-01-15 Nick Garnett <nickg@ecoscentric.com>
115 * include/disk.h: Removed block_pos arguments from
116 hardware driver read and write calls: it is not necessary.
118 * src/disk.c (read_mbr): Modified to read a complete sector from
119 the disk rather than pieces. Drivers should only ever see
120 reads/writes in multiples of 512 bytes.
122 2003-10-16 Savin Zlobec <savin@elatec.si>
125 Check return code from MBR scan and set
126 connected flag only if there was no error.
128 2003-09-01 Savin Zlobec <savin@elatec.si>
134 A block device IO implementation
138 //===========================================================================
139 //####ECOSGPLCOPYRIGHTBEGIN####
140 // -------------------------------------------
141 // This file is part of eCos, the Embedded Configurable Operating System.
142 // Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited
144 // eCos is free software; you can redistribute it and/or modify it under
145 // the terms of the GNU General Public License as published by the Free
146 // Software Foundation; either version 2 or (at your option) any later version.
148 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
149 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
150 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
153 // You should have received a copy of the GNU General Public License along
154 // with eCos; if not, write to the Free Software Foundation, Inc.,
155 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
157 // As a special exception, if other files instantiate templates or use macros
158 // or inline functions from this file, or you compile this file and link it
159 // with other works to produce a work based on this file, this file does not
160 // by itself cause the resulting work to be covered by the GNU General Public
161 // License. However the source code for this file must still be made available
162 // in accordance with section (3) of the GNU General Public License.
164 // This exception does not invalidate any other reasons why a work based on
165 // this file might be covered by the GNU General Public License.
167 // -------------------------------------------
168 //####ECOSGPLCOPYRIGHTEND####
169 //===========================================================================