Page MenuHomeFreeBSD

linuxkpi: Add io.h
ClosedPublic

Authored by manu on Jul 26 2022, 9:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 11 2024, 7:43 AM
Unknown Object (File)
Oct 3 2024, 12:53 AM
Unknown Object (File)
Oct 2 2024, 10:25 PM
Unknown Object (File)
Sep 18 2024, 6:53 PM
Unknown Object (File)
Sep 18 2024, 4:54 PM
Unknown Object (File)
Sep 18 2024, 12:01 PM
Unknown Object (File)
Sep 18 2024, 10:09 AM
Unknown Object (File)
Sep 17 2024, 2:50 PM

Details

Summary

out* arguments are different on Linux and the i915 driver uses them.
Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46589
Build 43478: arc lint + arc unit

Event Timeline

manu requested review of this revision.Jul 26 2022, 9:32 AM

This looks pretty scary. Can you make sure that this file includes the file defining outb() and outw() and outl() first?

And that this file is not included anywhere else?

--HPS

bz added inline comments.
sys/compat/linuxkpi/common/include/asm-generic/io.h
29

Do we need to put all, including the #include into ... given we don't do per-arch asm/?
#if defined(i386) || defined(amd64)

#include <machine/cpufunc.h> /* and possibly other dependencies? */

...
#endif

Fix by using correct names for the arches.

This revision was not accepted when it landed; it landed in state Needs Review.Aug 8 2022, 2:06 PM
Closed by commit rG96b917bfcf2c: linuxkpi: Add io.h (authored by manu). · Explain Why
This revision was automatically updated to reflect the committed changes.