Introduce new "blkdev" layer for 512-byte sector partitioned drives.
authorWill Sowerbutts <will@sowerbutts.com>
Sun, 4 Jan 2015 21:54:01 +0000 (21:54 +0000)
committerWill Sowerbutts <will@sowerbutts.com>
Sun, 4 Jan 2015 22:05:27 +0000 (22:05 +0000)
commita0c2ab8dfe966473026caf0fe7507eb5d2751cea
tree7349d2b670d4a7361086b34c0673c90014a3c51d
parentce45d2bb6016f7d725f23cda95dcf074b4e187d5
Introduce new "blkdev" layer for 512-byte sector partitioned drives.

Hardware drivers are now responsible for the bare mimumum -- identify
the storage devices present, figure out how large they are, and provide
a function to read/write sectors.

The concept of "slices" goes away, instead we will use a separate
partition for each file system.

The blkdev layer handles PC-style MBR partition tables, both primary and
extended partitions, up to a maximum of 15 partitions per drive. The
partition numbering is chosen to be compatible with Linux.

Storage drivers no longer each require a separate entry in the device
switch table.
21 files changed:
Kernel/dev/blkdev.c [new file with mode: 0644]
Kernel/dev/blkdev.h [new file with mode: 0644]
Kernel/dev/devide.c
Kernel/dev/devide.h
Kernel/dev/devsd.c
Kernel/dev/devsd.h
Kernel/dev/mbr.c
Kernel/dev/mbr.h
Kernel/include/kernel.h
Kernel/platform-msx2/Makefile
Kernel/platform-msx2/config.h
Kernel/platform-msx2/devices.c
Kernel/platform-msx2/fuzix.lnk
Kernel/platform-n8vem-mark4/Makefile
Kernel/platform-n8vem-mark4/config.h
Kernel/platform-n8vem-mark4/devices.c
Kernel/platform-n8vem-mark4/fuzix.lnk
Kernel/platform-p112/Makefile
Kernel/platform-p112/config.h
Kernel/platform-p112/devices.c
Kernel/platform-p112/fuzix.lnk