summaryrefslogtreecommitdiffstats
path: root/freebsd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* freebsd/mmcsd: Disable on-device cache usageKinsey Moore2024-03-051-0/+6
| | | | | | This disables any usage of the on-device R/W cache since all device cache maintenance functions are compiled out under RTEMS leaving no way to flush the cache before system reset and making data loss possible.
* sys/bitset.h: reduce visibility of BIT_* macrosStefan Eßer2022-09-284-28/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add two underscore characters "__" to names of BIT_* and BITSET_* macros to move them to the implementation name space and to prevent a name space pollution due to BIT_* macros in 3rd party programs with conflicting parameter signatures. These prefixed macro names are used in kernel header files to define macros in e.g. sched.h, sys/cpuset.h and sys/domainset.h. If C programs are built with either -D_KERNEL (automatically passed when building a kernel or kernel modules) or -D_WANT_FREENBSD_BITSET (or this macros is defined in the source code before including the bitset macros), then all macros are made visible with their previous names, too. E.g., both __BIT_SET() and BIT_SET() are visible with either of _KERNEL or _WANT_FREEBSD_BITSET defined. The main reason for this change is that some 3rd party sources including sched.h have been found to contain conflicting BIT_* macros. As a work-around, parts of shed.h have been made conditional and depend on _WITH_CPU_SET_T being set when sched.h is included. Ports that expect the full functionality provided by sched.h need to be built with -D_WITH_CPU_SET_T. But this leads to conflicts if BIT_* macros are defined in that program, too. This patch set makes all of sched.h visible again without this parameter being passed and without any name space pollution due to BIT_* macros becoming visible when sched.h is included. This patch set will be backported to the STABLE branches, but ports will need to use -D_WITH_CPU_SET_T as long as there are supported releases that do not contain these patches. Reviewed by: kib, markj MFC after: 1 month Relnotes: yes Differential Revision: https://reviews.freebsd.org/D33235
* stdio/local.h: Make Newlib config independentSebastian Huber2022-07-241-1/+1
|
* netstat: Do not use signalsSebastian Huber2022-06-222-17/+4
|
* wlanstats: Do not use signalsSebastian Huber2022-06-222-16/+8
|
* ping6: Do not use signalsSebastian Huber2022-06-221-0/+16
|
* ping: Do not use signalsSebastian Huber2022-06-221-0/+8
|
* openssl: Do not use signalsSebastian Huber2022-06-224-3/+13
|
* wpa: Use CONFIG_ELOOP_KQUEUESebastian Huber2022-06-221-0/+3
| | | | This avoids issues with the fd_set size.
* wpa: Do not use signalsSebastian Huber2022-06-221-0/+16
|
* if_ffec: Allow PHY that is connected to other FFECChristian Mauderer2022-06-071-0/+120
| | | | | | | | | The i.MX6UL (and some others from the i.MX family) have shared MDIO lines for multiple FFECs. This patch allows to use the MDIO interface from another Ethernet controller. Note that you have to make sure that the FFECs are initialized in the right order. Normally that can be done via FDT.
* if_ffec: Reduce buffer sizeChristian Mauderer2022-06-071-0/+8
| | | | | Typical embedded systems don't have that much memory. Reduce the buffer size to something more sensible for the usual type of application.
* libc: Include <sys/types.h> for RTEMSSebastian Huber2022-05-181-0/+4
| | | | | This fixes an issue with a recent Newlib which no longer includes <sys/types.h> in <stdio.h>.
* libc: Avoid conflict with Newlib __sinit()Sebastian Huber2022-05-181-0/+2
|
* tcpdump: Do not rely on u_char typedefSebastian Huber2022-05-181-1/+1
|
* pfctl: Fix global state initializationSebastian Huber2022-05-133-0/+12
| | | | Update #4654.
* tcpdump: Do not use signals and chrootSebastian Huber2022-05-121-2/+20
| | | | Close #4650.
* tcpdump: Ensure loop monitor terminationSebastian Huber2022-05-121-15/+29
| | | | Update #4650.
* tcpdump: No loop monitor if reading from fileSebastian Huber2022-05-121-8/+8
| | | | Update #4650.
* tcpdump: Close pcap dumper at program exitSebastian Huber2022-05-121-0/+13
| | | | Update #4650.
* tcpdump: Use rtems_task_exit()Sebastian Huber2022-05-121-2/+1
| | | | Update #4650.
* tcpdump: Make loop monitor cooperativeSebastian Huber2022-05-121-0/+3
| | | | | | This helps a bit if the fgetc() is non-blocking. Update #4650.
* Import arm64 in_cksum.h correctlyKinsey Moore2021-12-161-37/+6
| | | | | | When this file was brought in, it came from the wrong location or freebsd-org hash. This corrects the file such that freebsd-to-rtems.py runs cleanly.
* imx: Remove ccm functions alredy defined in RTEMSChristian Mauderer2021-09-021-0/+2
| | | | | | | The imx_ccm_*_hz are all defined in RTEMS. So don't duplicate them in libbsd. Otherwise some applications get linker errors. Update #3869
* i386: Remove unneeded include header filesJan Sommer2021-06-071-6/+0
|
* MMCSD: Use cache aligned alloc for ioctlChristian Mauderer2021-04-191-0/+4
| | | | | Some drivers can't easily work with buffers that are not cache aligned and have an arbitrary length. Therefore use an aligned malloc instead.
* ping6: Honor file descriptor maximumChristian Mauderer2021-03-261-0/+11
| | | | | | This is basically the same as the patch for ping. Update #4360
* arm/ti/ti_pinmux: Remove TI pinmux driverG S Niteesh Babu2021-03-214-895/+0
| | | | | | | | | | | | | | 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
* ehci_pci: Import from freebsd-orgMoyano, Gabriel2021-03-082-0/+636
| | | | Updates #4264
* wpa: Fix multiple definition of `hmac_md5`Christian Mauderer2020-12-141-0/+4
| | | | hmac_md5 is defined in dhcpcd and in wpa supplicant.
* if_ffec: Fix cache handling on txChristian Mauderer2020-11-201-5/+6
| | | | | | | | | | | | | | | | With the previous fix, it could happen that the end of the packet hasn't been flushed. For example assume the following addresses: ds_addr: 0x81c804A ds_len: 0x57 In that case the data ends at 0x81c80a1. But due to the rounding the area from 0x81c8040 to 0x81c80a0 would have been flushed. This fix now first calculates the start and end address, aligns these addresses and then recalculates the len that has to be flushed. Update #4180
* Update arm64/aarch64 supportKinsey Moore2020-11-137-0/+1997
|
* dwc_otg: Add support for nexus busSebastian Huber2020-10-271-0/+3
| | | | Update #3910.
* dwc_otg: Update host frame intervalSebastian Huber2020-10-271-40/+24
| | | | | | | Update the host frame interval after a device connection. Select also the FS/LS PHY clock. It is not clear if this works on all platforms. Update #3910.
* Add moxie supportSebastian Huber2020-09-231-0/+83
|
* Add or1k supportSebastian Huber2020-09-231-0/+83
|
* ck: Use default implementation < ARMv6Sebastian Huber2020-09-231-0/+2
|
* i386: Delete old machine dependent filesJan Sommer2020-09-163-75/+0
| | | | | | | | - 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
* iflib.c: Deactivate use of ifc_cpusJan Sommer2020-09-162-0/+28
| | | | | | - cpusets and SMP are currently not supported in libbsd for RTEMS - Disable the ifc_cpus context variable and replace its usage, essentially hard-coding for cpu 0
* Callout: Redefine callout_reset_on for rtemsJan Sommer2020-09-161-0/+6
| | | | | | | | - callout_reset_on takes a cpu which is ignored by the subsequent call to callout_reset_sbt_on in RTEMS. - The macro is redefined to discard the cpu argument directly which enables uses of it with cpu-dependent variables (disabled in RETMS) without further changes, e.g. in iflib.c.
* e1000: Add missing filesJan Sommer2020-09-166-0/+8792
|
* ifmcstat: Port to RTEMSSebastian Huber2020-09-106-2/+72
|
* ifmcstat: Import from FreeBSDSebastian Huber2020-09-102-0/+1320
|
* if_ffec: Align send buffers to cache if necessary.Christian Mauderer2020-07-291-2/+10
|
* rtwn_usb: Make sure buffers are cache alignedChristian Mauderer2020-07-292-0/+18
|
* busdma: Option to round to cache lines on syncChristian Mauderer2020-07-295-0/+66
| | | | | | | | | | 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.
* imx: Use RTEMS GPIO driver instead of FreeBSD oneChristian Mauderer2020-07-291-914/+0
| | | | Update 3869
* gpioregulator: Remove.Christian Mauderer2020-07-291-352/+0
| | | | | | | | | 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.
* imx6_usbphy: Fix regulator (vbus-supply)Christian Mauderer2020-04-201-1/+1
| | | | Update #3869.
* regulator: Disable FDT parts for non-FDT targetsChristian Mauderer2020-04-172-0/+4
|