Skip to content

pranaOS/drm-kmod

This branch is 16376 commits behind freebsd/drm-kmod:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4e620bd · Apr 8, 2022
Jan 22, 2021
Mar 30, 2022
Mar 7, 2022
Apr 8, 2022
Mar 30, 2022
Jan 28, 2022
Apr 7, 2022
Apr 7, 2022
Apr 3, 2022
Mar 30, 2022
Apr 7, 2022
Mar 29, 2022
Jul 7, 2021
Mar 14, 2022
Mar 7, 2022
Oct 8, 2021
Mar 30, 2022

Repository files navigation

drm-kmod

The DRM drivers ported from Linux to FreeBSD using LinuxKPI

Contributing

Linux source code

Folders amd, drm, i915, radeon contain FreeBSD Makefiles for the driver modules.

Folder drivers contain source code from Linux, patched (minimally) to run on FreeBSD with LinuxKPI. Try to keep changes to the code to a minimum but if you have to patch it, leave the Linux source code intact like so:

#ifdef __linux__
...intact linux code...
#elif defined(__FreeBSD__)
bsd code
#endif

When updating and patching this code with code from Linux there are often merge conflicts where the code has been changed. If there are no markers it is difficult to know what code to keep and what to throw away.

Pull requests that do not follow this will not be accepted.

Unless obvious what your code does, please leave a comment to explain to fellow developers why you patched it. The source code is the documentation!

If the patch can be avoided by adding functionality to LinuxKPI, please consider the latter. Sooner or later, there will be more places where the functionality is used and having it in LinuxKPI mean we don't have to patch twice.

FreeBSD source code

Folders linuxkpi

Code style and rules same as FreeBSD kernel. No new code should be added there, all new linuxkpi functions should be added in FreeBSD base.

About

drm driver for FreeBSD

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 100.0%