Page MenuHomeFreeBSD

linuxkpi: Add io.h
ClosedPublic

Authored by manu on Jul 26 2022, 9:32 AM.
Tags
None
Referenced Files
F166330981: D35942.id108800.diff
Wed, Aug 12, 11:15 PM
Unknown Object (File)
Tue, Aug 11, 8:24 PM
Unknown Object (File)
Tue, Aug 11, 7:46 PM
Unknown Object (File)
Mon, Aug 10, 8:34 PM
Unknown Object (File)
Mon, Aug 10, 3:17 PM
Unknown Object (File)
Mon, Aug 10, 3:16 PM
Unknown Object (File)
Mon, Aug 10, 4:20 AM
Unknown Object (File)
Sun, Aug 9, 2:33 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.