summaryrefslogtreecommitdiffstats
path: root/sys/gnu
Commit message (Collapse)AuthorAgeFilesLines
* Bring ralink/mediatek DTS files in sync with LEDEsgalabov2016-05-25114-125/+127
| | | | | | | This is the last sync with LEDE Project dts files before 11.0. Obtained from: LEDE Project Sponsored by: Smartcom - Bulgaria AD
* [bwn] convert another PHY-N workaround to the freebsd bwn format.adrian2016-05-231-8/+4
| | | | | | These were hidden behind an #ifdef that we weren't setting. I don't have the hardware in question to check.
* [bwn] typo.adrian2016-05-191-1/+1
|
* [bwn] disable rfon checks so the 2056/2057 radios are programmed.adrian2016-05-191-2/+8
| | | | | | | | | This was the big missing piece for getting the BCM94322MC NIC to work at all. Tested: * BCM4322, STA mode (2g, 5g)
* [bwn] improve N-PHY debuggability a little bit.adrian2016-05-191-5/+14
|
* [bwn] add opt_wlan.h and opt_bwn.h to each of the phy_n source files.adrian2016-05-196-0/+17
|
* Kill off ReiserFS as it is no longer supported, for obvious reasons.gnn2016-05-1713-6308/+0
|
* [bwn] add initial bwn(4) N-PHY code, ported from Linux b43.adrian2016-05-1713-0/+26868
| | | | | | | | | | | | | | | | | | This is a GPLv2 PHY-N implementation based on the Linux b43 driver, ported over to work in bwn(4). I've tested this on the BCM4321 11abgn device, in 11bg and 11a modes. The b43 PHY code only supports 11abg, no 11n, and 20MHz only wide channels. Yes, this is a GPLv2 driver, so it won't be included in the default builds. Tested: * BCM4321 11abgn device (Apple!), 11bg and 11a STA mode. Obtained from: Linux b43
* Import LEDE dts files for Ralink/Mediateksgalabov2016-05-17199-9569/+10413
| | | | | | | | | | | | | | | | | | | | | | This is an import of the reworked LEDE dts files. Besides other things they make it easier for us to reuse. The only diffs left are for the following SoCs: MT7620A (fbsd-mt7620a.dtsi) MT7621 (fbsd-mt7621.dtsi) MT7628 (fbsd-mt7628an.dtsi) RT3883 (fbsd-rt3883.dtsi) So we include the fbsd-*.dtsi files at the end of the original LEDE dtsi files, using '#include "fbsd-xxxx.dtsi"'. For example, for MT7621, the LEDE dtsi file is mt7621.dtsi. At the end of it we add: #include "fbsd-mt7621.dtsi" Approved by: adrian (mentor) Obtained from: LEDE project Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D6394
* Change OpenWRT imported dtsi filessgalabov2016-04-209-9/+9
| | | | | | | | | | | | | | Change '#include <fbsd-*>' to '/include/ "fbsd-*"' in [rm]t*.dtsi Basically the pre-import work on OpenWRT's dts/dtsi files boils down to: for f in `ls [mr]t*.dtsi`; do printf '\n/include/ "fbsd-$f"\n' >> $f done Approved by: adrian (mentor) Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D5993
* Import Mediatek/Ralink dts files from OpenWRTsgalabov2016-04-16192-0/+23011
| | | | | | | | | | | | | | Import original OpenWRT dts files after executing the following script on them: for f in `ls [mr]t*.dtsi`; do printf "\n#include <fbsd-$f>\n" >> $f done Approved by: adrian (mentor) Obtained from: OpenWRT Sponsored by: Smartcom - Bulgaria AD Differential Revision: https://reviews.freebsd.org/D5971
* Update our copy of the Linux dts files to be in sync with Linux 4.5-rc1. Weandrew2016-02-091018-20248/+128695
| | | | | | | now uave a full copy of the arm device tree sources to help when adding support for newer boards. Sponsored by: ABT Systems Ltd
* Fixing a memory leak on module unloading.avatar2015-09-111-0/+1
| | | | MFC after: 3 weeks
* Using consistent coding style to deal with error inside the loop.avatar2015-08-181-2/+2
| | | | MFC after: 1 week
* The GNU Amlogic DTS files have some errors (e.g. bad registerganbold2015-04-113-11/+20
| | | | | | | | | | address, bad IRQ, etc) which are fixed by this patch. John has sent these changes to the author of the files who said he'll propagate the changes further upstream. Submitted by: John Wehle Reviewed by: imp
* File names with commas in them cause issues for freebsd-update. Weimp2015-03-1279-12867/+0
| | | | | | | | don't actually use these files at the moment, so eliminate them until we actually do. In the mean time, freebsd-update will be updated to eliminate the issues. Requested by: cperciva
* Merge latest (commit c8c1b3a77934768c7f7a4a9c10140c8bec529059) filesimp2015-02-28923-2021/+209533
| | | | | | | | | | from the git tree. This merges a lot that we're not using, but there's too many files to be selective and have a hope of catching everything. If there are conflicts with the rest of the tree, we'll resolve them on a case by case basis. MFC after: 2 weeks Sponsored by: Netflix, Inc.
* reiserfs: Use signed i_nlinkpfg2014-09-251-1/+1
| | | | | | | Unlike Linux, FreeBSD's kernel doesn't like unsigned file link count. This is consistent with our ext2fs implementation. MFC after: 1 month
* Merge forgotten .h files from vendor branch.imp2014-09-055-0/+5177
|
* Reimport dts files from vendor repo now that it has been properlyimp2014-09-04181-0/+38860
| | | | trimmed.
* Delete old arm dts tree. This was created by cherry picking from aimp2014-09-0476-11013/+0
| | | | | | full vendor tree. This worked great until it was time to update, but now it is time to update. Hit the rest button by removing this branch and re-adding it by a full copy of whatever is in the vendor tree.
* Update bindings to latest vendor branch representing 3.17-rc2 level ofimp2014-09-0468-44/+4836
| | | | Linux DTS API.
* New DTS files to suppport the SAM9260EK eval board. Derived, in part,imp2014-08-191-0/+217
| | | | from the SAM9G20EK dts files (so that file is GPL'd).
* Revert r269528; this was not the right way to bring these changes in.ian2014-08-052-258/+1
|
* Bring in the latest standard defines for imx6 clocks referenced in dts files.ian2014-08-042-1/+258
|
* Symbolic bindings for the dts files...imp2014-02-2848-0/+5919
|
* Add missing skeleton file.imp2014-02-281-0/+13
|
* Add skeleton.dtsi and update to new place in tree.imp2014-02-282-2/+3
|
* These file have a, possibly dubious, GPL claim. Until that's sorted, move to ↵imp2014-02-2876-0/+10883
| | | | gnu.
* Garbage collect XFS bits which are now already completely disconnectedattilio2013-03-02164-108070/+0
| | | | | | from the tree since few months. This is not targeted for MFC.
* r16312 is not any longer real since many years (likely since when VFSattilio2012-11-191-7/+0
| | | | | | | | | | received granular locking) but the comment present in UFS has been copied all over other filesystems code incorrectly for several times. Removes comments that makes no sense now. Reviewed by: kib MFC after: 3 days
* Complete MPSAFE VFS interface and remove MNTK_MPSAFE flag.attilio2012-11-091-1/+0
| | | | | Porters should refer to __FreeBSD_version 1000021 for this change as it may have happened at the same timeframe.
* Add an unified macro to deny ability from the compiler to reorderattilio2012-10-092-5/+1
| | | | | | | | | | instruction loads/stores at its will. The macro __compiler_membar() is currently supported for both gcc and clang, but kernel compilation will fail otherwise. Reviewed by: bde, kib Discussed with: dim, theraven MFC after: 2 weeks
* Add VFCF_READONLY flag that indicates ntfs and xfs file systems arekevlo2012-09-121-1/+1
| | | | only supported as read-only.
* Partially revert r239959, after actually fixing most of the clangdim2012-09-025-8/+6
| | | | | | | | | | warnings in sys/gnu/fs/xfs. The only warnings that still need to be suppressed are those about array bound overruns of flexible array members in xfs_dir2_{block,sf}.c, which are too expensive (in terms of cascading code changes) to fix. MFC after: 1 week X-MFC-With: r239959
* Just like the other file systems found in /sys/fs, g_vfs_open()avatar2012-08-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | should be paried with g_vfs_close(). Though g_vfs_close() is a wrapper around g_wither_geom_close(), r206130 added the following test in g_vfs_open(): if (bo->bo_private != vp) return (EBUSY); Which will cause a 'Device busy' error inside reiserfs_mountfs() if the same file system is re-mounted again after umount or mounting failure: (case 1, /dev/ad4s3 is not a valid REISERFS partition) # mount -t reiserfs -o ro /dev/ad4s3 /mnt mount: /dev/ad4s3: Invalid argument # mount -t msdosfs -o ro /dev/ad4s3 /mnt mount: /dev/ad4s3: Device busy (case 2, /dev/ad4s3 is a valid REISERFS partition) # mount -t reiserfs -o ro /dev/ad4s3 /mnt # umount /mnt # mount -t reiserfs -o ro /dev/ad4s3 /mnt mount: /dev/ad4s3: Device busy On the other hand, g_vfs_close() 'fixed' the above cases by doing an extra step to keep 'sc->sc_bo->bo_private' and 'cp->private' pointers synchronised. Reviewed by: kib MFC after: 1 month
* Fix build:delphij2012-05-231-2/+2
| | | | | | | - Use %ll instead of %q for explicit long long casts; - Use %j instead of %q in XFS and cast to intmax_t. Tested with: make universe
* Remove unused thread argument to vrecycle().trasz2012-04-231-3/+1
| | | | Reviewed by: kib
* Make ReiserFS MPSAFEdumbbell2012-03-271-3/+11
| | | | | | Most functions seemed to be already fine w.r.t. what's done in msdosfs. MFC after: 1 month
* Remove fifo.h. The only used function declaration from the header iskib2012-03-111-2/+0
| | | | | | migrated to sys/vnode.h. Submitted by: gianni
* Use new OSS-based BSD-licensed header for cs sound driver.pfg2012-02-011-341/+0
| | | | | | | | | | | | | | | | | The cs driver requires a table with firmware values. An alternative firmware is available in a similar Open Sound System driver. This is actually a partial revert of Revision 77504. Special thanks to joel@ for patiently testing several replacement attempts. The csa driver and the complete sound system are now free of the GPL. Tested by: joel Approved by: jhb (mentor) MFC after: 3 weeks
* Replace GPLd headers from the Maestro3 driver with BSD licensedpfg2012-01-202-906/+0
| | | | | | | | | | | | | | | | | versions derived from /usr/ports/audio/oss. The particular headers used were taken from the attic/drv/oss_allegro directory and are mostly identical to the previous files. The Maestro3 driver is now free from the GPL. NOTE: due to lack of testers this driver is being considered for deprecation and removal. PR: kern/153920 Approved by: jhb (mentor) MFC after: 2 weeks
* Make sure all intermediate variables holding mount flags (mnt_flag)mckusick2012-01-171-1/+1
| | | | | | | and that all internal kernel calls passing mount flags are declared as uint64_t so that flags in the top 32-bits are not lost. MFC after: 2 weeks
* Convert files to UTF-8uqs2012-01-1512-13/+13
|
* Replace GPL'd headers in the emu10kx snd driver code.pfg2012-01-113-2015/+0
| | | | | | | | | | | | | | This uses the emuxkireg.h already used in the emu10k1 snd driver. Special thanks go to Alexander Motin as he was able to find some errors and reverse engineer some wrong values in the emuxkireg header. The emu10kx driver is now free from the GPL. PR: 153901 Tested by: mav, joel Approved by: jhb (mentor) MFC after: 2 weeks
* Use strchr() and strrchr().ed2012-01-021-2/+1
| | | | | | | | It seems strchr() and strrchr() are used more often than index() and rindex(). Therefore, simply migrate all kernel code to use it. For the XFS code, remove an empty line to make the code identical to the code in the Linux kernel.
* Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.ed2011-11-071-1/+1
| | | | | | The SYSCTL_NODE macro defines a list that stores all child-elements of that node. If there's no SYSCTL_DECL macro anywhere else, there's no reason why it shouldn't be static.
* Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.ed2011-11-071-1/+1
| | | | This means that their use is restricted to a single C file.
* Second-to-last commit implementing Capsicum capabilities in the FreeBSDrwatson2011-08-111-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | kernel for FreeBSD 9.0: Add a new capability mask argument to fget(9) and friends, allowing system call code to declare what capabilities are required when an integer file descriptor is converted into an in-kernel struct file *. With options CAPABILITIES compiled into the kernel, this enforces capability protection; without, this change is effectively a no-op. Some cases require special handling, such as mmap(2), which must preserve information about the maximum rights at the time of mapping in the memory map so that they can later be enforced in mprotect(2) -- this is done by narrowing the rights in the existing max_protection field used for similar purposes with file permissions. In namei(9), we assert that the code is not reached from within capability mode, as we're not yet ready to enforce namespace capabilities there. This will follow in a later commit. Update two capability names: CAP_EVENT and CAP_KEVENT become CAP_POST_KEVENT and CAP_POLL_KEVENT to more accurately indicate what they represent. Approved by: re (bz) Submitted by: jonathan Sponsored by: Google Inc
* Fix typo in unused function nameuqs2011-05-221-1/+1
| | | | Submitted by: arundel
OpenPOWER on IntegriCloud