From: Alan Cox Date: Tue, 19 Feb 2019 14:45:12 +0000 (+0000) Subject: configs: add direct I/O to various platforms that can use it just fine X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=19596957d9535045f33fe39ba00737d72c9a534b;p=FUZIX.git configs: add direct I/O to various platforms that can use it just fine --- diff --git a/Kernel/platform-mtx/config.h b/Kernel/platform-mtx/config.h index ad2c0ccb..41d46e31 100644 --- a/Kernel/platform-mtx/config.h +++ b/Kernel/platform-mtx/config.h @@ -23,6 +23,7 @@ #define MAX_MAPS 10 #define MAP_SIZE 0xC000U +#define CONFIG_LARGE_IO_DIRECT(x) 1 /* Banks as reported to user space */ #define CONFIG_BANKS 1 diff --git a/Kernel/platform-multicomp09/config.h b/Kernel/platform-multicomp09/config.h index 0667cd36..ad0817dc 100644 --- a/Kernel/platform-multicomp09/config.h +++ b/Kernel/platform-multicomp09/config.h @@ -11,6 +11,8 @@ /* Use C helpers for usermem */ #undef CONFIG_USERMEM_C +/* Do larhge I/O direct to the user memory */ +#define CONFIG_LARGE_IO_DIRECT(x) 1 /* Reclaim discard space for buffers */ #define CONFIG_DYNAMIC_BUFPOOL diff --git a/Kernel/platform-sam/config.h b/Kernel/platform-sam/config.h index 1d296aeb..c97cb69e 100644 --- a/Kernel/platform-sam/config.h +++ b/Kernel/platform-sam/config.h @@ -15,6 +15,9 @@ #define CONFIG_BANKS 2 /* 2 x 32K */ +/* For now: we need to fix page crossing Atom IDE to deal with this sanely */ +#undef CONFIG_LARGE_IO_DIRECT + /* Full RTC support */ #define CONFIG_RTC #define CONFIG_RTC_FULL diff --git a/Kernel/platform-v65c816-big/config.h b/Kernel/platform-v65c816-big/config.h index 143659c6..5cc6329b 100644 --- a/Kernel/platform-v65c816-big/config.h +++ b/Kernel/platform-v65c816-big/config.h @@ -29,6 +29,8 @@ #define MAX_MAPS 125 #define MAP_SIZE 0xFB00 /* 0-FAFF */ +#define CONFIG_LARGE_IO_DIRECT(x) 1 + /* 0xEE because our first bank is 1 and 0xEE + 2 * 1 = 0xF0 */ #define STACK_BANKOFF 0x00 /* 0400-FDFF */ diff --git a/Kernel/platform-v65c816/config.h b/Kernel/platform-v65c816/config.h index cac73a0c..7c73bae8 100644 --- a/Kernel/platform-v65c816/config.h +++ b/Kernel/platform-v65c816/config.h @@ -33,6 +33,8 @@ #define MAX_MAPS 7 #define MAP_SIZE 0xFC00 /* 0-FBFF */ +#define CONFIG_LARGE_IO_DIRECT(x) 1 + /* 0xEE because our first bank is 1 and 0xEE + 2 * 1 = 0xF0 */ #define STACK_BANKOFF 0xEE /* F000-FDFF */ diff --git a/Kernel/platform-v68-banked/config.h b/Kernel/platform-v68-banked/config.h index f3982741..77a35dae 100644 --- a/Kernel/platform-v68-banked/config.h +++ b/Kernel/platform-v68-banked/config.h @@ -16,6 +16,8 @@ #define MAPBASE 0x00200000 #define MAP_SIZE 0x0001FC00 +#define CONFIG_LARGE_IO_DIRECT(x) 1 + #define CONFIG_BANKS 1 #define PROC_SIZE MAP_SIZE /* 128K minus udata */ diff --git a/Kernel/platform-v68-softmmu/config.h b/Kernel/platform-v68-softmmu/config.h index a622a7d0..50534bef 100644 --- a/Kernel/platform-v68-softmmu/config.h +++ b/Kernel/platform-v68-softmmu/config.h @@ -10,6 +10,8 @@ #define CONFIG_USERMEM_DIRECT #define CONFIG_VMMU +#define CONFIG_LARGE_IO_DIRECT(x) 1 + #define MMU_BLKSIZE 8192 #define CONFIG_BANKS 1 diff --git a/Kernel/platform-v68/config.h b/Kernel/platform-v68/config.h index f15df033..cca4da5d 100644 --- a/Kernel/platform-v68/config.h +++ b/Kernel/platform-v68/config.h @@ -13,6 +13,8 @@ #define CONFIG_BANKS (65536/512) #define PROC_SIZE 128 /* 64K, 128 * 512 */ +#define CONFIG_LARGE_IO_DIRECT(x) 1 + #define CONFIG_SPLIT_UDATA #define UDATA_SIZE 1024 #define UDATA_BLKS 2