Rev 3881 | Rev 4641 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3881 | Rev 4624 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 3881 $ |
8 | $Revision: 4624 $ |
9 | 9 | ||
10 | 10 | ||
Line 83... | Line 83... | ||
83 | popad |
83 | popad |
84 | DEBUGF 1, "K : Dev: %s \n", dev_name |
84 | DEBUGF 1, "K : Dev: %s \n", dev_name |
Line 85... | Line 85... | ||
85 | 85 | ||
86 | xor eax, eax |
86 | xor eax, eax |
- | 87 | mov ax, [Sector512+64*2] |
|
- | 88 | DEBUGF 1, "K : PIO mode possible modes %x\n", al |
|
- | 89 | mov ax, [Sector512+51*2] |
|
- | 90 | mov al, ah |
|
87 | mov ax, [Sector512+64*2] |
91 | call convert_Sector512_value |
88 | DEBUGF 1, "K : PIO mode %x\n", eax |
92 | DEBUGF 1, "K : PIO mode set mode %x\n", ah |
- | 93 | mov ax, [Sector512+63*2] |
|
- | 94 | DEBUGF 1, "K : Multiword DMA possible modes %x\n", al |
|
- | 95 | mov al, ah |
|
89 | mov ax, [Sector512+63*2] |
96 | call convert_Sector512_value |
90 | DEBUGF 1, "K : Multiword DMA mode %x\n", eax |
97 | DEBUGF 1, "K : Multiword DMA set mode %x\n", ah |
- | 98 | mov ax, [Sector512+88*2] |
|
- | 99 | DEBUGF 1, "K : Ultra DMA possible modes %x\n", al |
|
- | 100 | mov al, ah |
|
91 | mov ax, [Sector512+88*2] |
101 | call convert_Sector512_value |
92 | DEBUGF 1, "K : Ultra DMA mode %x\n", eax |
102 | DEBUGF 1, "K : Ultra DMA set mode %x\n", ah |
93 | FindHDD_2_2: |
103 | FindHDD_2_2: |
94 | ret |
- | |
- | 104 | ret |
|
95 | 105 | ;----------------------------------------------------------------------------- |
|
96 | FindHDD_3: |
106 | FindHDD_3: |
97 | call FindHDD_1 |
107 | call FindHDD_1 |
98 | shl byte [DRIVE_DATA+1], 2 |
108 | shl byte [DRIVE_DATA+1], 2 |
- | 109 | ret |
|
- | 110 | ;----------------------------------------------------------------------------- |
|
- | 111 | convert_Sector512_value: |
|
- | 112 | mov ecx, 8 |
|
- | 113 | xor ah, ah |
|
- | 114 | @@: |
|
- | 115 | test al, 1b |
|
Line -... | Line 116... | ||
- | 116 | jnz .end |
|
- | 117 | ||
- | 118 | shr al, 1 |
|
- | 119 | inc ah |
|
- | 120 | loop @b |
|
- | 121 | ||
- | 122 | xor ah, ah |
|
- | 123 | .end: |
|
99 | ret |
124 | ret |
100 | 125 | ;----------------------------------------------------------------------------- |
|
101 | ; Адрес считываемого сектора в режиме LBA |
126 | ; Адрес считываемого сектора в режиме LBA |
102 | uglobal |
127 | uglobal |
103 | SectorAddress DD ? |
128 | SectorAddress DD ? |