summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/ide/ata.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps: Move libchip to bspsSebastian Huber2018-04-041-1360/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* libchip: Use public include pathChris Johns2018-01-041-1/+1
| | | | Update #3254.
* libchip/ata: Fix integer to/from pointerSebastian Huber2017-08-221-2/+2
| | | | Update #3082.
* score: Rename _ISR_Disable() and _ISR_Enable()Sebastian Huber2016-05-201-4/+4
| | | | | | | | | Rename _ISR_Disable() into _ISR_Local_disable(). Rename _ISR_Enable() into _ISR_Local_enable(). Remove _Debug_Is_owner_of_giant(). This is a preparation to remove the Giant lock. Update #2555.
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* sapi: Use one SMP lock for all chainsSebastian Huber2014-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This partially reverts commit 1215fd4d9426a59d568560e9a485628560363133. In order to support profiling of SMP locks and provide a future compatible SMP locks API it is necessary to add an SMP lock destroy function. Since the commit above adds an SMP lock to each chain control we would have to add a rtems_chain_destroy() function as well. This complicates the chain usage dramatically. Thus revert the patch above. A global SMP lock for all chains is used to implement the protected chain operations. Advantages: * The SAPI chain API is now identical on SMP and non-SMP configurations. * The size of the chain control is reduced and is then equal to the Score chains. * The protected chain operations work correctly on SMP. Disadvantage: * Applications using many different chains and the protected operations may notice lock contention. The chain control size drop is a huge benefit (SAPI chain controls are 66% larger than the Score chain controls). The only disadvantage is not really a problem since these applications can use specific interrupt locks and unprotected chain operations to avoid this issue.
* sapi: SMP support for chainsSebastian Huber2013-08-301-1/+1
| | | | | | | | Add ISR lock to chain control for proper SMP protection. Replace rtems_chain_extract() with rtems_chain_explicit_extract() and rtems_chain_insert() with rtems_chain_explicit_insert() on SMP configurations. Use rtems_chain_explicit_extract() and rtems_chain_explicit_insert() to provide SMP support.
* libchip/ata: Remove dead codeSebastian Huber2013-07-161-58/+5
|
* libblock: Block device transfer request API changeSebastian Huber2012-11-021-1/+2
| | | | | | | | | | | | | | Add and use rtems_blkdev_request_done(). Block device transfer requests must signal the completion status now with rtems_blkdev_request_done(). The return value of the block device IO control will be ignored for transfer requests. The first parameter of rtems_blkdev_request_cb is now the transfer request structure. Renamed rtems_blkdev_request::req_done to rtems_blkdev_request::done to break third party drivers at compile time, otherwise this API change would result in runtime errors.
* libchip/ata: Fix pre-processor symbol evaluationSebastian Huber2012-06-121-7/+7
|
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-2/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* 2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-061-3/+3
| | | | | * libchip/ide/ata.c: Make ata_interrupt_on, ata_interrupt_off, ata_interrupt_isOn static.
* 2011-12-05 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-12-051-1/+14
| | | | | PR 1975/misc * libchip/ide/ata.c, libchip/ide/ata_util.c: Fixed warnings.
* 2011-12-03 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-031-3/+2
| | | | | * libchip/ide/ata.c: Make ata_interrupt_handler static. * libchip/ide/ide_controller.c: Include libchip/ide_ctrl.h.
* 2011-01-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-01-171-1/+1
| | | | * libchip/ide/ata.c: Fix spelling.
* 2010-10-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-10-251-4/+4
| | | | * libchip/ide/ata.c: Do not violate chain API.
* 2010-08-17 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-08-171-196/+0
| | | | | | | * libchip/ide/ata_util.c: New file. * libchip/Makefile.am: Reflect change from above. * libchip/ide/ata.c: Moved ata_breq_init(), ata_identify_device(), and ata_process_request_on_init_phase() into new file.
* 2010-08-17 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-08-171-171/+196
| | | | | | | * libchip/ide/ata_internal.h, libchip/ide/ata.c: Moved code into separate functions. Added public ata_breq_init(), ata_identify_device(), and ata_process_request_on_init_phase() functions.
* 010-05-18 Chris Johns <chrisj@rtems.org>Chris Johns2010-05-181-1/+1
| | | | | * libchip/i2c/spi-sd-card.c, libchip/ide/ata.c: PR 1448/filesystem.
* 2010-04-08 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2010-04-081-1/+1
| | | | | * libchip/ide/ata.c: Change missed use of ATA_USE_OLD_EXCEPTIONS to CPU_SIMPLE_VECTORED_INTERRUPTS.
* 2010-04-07 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-04-071-19/+7
| | | | | * libchip/ide/ata.c: Use correct macro from RTEMS to determine whether simple or PIC interrupt model.
* libblock API updateThomas Doerfler2010-01-191-24/+16
|
* Update for block device API changeThomas Doerfler2009-12-181-1/+1
|
* Whitespace removal.Ralf Corsepius2009-11-301-26/+26
|
* 2009-11-12 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2009-11-121-3/+4
| | | | * libchip/ide/ata.c (rtems_ata_initialize): Avoid implicit cast to uint16_t.
* 2009-11-12 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2009-11-121-1/+1
| | | | | * libchip/ide/ata.c (ata_non_data_request): Change arg from int to uint32_t (16bit ints are too small).
* Update for block device API change.Thomas Doerfler2009-10-131-5/+5
|
* 2009-10-08 Chris Johns <chrisj@rtems.org>Chris Johns2009-10-081-127/+106
| | | | | | | | | | | | | | * libchip/ide/ata.c, c/src/libchip/ide/ata_internal.h: Remove the multiblock support from the ATA driver. Multiblock at the disk level should not be a global policy as a disk may have more than one partition with different block sizes. An IDE driver could decide to use the feature with DMA but this a driver specific design choice. Fixed bugs relating to variable block sizes and large block transfer. * c/src/libchip/ide/ide_controller.c, c/src/libchip/ide/ide_ctrl_cfg.h, c/src/libchip/ide/ide_ctrl_io.h: Changed the block size to 32bits so blocks of 64K or bigger can be transfered in a single driver call.
* 2009-10-05 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-10-051-7/+19
| | | | | * libchip/ide/ata.c: Revert previous change. Not all ARM BSPs use a shared irq.h yet and this breaks a significant number of them.
* 2009-10-01 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-10-011-19/+7
| | | | | * libchip/ide/ata.c: Use simple vectored CPU macro to select interrupt model.
* 2009-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-07-221-0/+2
| | | | * libchip/ide/ata.c: Remove warning.
* 2009-06-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-06-121-1/+1
| | | | | | * libchip/i2c/spi-sd-card.c, libchip/ide/ata.c: Eliminate using the GNU/Linux specific error numbers EBADRQC and ENOTBLK. Switch to EINVAL and ENOTTY as appropriate.
* 2009-05-30 Chris Johns <chrisj@rtems.org>Chris Johns2009-05-301-33/+52
| | | | | | * c/src/libchip/ide/ata.c: Fixed the bug that ignored slave devices on an IDE bus and cleaned up the initialisation register call.
* 2009-04-29 Chris Johns <chrisj@rtems.org>Chris Johns2009-04-291-3/+8
| | | | | | | | * libchip/ide/ata.c: Remove a detection test that fails in qemu. * libchip/ide/ide_controller.c: Change the status detection and add a message if the transfer fails. There is currently no error handle at the IDE drvier level.
* Convert to "bool".Ralf Corsepius2008-09-071-20/+20
|
* Add missing prototypes.Ralf Corsepius2008-08-181-2/+2
|
* 2008-08-02 Chris Johns <chrisj@rtems.org>Chris Johns2008-08-021-9/+8
| | | | | | * libchip/i2c/spi-sd-card.c, libchip/ide/ata.c: Remove rtems_blkdev_request count and start references. Use RTEMS_BLKDEV_START_BLOCK.
* 2008-07-29 Chris Johns <chrisj@rtems.org>Chris Johns2008-07-291-37/+124
| | | | | | | | | | | | | | | * libchip/i2c/spi-sd-card.c: Updated to the libblock changes. * libchip/ide/ata.c: Change to use a mutex rather than disable pre-emption. Updated to the libblock changes. * libchip/ide/ata_internal.h: Updated to the new chains API. * libchip/ide/ide_controller.c: Updated to the libblock changes. Added come debug tracing. * libchip/ide/ide_ctrl_cfg.h, libchip/ide/ide_ctrl_io.h: Updated to the libblock changes.
* 2008-07-03 Chris Johns <chrisj@rtems.org>Chris Johns2008-07-031-16/+16
| | | | * ata.c: Change to the Chains API.
* 2008-05-07 Till Straumann <strauman@slac.stanford.edu>Joel Sherrill2008-05-071-0/+18
| | | | | PR 649/bsps * libchip/ide/ata.c: Give up if the interface does not become ready.
* compilable release of virtex/gen83xx/gen5200 powerpc adaptations. Merged ↵Thomas Doerfler2007-07-101-1/+1
| | | | many different versions of new exception handling code to shared sources.
* 2007-02-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2007-02-061-5/+5
| | | | * libchip/ide/ata.c: Remove superfluous type casts.
* Use size_t for sizes.Ralf Corsepius2007-02-061-1/+1
|
* mproved gen5200 MSCAN driverThomas Doerfler2007-01-211-1/+2
| | | | fixed synchronization bug between ata.c and bdbuf.c
* applied patches for PR1117/1118/1119/1120Thomas Doerfler2006-07-091-1/+4
|
* 2006-03-07 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>Joel Sherrill2006-03-071-4/+165
| | | | | | | PR 853/filesystem * libchip/ide/ata.c, libchip/ide/ide_controller.c: The ata driver should be modified to support the new exception scheme and to use the handle parameter.
* 2004-11-20 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>:Ralf Corsepius2004-11-201-3/+3
| | | | | | | | | | | PR 703/filesystem * libchip/ide/ata_internal.h, libchip/ide/ide_ctrl_cfg.h, libchip/ide/ide_ctrl_io.h, libchip/ide/ata.c, libchip/ide/ide_controller.c: Move definitions for ATA modes into ide_ctrl_cfg.h, to make them available for BSPS/device drivers. Extend the "modes_available" and "mode_active" parameters to uint16_t for UDMA support.
* Remove stray white spaces.Ralf Corsepius2004-04-201-307/+307
|
* Remove stray white spaces.Ralf Corsepius2004-04-151-1/+0
|
* 2004-04-01 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-04-011-1/+1
| | | | | | | | | | * librdbg/src/i386/rdbg_cpu_asm.S: Include <rtems/asm.h> instead of <asm.h>. * librdbg/src/m68k/rdbg_cpu_asm.S: Include <rtems/asm.h> instead of <asm.h>. * librdbg/src/powerpc/rdbg_cpu_asm.S: Include <rtems/asm.h> instead of <asm.h>. * libchip/ide/ata.c: Include <rtems/chain.h> instead of <chain.h>. * libchip/ide/ide_controller.c: Include <rtems/chain.h> instead of <chain.h>. * libchip/shmdr/shm_driver.h: Include <rtems/clockdrv.h> instead of <clockdrv.h>. * libchip/serial/ns16550.c: Include <rtems/ringbuf.h> instead of <ringbuf.h>.