Subversion Repositories Kolibri OS

Rev

Rev 3725 | Rev 5201 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3725 Rev 3908
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: 3725 $
8
$Revision: 3908 $
9
 
9
 
10
 
10
 
Line 15... Line 15...
15
;******************************************************
15
;******************************************************
Line 16... Line 16...
16
 
16
 
17
;****************************************************
17
;****************************************************
18
;*                 ПОИСК HDD и CD                   *
18
;*                 ПОИСК HDD и CD                   *
-
 
19
;****************************************************
-
 
20
        cmp     [IDEContrProgrammingInterface], 0
-
 
21
        je      EndFindHDD
19
;****************************************************
22
 
20
FindHDD:
23
FindHDD:
21
        mov     [ChannelNumber], 1
24
        mov     [ChannelNumber], 1
22
        mov     [DiskNumber], 0
25
        mov     [DiskNumber], 0
23
        call    FindHDD_3
26
        call    FindHDD_3
Line 77... Line 80...
77
        stosw
80
        stosw
78
        loop    @b
81
        loop    @b
79
        popfd
82
        popfd
80
        popad
83
        popad
81
        DEBUGF 1, "K : Dev: %s \n", dev_name
84
        DEBUGF 1, "K : Dev: %s \n", dev_name
-
 
85
 
-
 
86
        xor     eax, eax
-
 
87
        mov     ax, [Sector512+64*2]
-
 
88
        DEBUGF  1, "K : PIO mode %x\n", eax
-
 
89
        mov     ax, [Sector512+63*2]
-
 
90
        DEBUGF  1, "K : Multiword DMA mode %x\n", eax
-
 
91
        mov     ax, [Sector512+88*2]
-
 
92
        DEBUGF  1, "K : Ultra DMA mode %x\n", eax
82
   FindHDD_2_2:
93
   FindHDD_2_2:
83
        ret
94
        ret
Line 84... Line 95...
84
 
95
 
85
FindHDD_3:
96
FindHDD_3: