summaryrefslogtreecommitdiffstats
path: root/c/src/libchip (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename is_internal to always_set_to_falseSebastian Huber2016-12-121-1/+1
| | | | Update #2825.
* libchip/network/if_fxp.c: do not use rtems_interrupt_disable.Pavel Pisa2016-10-171-7/+4
| | | | | | | | | | The single write to memory or ioport output are mostly atomic operations already. The proper memory synchronization barrier should be used around them to guarantee ordering (sync or eieio on PowerPC for example) but because I have not found settable portable primitive only compiler barrier is used. It should be enough on x86 because the externally visible order should be/is guaranteed to be preserved on x86 architecture.
* classic networking: adapt FXP driver to work with actual PCI and IRQ code.Pavel Pisa2016-09-212-106/+98
| | | | | | | | | | | Tested to work with QEMU provided Intel i82557b network controller emulation. qemu-system-x86_64 -enable-kvm -kernel $APP_BINARY \ -vga cirrus \ -append "--console=/dev/com1" \ -serial stdio \ -net nic,vlan=1,macaddr=be:be:be:10:00:01,model=i82557b \ -net tap,ifname=tap1,vlan=1,script=no,downscript=no
* classic networking: do not reference BSP_irq_enabled_at_i8259s which is no ↵Pavel Pisa2016-09-204-31/+4
| | | | | | | more available on i386. This change is required to build RTEMS with classic "--enable-networking" and link applications/tests which reference RTEMS_BSP_NETWORK_DRIVER_ATTACH.
* Make rtems/print.h independent of rtems/bspIo.hSebastian Huber2016-06-221-0/+1
|
* bsps: Fix printk() format warningSebastian Huber2016-06-171-1/+1
|
* bsps: Fix MPCI_Fatal() prototypeSebastian Huber2016-06-172-4/+4
| | | | Close #2742.
* libchip/shmdr/send.c: Fix warning and clean upJoel Sherrill2016-06-161-15/+21
|
* libchip/shmdr/poll.c: Fix warning and clean upJoel Sherrill2016-06-161-5/+8
|
* libchip: Remove dwmac network interface driverSebastian Huber2016-05-3116-6658/+1
| | | | | The network interface driver for this module is located in the new network stack (libbsd), see file "if_dwc.c".
* 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.
* ibchip/ns16550: Minor optimisation.Chris Johns2016-05-111-13/+14
|
* sonic.c: Fix warning on gcc 6Martin Galvan2016-05-061-13/+11
| | | | | | | | | | | | | GCC 6.0 previews give the following warning on sonic.c: ../../../../../rtems/c/src/libchip/network/sonic.c:837:11: warning: statement is indented as if it were guarded by... [-Wmisleading-indentation] This was discussed here: https://lists.rtems.org/pipermail/devel/2016-March/014004.html and we concluded it would be better to rewrite the entire snippet.
* pc386: Eliminate pcibios.h and begin removal obsolete PCI BIOS API usesJoel Sherrill2016-03-101-1/+42
| | | | | | | | | | | | | | | | | | | | This first step eliminates the following as public APIs for the pc386 BSP: + pcib_conf_read8 + pcib_conf_read16 + pcib_conf_read32 + pcib_conf_write8 + pcib_conf_write16 + pcib_conf_write32 The if_fxp.c driver uses these enough where I provided local macros to allow the code to be mostly unmodified. On other architectures these names have been used privately. It will take multiple patches to completely eliminate these symbols from the RTEMS source tree. The focus of the first effort is just to eliminate these as a public pc386 API so support can be added for systems without legacy PCI BIOS.
* libchip/network/if_fxp.c: Do not use rtems_clock_get()Joel Sherrill2015-03-171-1/+1
|
* libchip/i2c/spi-memdrv.c: Do not use rtems_clock_get()Joel Sherrill2015-03-171-7/+4
|
* libchip/serial: Fix warningSebastian Huber2015-03-051-2/+1
|
* libchip: Fix high capacity detection for MMCSebastian Huber2015-01-231-1/+1
| | | | Close #2239.
* libchip/serial/z85c30.c: Remove redundant assignmentJosh Oguin2014-11-261-1/+0
| | | | This was flagged by CodeSonar.
* libchip/serial/ns16550* and z8530*: Assert on baud number to avoid divide by 0Josh Oguin2014-11-263-1/+14
| | | | | | 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.
* libchip/display/disp_hcms29xx.c: Remove useless variable and checkJosh Oguin2014-11-261-6/+1
| | | | This was flagged by CodeSonar.
* Delete or rename MIN/MAX macros and definesSebastian Huber2014-11-211-1/+1
| | | | Include <sys/param.h> if necessary to get the MIN()/MAX() macros.
* arm/nds: Warning clean upJoel Sherrill2014-10-101-1/+3
| | | | | | 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.
* libchip/rtc/mc146818a.c: Compiles again and clean upJoel Sherrill2014-10-101-6/+14
|
* libchip/rtc/mc146818a*: Fix prototypes to use uintptr_t and fix set but ↵Joel Sherrill2014-10-092-11/+17
| | | | unused warning
* libchip/serial: Task driven mode for NS16550Sebastian Huber2014-10-072-12/+120
|
* libchip/serial: Fix NS16550 for pppstart()Sebastian Huber2014-10-072-18/+40
| | | | | | | 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.
* libchip/serial: Add alternative NS16550 driverSebastian Huber2014-10-075-88/+798
| | | | Use the Termios device API.
* libchip/dwmac: Use RTEMS_DEVOLATILE()Sebastian Huber2014-09-081-4/+11
|
* Regenerate all preinstall.am files.Chris Johns2014-08-291-6/+6
| | | | | With this patch the preinstall.am files are in a set order and not dependent on now perl implements a hash.
* libchip/dwmac: Make PHY address user configurableChristian Mauderer2014-08-223-12/+30
| | | | | | 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.
* GRETH: remove TCP/UDP HW checksum generationDaniel Hellstrom2014-06-051-2/+2
| | | | The GRETH doesn't support IP fragments.
* libchip: Add asserts to dwmac driverRalf Kirchner2014-04-301-0/+3
|
* libchip: Correct netstats message for dwmac driverRalf Kirchner2014-04-301-1/+1
|
* libchip: Correct error handling in dwmac driverRalf Kirchner2014-04-171-11/+4
| | | | By fault an rtems_status_code has been expected instead of an errno error number.
* libchip: Reduce tx interruptsRalf Kirchner2014-04-174-222/+262
| | | | | | | 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.
* libchip: CleanupRalf Kirchner2014-04-171-2/+2
|
* libchip: Improve handling of DMA suspendsRalf Kirchner2014-04-171-0/+1
| | | | Reset the corresponding DMA status bit
* libchip: SMP support for NS16550Sebastian Huber2014-04-161-19/+22
|
* libchip: Avoid __DEVOLATILE()Sebastian Huber2014-03-311-11/+9
|
* SPI SD-Card: adapt common driver code to block devices core API changes.Pavel Pisa2014-03-311-3/+3
|
* greth: Make local functions static, remove overflow and correct printf call.Daniel Cederman2014-03-211-6/+8
|
* smc91111: Move driver attach prototype to header file.Daniel Cederman2014-03-212-3/+8
| | | | Also signal to compiler that the start variable in lan91cxx_recv is only used when debugging.
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-2180-80/+80
|
* libchip: Relax buffer counts and add fatal errorRalf Kirchner2014-03-141-2/+13
|
* libchip: Include <bsp.h> BSP options definitionSebastian Huber2014-03-141-2/+2
|
* libchip: Check interrupt extension availabilitySebastian Huber2014-03-131-0/+13
|
* libchip: Avoid <bsp/utility.h>Sebastian Huber2014-03-132-578/+612
|
* libchip: Add dwmac 10/100/1000 network driverRalf Kirchner2014-03-1316-1/+6540
|
* 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.