summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/network (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-04-04bsps: Move libchip to bspsSebastian Huber23-21518/+0
This patch is a part of the BSP source reorganization. Update #3285.
2018-01-31bsps: Move network define to source filesSebastian Huber10-0/+20
Define __INSIDE_RTEMS_BSD_TCPIP_STACK__ in the network interface driver source files to avoid some build system magic.
2018-01-25Remove make preinstallChris Johns10-3909/+0
A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.
2018-01-22bsps: Move wd80x3.h to libchip/wd80x3.hSebastian Huber1-0/+139
This header is used also by the motorola_powerpc BSP. Update #3254.
2018-01-15libchip: Use public include pathSebastian Huber1-1/+1
Update #3254.
2018-01-04libchip: Use public include pathChris Johns4-4/+4
Update #3254.
2017-07-19libchip: Fix format warningSebastian Huber1-1/+1
2017-06-13bsp: Fixes due to header file changesSebastian Huber1-8/+19
Update #2833.
2017-06-09if_fxp: Include missing <inttypes.h>Sebastian Huber1-5/+6
Fix format warnings.
2017-06-07Do not include <sys/ioctl.h> in kernel-spaceSebastian Huber1-1/+0
Update #2833.
2017-06-07network: Include missing <inttypes.h>Sebastian Huber1-0/+1
Update #2833.
2017-04-20elnk.c: Fix printf() format warningsJoel Sherrill1-3/+9
2017-04-20elnk.c: rtems_elnk_driver_attach() prototype addedJoel Sherrill1-0/+3
2017-04-20elnk.c: Make elnk_txDaemon() static to fix warningJoel Sherrill1-1/+1
2017-04-20if_fxp.c: Add prototype of rtems_fxp_attach()Joel Sherrill1-0/+3
2017-04-20if_fxp.c: Remove unused variableJoel Sherrill1-1/+1
2017-04-20dec21140.c: Add prototype of dec21140_txDaemon()Joel Sherrill1-0/+2
2017-04-20dec21140.c: Fix printk() warningsJoel Sherrill1-3/+3
2017-04-20dec21140.c: Include <libcpu/page.h> to eliminate warningsJoel Sherrill1-0/+1
2017-04-20dec21140.c: Fix PRIxx formatterJoel Sherrill1-1/+1
2017-04-14libchip/network/dec21140.c: Use inttypes.h to fix 1 warning.Cillian O'Donnell1-1/+3
2016-10-17libchip/network/if_fxp.c: do not use rtems_interrupt_disable.Pavel Pisa1-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.
2016-09-21classic networking: adapt FXP driver to work with actual PCI and IRQ code.Pavel Pisa2-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
2016-09-20classic networking: do not reference BSP_irq_enabled_at_i8259s which is no ↵Pavel Pisa4-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.
2016-05-31libchip: Remove dwmac network interface driverSebastian Huber14-6644/+0
The network interface driver for this module is located in the new network stack (libbsd), see file "if_dwc.c".
2016-05-06sonic.c: Fix warning on gcc 6Martin Galvan1-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.
2016-03-10pc386: Eliminate pcibios.h and begin removal obsolete PCI BIOS API usesJoel Sherrill1-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.
2015-03-17libchip/network/if_fxp.c: Do not use rtems_clock_get()Joel Sherrill1-1/+1
2014-09-08libchip/dwmac: Use RTEMS_DEVOLATILE()Sebastian Huber1-4/+11
2014-08-22libchip/dwmac: Make PHY address user configurableChristian Mauderer3-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.
2014-06-05GRETH: remove TCP/UDP HW checksum generationDaniel Hellstrom1-2/+2
The GRETH doesn't support IP fragments.
2014-04-30libchip: Add asserts to dwmac driverRalf Kirchner1-0/+3
2014-04-30libchip: Correct netstats message for dwmac driverRalf Kirchner1-1/+1
2014-04-17libchip: Correct error handling in dwmac driverRalf Kirchner1-11/+4
By fault an rtems_status_code has been expected instead of an errno error number.
2014-04-17libchip: Reduce tx interruptsRalf Kirchner4-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.
2014-04-17libchip: CleanupRalf Kirchner1-2/+2
2014-04-17libchip: Improve handling of DMA suspendsRalf Kirchner1-0/+1
Reset the corresponding DMA status bit
2014-03-31libchip: Avoid __DEVOLATILE()Sebastian Huber1-11/+9
2014-03-21greth: Make local functions static, remove overflow and correct printf call.Daniel Cederman1-6/+8
2014-03-21smc91111: Move driver attach prototype to header file.Daniel Cederman2-3/+8
Also signal to compiler that the start variable in lan91cxx_recv is only used when debugging.
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns9-9/+9
2014-03-14libchip: Relax buffer counts and add fatal errorRalf Kirchner1-2/+13
2014-03-14libchip: Include <bsp.h> BSP options definitionSebastian Huber1-2/+2
2014-03-13libchip: Check interrupt extension availabilitySebastian Huber1-0/+13
2014-03-13libchip: Avoid <bsp/utility.h>Sebastian Huber2-578/+612
2014-03-13libchip: Add dwmac 10/100/1000 network driverRalf Kirchner14-0/+6526
2013-07-26score: Merge tod implementation into one fileSebastian Huber2-5/+5
Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and TOD_MILLISECONDS_TO_TICKS().
2013-06-19greth: do not advertise 1000M capability if MAC does not support it.Jiri Gaisler1-0/+11
2013-06-19greth: prefer full duplex if availableJiri Gaisler1-3/+3
2013-02-27libchip/network: Fixed warningAndreas Heinig1-1/+2