Rev 4307 | Rev 4381 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4307 | Rev 4311 | ||
---|---|---|---|
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: 4307 $ |
74 | $Revision: 4311 $ |
Line 794... | Line 794... | ||
794 | out dx, al |
794 | out dx, al |
795 | mov dx, [IDE_BAR3_val] ;0x374 |
795 | mov dx, [IDE_BAR3_val] ;0x374 |
796 | add dx, 2 ;0x376 |
796 | add dx, 2 ;0x376 |
797 | out dx, al |
797 | out dx, al |
798 | @@: |
798 | @@: |
799 | ; read status register and remove the interrupt request |
- | |
800 | mov dx, [IDE_BAR0_val] ;0x1F0 |
- | |
801 | add dx, 0x7 ;0x1F7 |
- | |
802 | in al, dx |
- | |
803 | mov dx, [IDE_BAR2_val] ;0x170 |
- | |
804 | add dx, 0x7 ;0x177 |
- | |
805 | in al, dx |
- | |
806 | ;----------------------------------------------------------------------------- |
799 | ;----------------------------------------------------------------------------- |
807 | ;!!!!!!!!!!!!!!!!!!!!!!!!!! |
800 | ;!!!!!!!!!!!!!!!!!!!!!!!!!! |
808 | ; mov esi, boot_detectdisks |
801 | ; mov esi, boot_detectdisks |
809 | ; call boot_log |
802 | ; call boot_log |
810 | ;include 'detect/disks.inc' |
803 | ;include 'detect/disks.inc' |
Line 886... | Line 879... | ||
886 | ; mov esi, boot_devices |
879 | ; mov esi, boot_devices |
887 | ; call boot_log |
880 | ; call boot_log |
Line 888... | Line 881... | ||
888 | 881 | ||
889 | mov [pci_access_enabled], 1 |
882 | mov [pci_access_enabled], 1 |
- | 883 | call pci_enum |
|
- | 884 | ;----------------------------------------------------------------------------- |
|
- | 885 | mov dx, [IDEContrRegsBaseAddr] |
|
- | 886 | ; test whether it is our interrupt? |
|
- | 887 | add dx, 2 |
|
- | 888 | in al, dx |
|
- | 889 | test al, 100b |
|
- | 890 | jz @f |
|
- | 891 | ; clear Bus Master IDE Status register |
|
- | 892 | ; clear Interrupt bit |
|
890 | call pci_enum |
893 | out dx, al |
- | 894 | @@: |
|
- | 895 | add dx, 8 |
|
- | 896 | ; test whether it is our interrupt? |
|
- | 897 | in al, dx |
|
- | 898 | test al, 100b |
|
- | 899 | jz @f |
|
- | 900 | ; clear Bus Master IDE Status register |
|
- | 901 | ; clear Interrupt bit |
|
- | 902 | out dx, al |
|
- | 903 | @@: |
|
- | 904 | ; read status register and remove the interrupt request |
|
- | 905 | mov dx, [IDE_BAR0_val] ;0x1F0 |
|
- | 906 | add dx, 0x7 ;0x1F7 |
|
- | 907 | in al, dx |
|
- | 908 | mov dx, [IDE_BAR2_val] ;0x170 |
|
- | 909 | add dx, 0x7 ;0x177 |
|
- | 910 | in al, dx |
|
891 | 911 | ;----------------------------------------------------------------------------- |
|
Line 892... | Line 912... | ||
892 | include "detect/vortex86.inc" ; Vortex86 SoC detection code |
912 | include "detect/vortex86.inc" ; Vortex86 SoC detection code |
Line 893... | Line 913... | ||
893 | 913 |