Skip to content

Commit fe7953a

Browse files
committed
[ATAPI] Add ATA storage driver
CORE-17256 CORE-17191 CORE-17716 CORE-17977 CORE-13976 CORE-16216
1 parent 01aeb61 commit fe7953a

27 files changed

Lines changed: 13685 additions & 0 deletions

drivers/storage/ide/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
add_subdirectory(atapi)
23
add_subdirectory(pciide)
34
add_subdirectory(pciidex)
45
add_subdirectory(uniata)
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
include_directories(
3+
${REACTOS_SOURCE_DIR}/sdk/lib/drivers/sptilib)
4+
5+
if(ARCH STREQUAL "i386")
6+
set(DETECT_LEGACY_DEVICES TRUE)
7+
add_definitions(-DATA_DETECT_LEGACY_DEVICES)
8+
endif()
9+
10+
list(APPEND SOURCE
11+
include/atahw.h
12+
include/debug.h
13+
include/devevent.h
14+
include/scsiex.h
15+
atapi.c
16+
atapi.h
17+
data.c
18+
dev_config.c
19+
dev_error.c
20+
dev_identify.c
21+
dev_power.c
22+
dev_timings.c
23+
enum.c
24+
fdo.c
25+
ioctl.c
26+
pdo.c
27+
portstate.c
28+
satl.c
29+
scsi.c
30+
smart.c
31+
wmi.c)
32+
33+
if(DETECT_LEGACY_DEVICES)
34+
list(APPEND SOURCE pata_legacy.c)
35+
endif()
36+
37+
add_library(atapi MODULE ${SOURCE} atapi.rc)
38+
39+
if (STACK_PROTECTOR)
40+
target_sources(atapi PRIVATE $<TARGET_OBJECTS:gcc_ssp_nt>)
41+
endif()
42+
43+
set_module_type(atapi kernelmodedriver)
44+
target_link_libraries(atapi memcmp sptilib ${PSEH_LIB})
45+
# add_pch(atapi atapi.h SOURCE) # TODO
46+
add_importlibs(atapi ntoskrnl hal wmilib)
47+
add_cd_file(TARGET atapi DESTINATION reactos/system32/drivers NO_CAB FOR all)
48+
add_registry_inf(atapi_reg.inf)

0 commit comments

Comments
 (0)