From 91a9743099c4bc4d2a0b7cd7f3c3e9cf2b878c71 Mon Sep 17 00:00:00 2001 From: Doczom Date: Tue, 20 Jun 2023 15:14:42 +0000 Subject: [PATCH] [SDHCI] Added new driver on SD host controller git-svn-id: svn://kolibrios.org@9924 a494cfbc-eb01-0410-851d-a64ba20cac60 --- data/Tupfile.lua | 1 + data/common/settings/AUTORUN.DAT | 1 + drivers/peimport.inc | 14 ++++++++++++++ drivers/sdhci/sdhci.sys | Bin 0 -> 6496 bytes 4 files changed, 16 insertions(+) create mode 100644 drivers/sdhci/sdhci.sys diff --git a/data/Tupfile.lua b/data/Tupfile.lua index 95a80ad0d4..aa3da138aa 100644 --- a/data/Tupfile.lua +++ b/data/Tupfile.lua @@ -555,6 +555,7 @@ tup.append_table(img_files, { {"DRIVERS/FM801.SYS", "../drivers/audio/fm801.sys"}, {"DRIVERS/VT823X.SYS", "../drivers/audio/vt823x.sys"}, {"DRIVERS/SIS.SYS", "../drivers/audio/sis.sys"}, + {"DRIVERS/SDHCI.SYS", "../drivers/sdhci/sdhci.sys"}, }) tup.append_table(extra_files, { {"HD_Load/9x2klbr/", PROGS .. "/hd_load/9x2klbr/9x2klbr.exe"}, diff --git a/data/common/settings/AUTORUN.DAT b/data/common/settings/AUTORUN.DAT index 1ca1fa3fd2..b708ca5e09 100644 --- a/data/common/settings/AUTORUN.DAT +++ b/data/common/settings/AUTORUN.DAT @@ -13,6 +13,7 @@ /SYS/@ICON "" 0 # Multithread desktop icons /SYS/TMPDISK A0 0 # Add virtual RAM disk /tmp0/1 /SYS/@RESHARE "" 0 # Shared resources +/SYS/LOADDRV SDHCI 0 # Start SDHCI driver /SYS/@DOCKY "" 0 # Start docky /SYS/NETWORK/NETCFG A 0 # Init network driver /SYS/NETWORK/@ZEROCONF "" 0 # Network configuration diff --git a/drivers/peimport.inc b/drivers/peimport.inc index e44abc150f..24be45c0d1 100644 --- a/drivers/peimport.inc +++ b/drivers/peimport.inc @@ -63,6 +63,20 @@ import core,\ FpuRestore,\ ReservePortArea,\ Boot_Log,\ +\ + FsRead32Sys,\ + FsRead32App,\ + FsRead64Sys,\ + FsRead64App,\ +\ + FsWrite32Sys,\ + FsWrite32App,\ + FsWrite64Sys,\ + FsWrite64App,\ +\ + FsAdd,\ +\ + DiskSync,\ \ MutexInit,\ MutexLock,\ diff --git a/drivers/sdhci/sdhci.sys b/drivers/sdhci/sdhci.sys new file mode 100644 index 0000000000000000000000000000000000000000..9126dd7201e8fe853659fc1d614e8a993269a4f2 GIT binary patch literal 6496 zcmb_hdvp`moxU={mK|XUV^N3DWJtALpoCbq0Qm*-10yH4k!52H4#vV7V}Y@VG%_Yj zh}FS_$!w@;PH48LP1BQxHfeTCHY@>?Wi7zb}EECz-mtbh@g+?<5dH-Z2pJLfkj%9Rm?931||@K#P#pyH(z`=cvp{5SCgr zX1qzs_`LuHo`ez=y6yUig^<7AhW!6D=C^lxIjH(~#7KRhvC@0;k0IoIa{DCY?|p-l zkhcYb?0jEmCvD%GLdaZ{Vw7blbtr34)}wGJ5tOG;_MrR%m=>-nNdaF3#oc@^!L7LfmbB59{^i=V?`kQd=4Hb1X$`yql{6HS8uh z!gB78t)Wt%5B(lygI#QAX=i7k4UJ9Sc%?na!c2LP^>S=O2X2@W=(n_+?Lw~Vw}xs$ z>&pV(AmDno%NNHh{Gp9dO9-vhus*-Hyu;hIo{b|FERsU4mseH$LmcVvZ#5k}d4%Rs zw&+uw#2f4H?^oKjJ!aFv48t&&u1d&(?Z^hOPXAE%rfj1KDE z{CU$;y`D)b)A*ZAxH)>kEUndp+0!HxTa$FVl5~$NCi8mX zfpLN|_K}Jcif5^H>RC8t>^Ohi82ef4K<#uVp$U0HI`XwFdw>43R{pqERJ8FItpj*y ziF7M28R*c+yA_D)uzff{$c#zSO(3Gn9R1wfF4THr?P7~3I%fpF1hG@q zQx#5(V$l(E76alb4jKlIWNPBOBdESsBf- z6~do4kVZLd=$LJA;vqMtI7#0iH%-|2YY;Z*+_J?CX!w|(UG{QS=_7{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