| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This patch is a part of the BSP source reorganization.
Update #3285.
|
|
|
|
| |
Update #3254.
|
|
|
|
| |
Update #3082.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* libchip/ide/ata.c: Make ata_interrupt_on, ata_interrupt_off,
ata_interrupt_isOn static.
|
|
|
|
|
| |
PR 1975/misc
* libchip/ide/ata.c, libchip/ide/ata_util.c: Fixed warnings.
|
|
|
|
|
| |
* libchip/ide/ata.c: Make ata_interrupt_handler static.
* libchip/ide/ide_controller.c: Include libchip/ide_ctrl.h.
|
|
|
|
| |
* libchip/ide/ata.c: Fix spelling.
|
|
|
|
| |
* libchip/ide/ata.c: Do not violate chain API.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* libchip/i2c/spi-sd-card.c, libchip/ide/ata.c: PR
1448/filesystem.
|
|
|
|
|
| |
* libchip/ide/ata.c: Change missed use of ATA_USE_OLD_EXCEPTIONS to
CPU_SIMPLE_VECTORED_INTERRUPTS.
|
|
|
|
|
| |
* libchip/ide/ata.c: Use correct macro from RTEMS to determine whether
simple or PIC interrupt model.
|
| |
|
| |
|
| |
|
|
|
|
| |
* libchip/ide/ata.c (rtems_ata_initialize): Avoid implicit cast to uint16_t.
|
|
|
|
|
| |
* libchip/ide/ata.c (ata_non_data_request): Change arg from int to
uint32_t (16bit ints are too small).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* libchip/ide/ata.c: Use simple vectored CPU macro to select interrupt
model.
|
|
|
|
| |
* libchip/ide/ata.c: Remove warning.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* c/src/libchip/ide/ata.c: Fixed the bug that ignored slave
devices on an IDE bus and cleaned up the initialisation register
call.
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
|
|
| |
* libchip/i2c/spi-sd-card.c, libchip/ide/ata.c: Remove
rtems_blkdev_request count and start references. Use
RTEMS_BLKDEV_START_BLOCK.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* ata.c: Change to the Chains API.
|
|
|
|
|
| |
PR 649/bsps
* libchip/ide/ata.c: Give up if the interface does not become ready.
|
|
|
|
| |
many different versions of new exception handling code to shared sources.
|
|
|
|
| |
* libchip/ide/ata.c: Remove superfluous type casts.
|
| |
|
|
|
|
| |
fixed synchronization bug between ata.c and bdbuf.c
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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>.
|