Rev 4286 | Rev 4297 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4286 | Rev 4291 | ||
---|---|---|---|
Line 69... | Line 69... | ||
69 | format binary as "mnt" |
69 | format binary as "mnt" |
Line 70... | Line 70... | ||
70 | 70 | ||
71 | include 'macros.inc' |
71 | include 'macros.inc' |
Line 72... | Line 72... | ||
72 | include 'struct.inc' |
72 | include 'struct.inc' |
Line 73... | Line 73... | ||
73 | 73 | ||
74 | $Revision: 4286 $ |
74 | $Revision: 4291 $ |
Line 1198... | Line 1198... | ||
1198 | .enable_IDE_interrupt: |
1198 | .enable_IDE_interrupt: |
1199 | mov esi, boot_enabling_ide |
1199 | mov esi, boot_enabling_ide |
1200 | call boot_log |
1200 | call boot_log |
1201 | ; Enable interrupts in IDE controller for DMA |
1201 | ; Enable interrupts in IDE controller for DMA |
1202 | mov al, 0 |
1202 | mov al, 0 |
- | 1203 | mov ah, [DRIVE_DATA+1] |
|
- | 1204 | test ah, 10100000b |
|
- | 1205 | jz @f |
|
- | 1206 | ||
- | 1207 | DEBUGF 1, "K : IDE CH1 PIO, because ATAPI drive present\n" |
|
- | 1208 | jmp .ch2_check |
|
- | 1209 | @@: |
|
1203 | mov dx, [IDE_BAR1_val] ;0x3F4 |
1210 | mov dx, [IDE_BAR1_val] ;0x3F4 |
1204 | add dx, 2 ;0x3F6 |
1211 | add dx, 2 ;0x3F6 |
1205 | out dx, al |
1212 | out dx, al |
- | 1213 | DEBUGF 1, "K : IDE CH1 DMA enabled\n" |
|
- | 1214 | .ch2_check: |
|
- | 1215 | test ah, 1010b |
|
- | 1216 | jz @f |
|
- | 1217 | ||
- | 1218 | DEBUGF 1, "K : IDE CH2 PIO, because ATAPI drive present\n" |
|
- | 1219 | jmp .end_set_interrupts |
|
- | 1220 | @@: |
|
1206 | mov dx, [IDE_BAR3_val] ;0x374 |
1221 | mov dx, [IDE_BAR3_val] ;0x374 |
1207 | add dx, 2 ;0x376 |
1222 | add dx, 2 ;0x376 |
1208 | out dx, al |
1223 | out dx, al |
- | 1224 | DEBUGF 1, "K : IDE CH2 DMA enabled\n" |
|
1209 | ;-------------------------------------- |
1225 | ;-------------------------------------- |
1210 | .end_set_interrupts: |
1226 | .end_set_interrupts: |
1211 | ;----------------------------------------------------------------------------- |
1227 | ;----------------------------------------------------------------------------- |
1212 | cmp [dma_hdd], 0 |
1228 | cmp [dma_hdd], 0 |
1213 | je .print_pio |
1229 | je .print_pio |