Page MenuHomeFreeBSD

linuxkpi: Add io.h
ClosedPublic

Authored by manu on Jul 26 2022, 9:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 5, 2:40 AM
Unknown Object (File)
Mon, Nov 3, 5:47 AM
Unknown Object (File)
Sat, Nov 1, 3:53 AM
Unknown Object (File)
Oct 23 2025, 2:50 PM
Unknown Object (File)
Oct 14 2025, 3:33 PM
Unknown Object (File)
Oct 14 2025, 3:33 PM
Unknown Object (File)
Oct 13 2025, 12:45 PM
Unknown Object (File)
Oct 13 2025, 12:44 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
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.