Commit Graph
591 Commits
Author SHA1 Message Date
Sebastian Huber 5155069b23 libchip/serial: Fix warning 2015-03-05 11:23:09 +01:00
Sebastian Huber 2f16001d98 libchip: Fix high capacity detection for MMC
Close #2239.
2015-01-23 11:24:01 +01:00
Josh Oguin aed6e1de21 libchip/serial/z85c30.c: Remove redundant assignment
This was flagged by CodeSonar.
2014-11-26 07:51:57 -06:00
Josh Oguin 02958c5e53 libchip/serial/ns16550* and z8530*: Assert on baud number to avoid divide by 0
This was flagged by CodeSonar. It should be impossible to get an
incorrect baud number back but ensure this in debug mode. The _Assert()
keeps their scanner from evaluating for divide by 0 past this point.
2014-11-26 07:51:57 -06:00
Josh Oguin 0ad1e8001f libchip/display/disp_hcms29xx.c: Remove useless variable and check
This was flagged by CodeSonar.
2014-11-26 07:51:57 -06:00
Sebastian Huber 11925eef78 Delete or rename MIN/MAX macros and defines
Include <sys/param.h> if necessary to get the MIN()/MAX() macros.
2014-11-21 08:52:29 +01:00
Joel Sherrill ef4c4612e2 arm/nds: Warning clean up
This patch eliminates most of the warnings in this BSP but attempts
very little clean up. This BSP includes copies of a lot of code
from free NDS libraries and modifications should be kept to a minimum.
2014-10-10 10:17:33 -05:00
Joel Sherrill 6adacd8971 libchip/rtc/mc146818a.c: Compiles again and clean up 2014-10-10 10:17:17 -05:00
Joel Sherrill 79f093bdd1 libchip/rtc/mc146818a*: Fix prototypes to use uintptr_t and fix set but unused warning 2014-10-09 10:11:58 -05:00
Sebastian Huber 8a9bdc565f libchip/serial: Task driven mode for NS16550 2014-10-07 16:35:20 +02:00
Sebastian Huber 2fd3e65fac libchip/serial: Fix NS16550 for pppstart()
Call rtems_termios_dequeue_characters() only in case all characters of
the last write handler invocation have been transmitted.  This avoids
problems with pppstart() since the start line discipline does not know
how many characters have been dequeued and assumes the maximum.
2014-10-07 16:35:20 +02:00
Sebastian Huber 6ec438e8a3 libchip/serial: Add alternative NS16550 driver
Use the Termios device API.
2014-10-07 16:35:20 +02:00
Sebastian Huber ddf8d1297f libchip/dwmac: Use RTEMS_DEVOLATILE() 2014-09-08 07:53:02 +02:00
Chris Johns 59990cc975 Regenerate all preinstall.am files.
With this patch the preinstall.am files are in a set order and not
dependent on now perl implements a hash.
2014-08-29 12:48:01 +10:00
Christian Mauderer d5f5432967 libchip/dwmac: Make PHY address user configurable
This patch allows the user to configure the PHY address for the DWMAC
driver by giving a pointer to a dwmac_user_cfg structure to network
stack via rtems_bsdnet_ifconfig::drv_ctrl.
2014-08-22 11:48:27 +02:00
Daniel Hellstrom a20c114f4a GRETH: remove TCP/UDP HW checksum generation
The GRETH doesn't support IP fragments.
2014-06-05 09:34:51 +02:00
Ralf Kirchner b0e83e1207 libchip: Add asserts to dwmac driver 2014-04-30 14:53:17 +02:00
Ralf Kirchner 64bc102fbf libchip: Correct netstats message for dwmac driver 2014-04-30 14:53:17 +02:00
Ralf Kirchner a38d4a37bc libchip: Correct error handling in dwmac driver
By fault an rtems_status_code has been expected instead of an errno error number.
2014-04-17 13:24:08 +02:00
Ralf Kirchner 1613a01bb0 libchip: Reduce tx interrupts
Reduce number of packet transmitted interrupts by using the interrupt mechanism only
if we run out of DMA descriptors.
Under normal conditions regaining DMA descriptors, mbufs and clusters is handled
via a counter.
2014-04-17 13:24:07 +02:00
Ralf Kirchner f28b8d4595 libchip: Cleanup 2014-04-17 13:24:07 +02:00
Ralf Kirchner 18fe64a2ca libchip: Improve handling of DMA suspends
Reset the corresponding DMA status bit
2014-04-17 13:24:07 +02:00
Sebastian Huber 598f39cd87 libchip: SMP support for NS16550 2014-04-16 09:07:33 +02:00
Sebastian Huber 8118b67065 libchip: Avoid __DEVOLATILE() 2014-03-31 18:31:52 +02:00
Pavel Pisa 3c21ad7db0 SPI SD-Card: adapt common driver code to block devices core API changes. 2014-03-31 10:14:43 +02:00
Daniel Cederman e4b5085344 greth: Make local functions static, remove overflow and correct printf call. 2014-03-21 09:57:27 -05:00
Daniel Cederman 5130248e12 smc91111: Move driver attach prototype to header file.
Also signal to compiler that the start variable in lan91cxx_recv is only used when debugging.
2014-03-21 09:57:18 -05:00
Chris Johns c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Ralf Kirchner 5dc268f96d libchip: Relax buffer counts and add fatal error 2014-03-14 16:01:33 +01:00
Sebastian Huber ebb6a8d059 libchip: Include <bsp.h> BSP options definition 2014-03-14 08:43:47 +01:00
Sebastian Huber 9a8bf95b3b libchip: Check interrupt extension availability 2014-03-13 16:47:38 +01:00
Sebastian Huber 062f95328b libchip: Avoid <bsp/utility.h> 2014-03-13 16:47:38 +01:00
Ralf Kirchner 4953b72490 libchip: Add dwmac 10/100/1000 network driver 2014-03-13 16:21:55 +01:00
Sebastian Huber ae88aa7927 sapi: Use one SMP lock for all chains
This partially reverts commit 1215fd4d94.

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.
2014-03-11 10:58:09 +01:00
Sebastian Huber e16a7ba121 libchip/serial: Documentation 2014-01-23 15:59:25 +01:00
Pavel Pisa 382f714a6e SPI SD-Card: setup valid CRC-7 for STOP_TRANSMISSION command.
STOP_TRANSMISSION command is used to finish READ_MULTIPLE_BLOCK
command and its format is regular command format.
It requires valid CRC-7 to have effect at least on
same cards types else it is ignored and attempt
to issue next READ or WRITE commands results in
illegal command condition (0x04) preceded by strange
(0x3f) for tested card.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2013-10-08 11:14:03 +02:00
Sebastian Huber 1215fd4d94 sapi: SMP support for chains
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-08-30 11:16:28 +02:00
Sebastian Huber 88c74ab115 score: Merge tod implementation into one file
Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and
TOD_MILLISECONDS_TO_TICKS().
2013-07-26 11:55:47 +02:00
Sebastian Huber 39046f766f score: Merge sysstate API into one file 2013-07-24 11:11:21 +02:00
Sebastian Huber 7660e8b347 Include missing <string.h> 2013-07-23 15:12:54 +02:00
Sebastian Huber 7306578c42 bsps/serial: Move bsp_console_select() declaration 2013-07-17 08:19:59 +02:00
Sebastian Huber 85d2e4b58f libchip/ata: Remove dead code 2013-07-16 19:09:25 +02:00
Joel Sherrill 48a22edb4a libchip ns16550.c: Improve comment 2013-07-09 12:40:51 -05:00
Sebastian Huber e310dcddd0 libchip/serial: Add const qualifier 2013-06-29 15:15:50 +02:00
Sebastian Huber f97f46ce75 libchip/serial: Fix warning 2013-06-21 10:26:11 +02:00
Jiri Gaisler 45fecbb6db greth: do not advertise 1000M capability if MAC does not support it. 2013-06-19 08:21:49 -05:00
Jiri Gaisler 1bdc6d1d5c greth: prefer full duplex if available 2013-06-19 08:21:49 -05:00
Sebastian Huber 15f3a91858 libchip: Use Termios API change for NS16550
This avoids a race condition on SMP configurations.
2013-06-12 16:12:52 +02:00
Sebastian Huber 6896ca22bb libchip: Delete superfluous assignments 2013-06-12 16:12:52 +02:00
Sebastian Huber 65cd5e94f2 libchip/serial: Fix warnings 2013-04-08 16:42:37 +02:00