summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/ide/ata.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-04-04bsps: Move libchip to bspsSebastian Huber1-1360/+0
This patch is a part of the BSP source reorganization. Update #3285.
2018-01-04libchip: Use public include pathChris Johns1-1/+1
Update #3254.
2017-08-22libchip/ata: Fix integer to/from pointerSebastian Huber1-2/+2
Update #3082.
2016-05-20score: Rename _ISR_Disable() and _ISR_Enable()Sebastian Huber1-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.
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2014-03-11sapi: Use one SMP lock for all chainsSebastian Huber1-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.
2013-08-30sapi: SMP support for chainsSebastian Huber1-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.
2013-07-16libchip/ata: Remove dead codeSebastian Huber1-58/+5
2012-11-02libblock: Block device transfer request API changeSebastian Huber1-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.
2012-06-12libchip/ata: Fix pre-processor symbol evaluationSebastian Huber1-7/+7
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-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-062011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-3/+3
* libchip/ide/ata.c: Make ata_interrupt_on, ata_interrupt_off, ata_interrupt_isOn static.
2011-12-052011-12-05 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-1/+14
PR 1975/misc * libchip/ide/ata.c, libchip/ide/ata_util.c: Fixed warnings.
2011-12-032011-12-03 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-3/+2
* libchip/ide/ata.c: Make ata_interrupt_handler static. * libchip/ide/ide_controller.c: Include libchip/ide_ctrl.h.
2011-01-172011-01-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+1
* libchip/ide/ata.c: Fix spelling.
2010-10-252010-10-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-4/+4
* libchip/ide/ata.c: Do not violate chain API.
2010-08-172010-08-17 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-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-172010-08-17 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-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.
2010-05-18010-05-18 Chris Johns <chrisj@rtems.org>Chris Johns1-1/+1
* libchip/i2c/spi-sd-card.c, libchip/ide/ata.c: PR 1448/filesystem.
2010-04-082010-04-08 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill1-1/+1
* libchip/ide/ata.c: Change missed use of ATA_USE_OLD_EXCEPTIONS to CPU_SIMPLE_VECTORED_INTERRUPTS.
2010-04-072010-04-07 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-19/+7
* libchip/ide/ata.c: Use correct macro from RTEMS to determine whether simple or PIC interrupt model.
2010-01-19libblock API updateThomas Doerfler1-24/+16
2009-12-18Update for block device API changeThomas Doerfler1-1/+1
2009-11-30Whitespace removal.Ralf Corsepius1-26/+26
2009-11-122009-11-12 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-3/+4
* libchip/ide/ata.c (rtems_ata_initialize): Avoid implicit cast to uint16_t.
2009-11-122009-11-12 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* libchip/ide/ata.c (ata_non_data_request): Change arg from int to uint32_t (16bit ints are too small).
2009-10-13Update for block device API change.Thomas Doerfler1-5/+5
2009-10-082009-10-08 Chris Johns <chrisj@rtems.org>Chris Johns1-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-052009-10-05 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-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-012009-10-01 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-19/+7
* libchip/ide/ata.c: Use simple vectored CPU macro to select interrupt model.
2009-07-222009-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-0/+2
* libchip/ide/ata.c: Remove warning.
2009-06-122009-06-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-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-302009-05-30 Chris Johns <chrisj@rtems.org>Chris Johns1-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-292009-04-29 Chris Johns <chrisj@rtems.org>Chris Johns1-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.
2008-09-07Convert to "bool".Ralf Corsepius1-20/+20
2008-08-18Add missing prototypes.Ralf Corsepius1-2/+2
2008-08-022008-08-02 Chris Johns <chrisj@rtems.org>Chris Johns1-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-292008-07-29 Chris Johns <chrisj@rtems.org>Chris Johns1-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-032008-07-03 Chris Johns <chrisj@rtems.org>Chris Johns1-16/+16
* ata.c: Change to the Chains API.
2008-05-072008-05-07 Till Straumann <strauman@slac.stanford.edu>Joel Sherrill1-0/+18
PR 649/bsps * libchip/ide/ata.c: Give up if the interface does not become ready.
2007-07-10compilable release of virtex/gen83xx/gen5200 powerpc adaptations. Merged ↵Thomas Doerfler1-1/+1
many different versions of new exception handling code to shared sources.
2007-02-062007-02-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-5/+5
* libchip/ide/ata.c: Remove superfluous type casts.
2007-02-06Use size_t for sizes.Ralf Corsepius1-1/+1
2007-01-21mproved gen5200 MSCAN driverThomas Doerfler1-1/+2
fixed synchronization bug between ata.c and bdbuf.c
2006-07-09applied patches for PR1117/1118/1119/1120Thomas Doerfler1-1/+4
2006-03-072006-03-07 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>Joel Sherrill1-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-202004-11-20 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>:Ralf Corsepius1-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.
2004-04-20Remove stray white spaces.Ralf Corsepius1-307/+307
2004-04-15Remove stray white spaces.Ralf Corsepius1-1/+0
2004-04-012004-04-01 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-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>.