Commit Graph

143 Commits

Author SHA1 Message Date
pathoswithin
201a5bf041 fs: prevalidation for root folder, code despaghettizing
git-svn-id: svn://kolibrios.org@6845 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-22 16:19:39 +00:00
e828b2c8b5 Enable capacity checks for Protective MBR and GPT
git-svn-id: svn://kolibrios.org@6844 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-21 00:21:05 +00:00
dbe9918dc6 Return capacity and bytes per sector of bios disks
This patch makes bd_querymedia return valid Capacity and SectorSize
values. Bios disks detection code saves the values to extended
BiosDiskData structure, bd_querymedia copies them to DISKMEDIAINFO.


git-svn-id: svn://kolibrios.org@6843 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-21 00:14:05 +00:00
pathoswithin
26611cadd0 fix for ide_querymedia
git-svn-id: svn://kolibrios.org@6842 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-20 20:02:50 +00:00
56b3fa9987 Fix parsing of Protective MBR and GPT headers
git-svn-id: svn://kolibrios.org@6828 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-18 21:05:31 +00:00
34df6be0da Support GUID Partition Table (GPT) disk layout
git-svn-id: svn://kolibrios.org@6827 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-01-14 21:28:27 +00:00
6b6bcd23b5 Fix access to /fd2 (bugs #98, #103)
git-svn-id: svn://kolibrios.org@6814 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-26 00:57:51 +00:00
pathoswithin
595fd9817d IDE: more debug output
git-svn-id: svn://kolibrios.org@6650 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-01 22:31:10 +00:00
pathoswithin
1048443a57 one-string path for filesystems, some cleaning
git-svn-id: svn://kolibrios.org@6468 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-08-02 20:28:34 +00:00
pathoswithin
ee14b53b33 sysfunction 70 cleaning
git-svn-id: svn://kolibrios.org@6464 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-07-29 11:12:13 +00:00
CleverMouse
dd4f527c54 leave more space for extended BIOS data
git-svn-id: svn://kolibrios.org@6016 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-12-30 17:04:32 +00:00
CleverMouse
a64323c296 always install IDE interrupt handler
git-svn-id: svn://kolibrios.org@6015 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-12-30 15:48:01 +00:00
CleverMouse
ad9aec7af3 fix error handling for BIOS disks broken in r5569
git-svn-id: svn://kolibrios.org@6014 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-12-29 18:43:57 +00:00
pathoswithin
4054b22aaa LBA28 support
git-svn-id: svn://kolibrios.org@5852 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-10-20 22:51:18 +00:00
CleverMouse
f62c4748c7 merge ide_read and ide_write
git-svn-id: svn://kolibrios.org@5570 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-06-17 18:37:58 +00:00
Pathoswithin
0ad5c3e509 speed up IDE operations
git-svn-id: svn://kolibrios.org@5569 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-06-17 18:25:55 +00:00
Yogev Ezra
76a0cbdfe5 Change copyright year in kernel and drivers to 2015. No code changes.
git-svn-id: svn://kolibrios.org@5363 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-01-08 20:10:22 +00:00
CleverMouse
2a46f2320b fix floppy operations broken in r5089
git-svn-id: svn://kolibrios.org@5196 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-11-28 20:19:34 +00:00
CleverMouse
6f2514bcd9 don't trash ebx in fs_read64_sys, was broken in r5089
git-svn-id: svn://kolibrios.org@5095 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-09-08 18:46:36 +00:00
CleverMouse
9d022746fd disk cache: support for sector sizes other than 512 bytes
git-svn-id: svn://kolibrios.org@5089 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-09-03 12:11:19 +00:00
CleverMouse
727d1c9b53 fix SB16 driver broken in r3727, convert to PE
git-svn-id: svn://kolibrios.org@5057 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-08-25 09:49:27 +00:00
Marat Zakiyanov (Mario79)
be20dc3772 Additional fix to r.4838
git-svn-id: svn://kolibrios.org@4839 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-04-15 12:54:18 +00:00
Marat Zakiyanov (Mario79)
26aad0cc40 Fix for IDE controller. Some weird controllers generate an interrupt even if IDE interrupts are disabled and no IDE devices. For example, notebook ASUS K72F - IDE controller 010185 generates false interrupt when we work with the IDE controller 01018f. For this reason, the interrupt handler does not need to be installed if both channel IDE controller running in PIO mode.
git-svn-id: svn://kolibrios.org@4838 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-04-15 10:01:23 +00:00
Marat Zakiyanov (Mario79)
76718d400a Fix for r.4700 - fix proc check_ATAPI_device_event
git-svn-id: svn://kolibrios.org@4734 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-04-02 20:55:06 +00:00
Marat Zakiyanov (Mario79)
87aa62f216 Fix for r.4700
git-svn-id: svn://kolibrios.org@4720 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-03-30 21:09:44 +00:00
Marat Zakiyanov (Mario79)
ba19a6400d Kernel supports up to three IDE controllers, and all the devices connected to them
git-svn-id: svn://kolibrios.org@4700 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-03-27 20:44:32 +00:00
CleverMouse
5fca5f7cd4 small fix
git-svn-id: svn://kolibrios.org@4695 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-03-25 14:46:50 +00:00
Marat Zakiyanov (Mario79)
28e8a442bf IDE DMA
1) No more 16-bit code, all the code in 32-bit mode
2) Expansion of the data output about modes of IDE devices

git-svn-id: svn://kolibrios.org@4624 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-03-10 00:09:59 +00:00
CleverMouse
85d31dcef6 quick fix for active IDE interrupts at boot stage
git-svn-id: svn://kolibrios.org@4578 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-02-20 13:01:13 +00:00
CleverMouse
01f77003a9 small fix
git-svn-id: svn://kolibrios.org@4465 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-01-17 10:27:05 +00:00
CleverMouse
85b2b4bfbe fix disk_cache.inc by dunkaist
git-svn-id: svn://kolibrios.org@4442 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-01-13 11:06:54 +00:00
CleverMouse
a6e24bafb0 disk cache: new 64-bit multi-sector interface for file systems & prefetching in legacy interface
git-svn-id: svn://kolibrios.org@4437 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-01-10 11:56:03 +00:00
CleverMouse
d1bc3ec8a0 split /hd and /bd access into separate includes
git-svn-id: svn://kolibrios.org@4420 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-12-30 11:42:20 +00:00
Marat Zakiyanov (Mario79)
12ea7f0fda IDE DMA fix (SATA Native mode).
git-svn-id: svn://kolibrios.org@4291 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-11-25 20:00:10 +00:00
CleverMouse
1842871f8f support for PnP disks, part 5: FAT12, ramdisk, floppies
git-svn-id: svn://kolibrios.org@4273 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-11-21 16:07:16 +00:00
CleverMouse
89f9caf0b6 fix off-by-one error in disk cache, existing at least since r580
git-svn-id: svn://kolibrios.org@4133 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-10-29 17:45:24 +00:00
Marat Zakiyanov (Mario79)
44d21dbf19 Fix Floppy driver for VirtualBox.
git-svn-id: svn://kolibrios.org@4115 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-10-27 23:37:06 +00:00
0ad6f9623f basic xfs read support
git-svn-id: svn://kolibrios.org@3913 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-09-17 21:28:18 +00:00
Marat Zakiyanov (Mario79)
657905b212 HDD IDE DMA handler - remove the interrupt flag
git-svn-id: svn://kolibrios.org@3881 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-09-01 21:29:56 +00:00
Marat Zakiyanov (Mario79)
f3bb0969f5 Fix for r.3762 - separate interrupt handlers for the irq14 and irq15.
git-svn-id: svn://kolibrios.org@3870 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-08-23 23:22:21 +00:00
Marat Zakiyanov (Mario79)
25dd9e6530 Some fixes code for IDE controllers.
git-svn-id: svn://kolibrios.org@3774 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-07-07 02:10:50 +00:00
Marat Zakiyanov (Mario79)
c67e638d08 Dynamic setting interrupts for Floppy controller
git-svn-id: svn://kolibrios.org@3771 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-07-06 11:33:30 +00:00
Marat Zakiyanov (Mario79)
8a0dae3f14 1) Dynamic setting interrupts for IDE controller
2) Fixed problems with some hardware (eBox IDE Native mode and similar)


git-svn-id: svn://kolibrios.org@3762 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-07-05 06:43:56 +00:00
CleverMouse
d59bc76c6d support for PnP disks, part 4: move NTFS,EXT2,/hd*,/bd* to the new interface
git-svn-id: svn://kolibrios.org@3742 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-07-01 16:29:16 +00:00
Marat Zakiyanov (Mario79)
93e7aee516 1) DMA LBA48 read and write for HDD
2) Some optimization of code

git-svn-id: svn://kolibrios.org@3712 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-27 06:11:10 +00:00
CleverMouse
65d0cef44b style fixes, no binary changes (style checker was sick for some time)
git-svn-id: svn://kolibrios.org@3711 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-26 23:35:43 +00:00
Marat Zakiyanov (Mario79)
178ccd95f9 PIO LBA48 write for HDD
git-svn-id: svn://kolibrios.org@3706 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-26 02:38:47 +00:00
Marat Zakiyanov (Mario79)
d9b8117616 1) SATA IDE support for HDD and ATAPI
2) PIO LBA48 read for HDD

git-svn-id: svn://kolibrios.org@3702 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-25 03:15:38 +00:00
CleverMouse
1a7694e453 malloc/free do not change ebx now
git-svn-id: svn://kolibrios.org@3681 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-18 10:33:19 +00:00
CleverMouse
a77e7ee15d make macro for push imm/pop dst
git-svn-id: svn://kolibrios.org@3598 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-04 11:14:37 +00:00