-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AC97] Import the AC97 driver sample
The source code is licensed under MIT license, taken from "MSDN Code Gallery Microsoft Samples" repository (https://github.com/microsoftarchive/msdn-code-gallery-microsoft) The original license was MS-PL, but the driver was later relicensed as MIT. Adopted to ReactOS code base by Michael Stamper. Co-authored-by: Michael Stamper <michaelstamper1@gmail.com>
- Loading branch information
1 parent
0944f80
commit 9c79a79
Showing
35 changed files
with
14,739 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
|
||
add_subdirectory(ac97) | ||
add_subdirectory(CMIDriver) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
list(APPEND SOURCE | ||
adapter.cpp | ||
common.cpp | ||
mintopo.cpp | ||
prophnd.cpp | ||
miniport.cpp | ||
stream.cpp | ||
stream2.cpp | ||
rtminiport.cpp | ||
rtstream.cpp | ||
wavepciminiport.cpp | ||
wavepcistream.cpp | ||
wavecyclicminiport.cpp | ||
wavecyclicstream.cpp) | ||
|
||
add_library(ac97 MODULE | ||
${SOURCE} | ||
ac97.rc) | ||
|
||
target_link_libraries(ac97 stdunk libcntpr uuid) | ||
set_module_type(ac97 wdmdriver) | ||
add_importlibs(ac97 portcls hal ntoskrnl) | ||
|
||
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang") | ||
target_compile_options(ac97 PRIVATE -Wno-write-strings -Wno-switch) | ||
endif() | ||
|
||
add_cd_file(TARGET ac97 DESTINATION reactos/system32/drivers FOR all) | ||
add_driver_inf(ac97 ac97.inf) |
Oops, something went wrong.
9c79a79
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attention: on master this did introduce/unhide the following regressions: