743 Commits

Author SHA1 Message Date
Sebastian Huber
3150b37022 if_atsam: Add multicast support
Update #4652.
2022-05-11 16:05:26 +02:00
Sebastian Huber
f4efcbfda5 if_atsam: Fix start/stop of interface
Update #4652.
2022-05-11 16:05:26 +02:00
Sebastian Huber
339ba3dd9f if_atsam: Fix interrupt setup
The interrupt is enabled by rtems_interrupt_handler_install().

Update #4652.
2022-05-11 16:05:26 +02:00
Sebastian Huber
5b62a8bfa1 if_atsam: Do not disable the Ethernet CRC
The Ethernet CRC and padding must be always generated by the MAC.

Update #4652.
2022-05-11 16:05:26 +02:00
Sebastian Huber
c58bb6095a if_atsam: Enable all capabilities
Update #4652.
2022-05-11 16:05:25 +02:00
Sebastian Huber
73c764a70e if_atsam: Fix warnings
Update #4652.
2022-05-11 16:05:25 +02:00
Heinz Junkes
878713ba45 if_mve: Add MV643XX Ethernet driver
Close #4345.
2022-03-07 10:53:16 +01:00
Sebastian Huber
1b6529ee94 rtems-bsd-program.h: Remove stray ';' 2022-02-23 15:57:30 +01:00
Christian Mauderer
0b883f311e 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.

Update #4493
2022-02-10 09:15:58 +01:00
Gedare Bloom
8f870a3593 aarch64/nexus: add GEM definitions for Versal 2021-06-25 13:02:38 -06:00
Sebastian Huber
df8f5fc876 EPOCH(9): Fix epoch call and drain
Since the epoch call callbacks may lock/unlock a mutex the callbacks must be
called from within thread context with thread dispatching enabled.  Use thread
pinning to ensure that the calling thread stays on the right processor.  Use
the interrupt server to ensure the thread context for the epoch drain.
2021-06-11 08:39:26 +02:00
Sebastian Huber
fb6a312bd6 EPOCH(9): Use PER_CPU_DATA_NEED_INITIALIZATION()
Use the PER_CPU_DATA_NEED_INITIALIZATION() macro if necessary to request an
initialization of the per-CPU data.
2021-06-10 10:07:57 +02:00
Jan Sommer
5b82fcf06a i386: Remove unneeded include header files 2021-06-07 10:39:46 +02:00
Ryan Long
5e7ef1252b libbsd nfs.c: Change filesystem utime_h handler to utimens_h
Changed nfs_utime() to nfs_utimens(), changed the arguments to use
a timespec array instead of individual variables for access and
modified time.

Updates #4400
2021-05-28 14:28:20 -05:00
G S Niteesh Babu
5251e0c816 iicbus/rtems-i2c.c: Add rtems,path as an additional bus path
Adds "rtems,path" as an additional bus path for the i2c driver.
Previously the bus path was provided in "rtems,i2c-path" property
only.
2021-04-22 18:45:50 +02:00
Christian Mauderer
829afafbcb st-sdmmc: Handle short not cache aligned buffers
Possible data sources for SD driver:

- mmc_sd_switch():
    - length: 64 byte;
    - buffer on stack
- mmc_test_bus_width():
    - length: 4 or 8 byte
    - buffer in program memory or on stack
- mmc_app_send_scr():
    - length: 8 byte
    - buffer from device ivar structure
- mmc_app_sd_status():
    - length: 64 byte
    - buffer from device ivar structure
- mmc_send_ext_csd():
    - length: MMC_EXTCSD_SIZE = 512
    - buffer from device ivar structure
- rtems_bsd_mmcsd_disk_read_write():
    - length: depends on read
    - buffer from rtems_blkdev buffer -> already aligned
- mmcsd_ioctl_cmd():
    - length: depends on call
    - buffer malloced, not aligned -> patched in RTEMS

So the problematic buffers are only the ones up to 512 bytes. Copy these data
into a buffer to avoid that problem.
2021-04-19 09:03:40 +02:00
Vijay Kumar Banerjee
9b9a976847 Revert "Import telnetd from RTEMS repository"
This reverts commit 1b07480ddc93c10777eff5072e7621ed0c96d30c.
2021-04-13 12:16:50 -06:00
Vijay Kumar Banerjee
1b07480ddc Import telnetd from RTEMS repository
The files have been taken from RTEMS repository with head commit at
bd9e45d91f77657445400bc2c814f251c9e37cef
2021-04-07 19:15:51 -06:00
Christian Mauderer
5e175b5f74 STM32H7: Fix SDMMC build for all other BSPs 2021-04-01 15:51:28 +02:00
Christian Mauderer
1bb4a56e4d STM32H7: Add SDMMC driver
Update #4372
2021-04-01 09:05:53 +02:00
G S Niteesh Babu
3cdf289424 arm/ti/ti_pinmux: Remove TI pinmux driver
The TI driver has been moved to RTEMS so the driver can be removed
from libBSD.

The following files have been removed from libBSD and moved to
RTEMS.
1) ti/am335x/am335x_scm_padconf.c
2) ti/am335x/am335x_scm_padconf.h
3) ti/ti_pinmux.c
4) ti/ti_pinmux.h

Update #3784
2021-03-21 12:35:04 +01:00
Kinsey Moore
98d197895b Add CGEM definitions for ZynqMP 2020-11-24 08:49:49 -06:00
Christian Mauderer
5cb4146627 imxrt: Add support
Update #4180
2020-11-20 08:56:30 +01:00
Kinsey Moore
9f52a0df17 Update arm64/aarch64 support 2020-11-13 12:34:01 -06:00
Sebastian Huber
3ad2cea0c5 dwc_otg: Enable voltage detector
Update #3910.
2020-10-27 06:33:07 +01:00
Sebastian Huber
6c83023331 dwc_otg: Add support for nexus bus
Update #3910.
2020-10-27 06:33:05 +01:00
Sebastian Huber
c28f67a9be if_stmac: Add driver for STM32H7 ethernet module
Update #3910.
2020-10-27 06:33:02 +01:00
Sebastian Huber
9fa7bcf55a NVD(4): Fix logical block count calculation
Close #4164.
2020-10-27 06:27:06 +01:00
Sebastian Huber
9f196b281c NVD(4): Fix NULL pointer access in nvd_sync()
Update #4164.
2020-10-27 06:27:01 +01:00
Chris Johns
bff15c3326 powerpc/nexus: Add legacy PCI support to PowerPC Motorola Shared BSP family 2020-10-26 07:42:09 +11:00
Sebastian Huber
b6c55e1c57 tsc_lpc32xx.c: Update due to API changes 2020-09-23 07:40:07 +02:00
Sebastian Huber
5f29d17bee linux/crc32.h: Update due to API changes 2020-09-22 17:31:19 +02:00
Sebastian Huber
48e33f00e4 linux/genalloc.h: Update due to API changes 2020-09-21 15:19:36 +02:00
Jan Sommer
66019c3e78 i386: Delete old machine dependent files
- The files in the i386 directory have been moved to common x86 directories by FreeBSD:
  - freebsd/sys/i386/include/machine/bus.h
  - 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-09-16 15:52:58 +10:00
Sebastian Huber
d2d3fabf30 rtems-bsd-cxx: Undefine _GNU_SOURCE
At least the powerpc C++ compiler defines currently _GNU_SOURCE due to a GCC
configuration error.  This leads to conflicting qsort_r() definitions.

As a workaround undefine _GNU_SOURCE for this C++ compatibility test file.

Update #4078.
2020-09-14 17:13:41 +02:00
Sebastian Huber
d56d9b6d3b ifmcstat: Port to RTEMS 2020-09-10 13:24:18 +02:00
Sebastian Huber
b35ea8c6d1 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 #4025.
2020-08-18 07:35:40 +02:00
Sebastian Huber
c60c10e4f7 Fix linker errors with minimal build set 2020-08-06 13:22:42 +02:00
Sebastian Huber
3e4ebf3bf3 Conditionally include <bsp/linker-symbols.h>
Remove superfluous <bsp.h> include.
2020-08-05 15:06:00 +02:00
Christian Mauderer
828969e525 imx: Don't use USB_NEED_BUSDMA_COHERENT_ALLOC
That option makes problems with some drivers because the buffers are not
allways cache line aligned.

Update 3869
2020-07-29 11:19:14 +02:00
Christian Mauderer
beaacb5c30 busdma: Don't sync nocache memory on ARM
The busdma shouldn't try to flush or invalidate cache in a nocache area.
2020-07-29 11:19:14 +02:00
Christian Mauderer
4820ccecc9 busdma: Option to round to cache lines on sync
Some targets support only flushing or invalidating complete cache lines.
In this cases misaligned buffers might lead to unexpected results. This
patch adds a flag that allows drivers to signal to the bus dma driver
that it is OK to round a buffer to the next full cache line. That's for
example necessary if a driver wants to send out 14 byte via a USB DMA.
Only the driver knows whether these 14 bytes are located in an otherwise
unused cache line aligned buffer.
2020-07-29 11:19:14 +02:00
Christian Mauderer
7e5d93bb6b imx: Use RTEMS GPIO driver instead of FreeBSD one
Update 3869
2020-07-29 11:19:00 +02:00
Christian Mauderer
469cc8fbb7 gpioregulator: Remove.
There is a bug in the #ifdef regarding FDT so this file hasn't been
compiled. If that bug is solved, the driver doesn't work for some other
reason.

With the FDT-bug the driver hasn't been used by anyone. So just remove
it again.
2020-07-29 11:15:42 +02:00
Christian Mauderer
f33b6a0f3b ehci_imx: Add to build. 2020-04-15 16:32:34 +02:00
Christian Mauderer
c54699f40f Add support for i.mx cache.
Update #3869.
2020-04-15 16:32:34 +02:00
Christian Mauderer
e518d8c72c regulator: Add to build.
Update #3869.
2020-04-15 16:32:24 +02:00
Christian Mauderer
6624d6ee32 imx6_ccm: Add and build module.
Update #3869.
2020-04-15 16:18:44 +02:00
Sebastian Huber
bd7af5fcee 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-15 16:18:43 +02:00
Sebastian Huber
211af17ad4 nfsclient: Use a system event for RPC
Aviod conflicts with application events.
2020-03-18 08:28:43 +01:00