720 Commits

Author SHA1 Message Date
Sebastian Huber
a661df04db if_atsam: Fix interface stop
Close #4651.
2022-05-11 16:09:00 +02:00
Sebastian Huber
c1b15c7558 if_atsam: Support transmit bpf
Update #4651.
2022-05-11 16:08:57 +02:00
Sebastian Huber
2a174be01e if_atsam: Do not use rtems_bsdnet_newproc()
Update #4651.
2022-05-11 16:08:53 +02:00
Sebastian Huber
245ca940bb if_atsam: Support IFCAP_VLAN_HWTAGGING
This is required to enable checksum offload for vlan interfaces.

Update #4651.
2022-05-11 16:08:50 +02:00
Sebastian Huber
204a4873d7 if_atsam: Optimize receive
Do not use the interface mutex in the receive loop.  Avoid multiple
reads of DMA descriptor words.  Use a compile-time constant for the
receive DMA descriptor count to simplify calculations.

Update #4651.
2022-05-11 16:08:46 +02:00
Sebastian Huber
1fee8dd095 if_atsam: Optimize transmit
Use the transmit interface handler to avoid a transmit task/interrupt.
Use a compile-time constant for the transmit DMA descriptor count to
simplify calculations.

Update #4651.
2022-05-11 16:08:42 +02:00
Sebastian Huber
58162da5f2 if_atsam: Add multicast support
Update #4651.
2022-05-11 16:08:38 +02:00
Sebastian Huber
1fe1bc6de4 if_atsam: Fix start/stop of interface
Update #4651.
2022-05-11 16:08:35 +02:00
Sebastian Huber
46ec9d75b3 if_atsam: Fix interrupt setup
The interrupt is enabled by rtems_interrupt_handler_install().

Update #4651.
2022-05-11 16:08:31 +02:00
Sebastian Huber
4780eff5c5 if_atsam: Do not disable the Ethernet CRC
The Ethernet CRC and padding must be always generated by the MAC.

Update #4651.
2022-05-11 16:08:28 +02:00
Sebastian Huber
79e742182f if_atsam: Enable all capabilities
Update #4651.
2022-05-11 16:08:24 +02:00
Sebastian Huber
a4b878cde8 if_atsam: Fix warnings
Update #4651.
2022-05-11 16:08:08 +02:00
Christian Mauderer
2ce166bd37 ppp: Fix transmitting data
The pppstart expected that a driver write would somehow magically
process all data passed to the write function. Because ppp disables all
buffering that originally has been in termios, that assumption is not
true for all but polled drivers.

With this patch, the pppstart now gets and processes the feedback that
is returned from the driver via rtems_termios_dequeue_characters.

Fixes #4494
2022-02-10 09:24:10 +01:00
Chris Johns
332cc9f47b bsp/motorola_powerpc: Add dc, ukphy and legacy PCI support
- Add the dc net dev to the BSP

- Add the ukphy support

- Add PCI Legacy bus support to the PowerPC

Closes #4514
2021-09-18 17:52:31 +10:00
Chris Johns
afb361690c rtemsbsd/bus: Add PCI support to the nexus bus
- Add PCI IO region support

- Add support map buffers to PCI address space

- Add BSP conditional IO space support. Some PC implementations
  have PCI IO space mapped differently to memory space and this needs
  to be reflected in the busspace.

- Include bsp.h to pick per BSP configuration.

Closes #4514
2021-09-18 17:52:15 +10:00
Sebastian Huber
debc0aed8b NVD(4): Fix logical block count calculation
Close #4165.
2020-10-27 06:25:17 +01:00
Sebastian Huber
491666ad28 NVD(4): Fix NULL pointer access in nvd_sync()
Update #4165.
2020-10-27 06:24:58 +01:00
Sebastian Huber
0099e16d9c ifmcstat: Port to RTEMS
Update #4073.
2020-09-10 13:28:31 +02:00
Sebastian Huber
80640fc843 nfsclient: Next attempt to fix 64-bit targets
In serporidok use the same structures used to hand over to the XDR
encode/decode routines.  We must not mix packed and unpacked structures.

Close #4024.
2020-08-18 07:18:41 +02:00
Sebastian Huber
26866d2c1f Fix linker errors with minimal build set 2020-07-08 10:21:20 +02:00
Jan Sommer
a69293ca57 i386: Port to RTEMS
- Update imported files to compile rtems-libbsd for i386 based BSPs
- Mostly commenting out parts which create compile or link errors in
RTEMS, but aren't needed
2020-04-17 13:18:06 +02:00
Jan Sommer
dc86c55f51 i386: Delete old machine dependent files
- The files in the i386 directory have been moved to common x86 directories by FreeBSD:
  - freebsd/sys/x86/x86/legacy.c
  - freebsd/sys/x86/include/machine/legacyvar.h
  - freebsd/sys/x86/include/machine/specialreg.h
- Add header files in rtemsbsd directory to direct compiler to new files
2020-04-17 13:15:51 +02:00
Christian Mauderer
c5455b03ed ehci_imx: Add to build. 2020-04-15 16:14:18 +02:00
Christian Mauderer
113662dfaf Add support for i.mx cache.
Update #3869.
2020-04-14 16:39:21 +02:00
Christian Mauderer
24806eec09 regulator: Add to build.
Update #3869.
2020-04-14 16:39:20 +02:00
Christian Mauderer
3a1d48c70c imx6_ccm: Add and build module.
Update #3869.
2020-04-14 16:39:20 +02:00
Sebastian Huber
64c45b5a1a usb_busdma: Add USB_NEED_BUSDMA_COHERENT_ALLOC
Some BSPs have a cache-coherent memory area, however, it should not be
used for the USB controller.
2020-04-14 16:39:20 +02:00
Sebastian Huber
039afd9816 nfsclient: Use a system event for RPC
Aviod conflicts with application events.
2020-03-18 08:26:09 +01:00
Sebastian Huber
46b3858b27 Update to FreeBSD stable/12 2020-02-10
Git mirror commit 0d1c391321b34b3025cf0e72f2231d836ff76da8.
2020-02-18 15:00:48 +01:00
Sebastian Huber
afaeccc05a NVMECONTROL(8): Port to RTEMS
Update #3821.
2019-11-13 13:22:36 +01:00
Sebastian Huber
e7291f7ac3 NVD(4): Add RTEMS-specific NVMe disk driver
Update #3821.
2019-11-13 13:22:23 +01:00
Sebastian Huber
da6b9a1891 NVME(4): Port to RTEMS
Update #3821.
2019-11-13 13:22:10 +01:00
Sebastian Huber
b5f802ef43 Add support for EARLY_COUNTER 2019-09-25 10:59:50 +02:00
Sebastian Huber
f105680799 Remove obsolete header files 2019-09-25 09:26:20 +02:00
Sebastian Huber
4a6660cee0 Fix pgsigio() warnings 2019-09-25 09:25:06 +02:00
Sebastian Huber
8618727d51 Add compatiblity for older Newlib variants 2019-09-25 09:24:09 +02:00
Sebastian Huber
37323bb819 Update to FreeBSD stable/12 2019-09-23
Git mirror commit 7e8d1444023128d34fb9aa4e4515928a4f794d1b.
2019-09-23 15:07:12 +02:00
Sebastian Huber
bd6b20c0e6 nexus: Avoid NULL pointer access 2019-09-23 10:13:29 +02:00
Sebastian Huber
54e8636b8d C++ compatiblity for kernel space header 2019-09-23 10:13:28 +02:00
Sebastian Huber
d1c8a7fbf5 Add wrapper for strndup() 2019-09-11 10:25:04 +02:00
Sebastian Huber
02da5d3a82 atomic.h: Add atomic_load_long() 2019-08-27 09:50:05 +02:00
Sebastian Huber
3411e3d738 Update to FreeBSD stable/12 2019-08-26
Git mirror commit 621e7bafbf6857451f23ba11b0495c7ac69aff89.
2019-08-26 09:39:40 +02:00
Nils Hölscher
fd86c091b9 rtems/rtems-kernel-nexus.c: LibBSD init now uses all pass levels.
I observed all Modules loading in the last fdt pass.
The reason was, nexus bus loading with BUS_PASS_DEFAULT.
2019-08-12 08:13:11 +02:00
Sebastian Huber
5283630d2c Update to FreeBSD stable/12 2019-07-09
Git mirror commit 3427c3416aa3c0f25124070959cca78024b94d85.
2019-07-09 14:45:47 +02:00
Sebastian Huber
312f705d4f EPOCH(9): Add epoch_drain_callbacks() 2019-07-09 13:56:23 +02:00
Sebastian Huber
ed1a63384b EPOCH(9): Avoid inline functions
FreeBSD changed the epoch_enter() and epoch_exit() inline functions into
proper functions after a performance analysis to avoid code bloat.
2019-07-09 13:37:34 +02:00
Sebastian Huber
660a8835eb SLEEPQUEUE(9): Fix timeout handling 2019-07-05 10:20:47 +02:00
Sebastian Huber
7ece7548c1 Update to FreeBSD stable/12 2019-06-26
Git mirror commit aa83598855d14cdbf7aef6b05d0617e90f87ca2f.
2019-06-26 13:44:21 +02:00
Sebastian Huber
eeb3fd5d9b if_atsam: Remove WDT_Disable()
The watchdog timer (WDT) can be configure only once.  Do not touch it in
the BSP since the application may want to use it.
2019-06-13 08:57:41 +02:00
Sebastian Huber
705e362ea5 Update to FreeBSD stable/12 2019-06-05
Git mirror commit 78576620f2689e23144a1cf1bf55106cc6abe2b7.
2019-06-05 14:16:00 +02:00