Page MenuHomeFreeBSD

linuxkpi: Add io.h
ClosedPublic

Authored by manu on Jul 26 2022, 9:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 9, 12:53 PM
Unknown Object (File)
Fri, May 8, 9:40 PM
Unknown Object (File)
Fri, May 1, 9:57 PM
Unknown Object (File)
Mon, Apr 27, 5:56 AM
Unknown Object (File)
Apr 8 2026, 10:34 PM
Unknown Object (File)
Apr 5 2026, 11:46 AM
Unknown Object (File)
Mar 28 2026, 4:27 AM
Unknown Object (File)
Mar 27 2026, 5:44 AM

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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
30

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.