Giter VIP home page Giter VIP logo

drm-kmod's Introduction

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.

drm-kmod's People

Contributors

airlied avatar alexdeucher avatar amd-aric avatar anthony-koo2 avatar christiankoenigamd avatar danvet avatar dceraolo avatar evadot avatar fxkamd avatar huangrui avatar ickle avatar ideak avatar jnikula avatar johalun avatar leeonadoh avatar ljymonk avatar lucasdemarchi avatar lyude avatar matt-auld avatar mattrope avatar mikuint avatar mlankhorst avatar mwajdecz avatar rodrigovivi avatar tursulin avatar vsyrjala avatar wulf7 avatar yongzhao12 avatar zehortigoza avatar zming6666 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.