Skip to content

Commit 7370a06

Browse files
author
Ian Seyler
committed
Remove legacy ATA driver
1 parent 5b07024 commit 7370a06

File tree

6 files changed

+2
-190
lines changed

6 files changed

+2
-190
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ BareMetal provides basic support for symmetric multiprocessing, network, and sto
5454
* Storage
5555
* NVMe
5656
* AHCI (SATA)
57-
* IDE
5857
* Virtio-Blk
5958
* HID (Human Interface Devices)
6059
* Input

build.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ BUILDFLAGS="-dNO_VGA"
77
# NVS
88
# -dNO_NVME Remove NVMe driver
99
# -dNO_AHCI Remove ACHI (SATA) driver
10-
# -dNO_ATA Remove legacy ATA driver
1110
# NET
1211
# -dNO_I8254X Remove i8254x Gigabit driver
1312
# -dNO_I8257X Remove i8257x Gigabit driver

src/drivers.asm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@
3333
%ifndef NO_VIRTIO
3434
%include "drivers/nvs/virtio-blk.asm"
3535
%endif
36-
%ifndef NO_ATA
37-
%include "drivers/nvs/ata.asm"
38-
%endif
3936

4037
; Network
4138
%ifndef NO_I8254X

src/drivers/nvs/ata.asm

Lines changed: 0 additions & 171 deletions
This file was deleted.

src/init/nvs.asm

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ init_nvs_check_bus:
3939
mov ax, [rsi] ; Load Class Code / Subclass Code
4040
cmp ax, 0xFFFF ; Check if at end of list
4141
je init_nvs_done ; No storage controller found
42-
%ifndef NO_ATA
43-
cmp ax, 0x0101 ; Mass Storage Controller (01) / ATA Controller (01)
44-
je init_nvs_ata
45-
%endif
4642
%ifndef NO_AHCI
4743
cmp ax, 0x0106 ; Mass Storage Controller (01) / SATA Controller (06)
4844
je init_nvs_ahci
@@ -77,14 +73,6 @@ init_nvs_virtio_blk:
7773
jmp init_nvs_done
7874
%endif
7975

80-
%ifndef NO_ATA
81-
init_nvs_ata:
82-
sub rsi, 8 ; Move RSI back to start of Bus record
83-
mov edx, [rsi] ; Load value for os_bus_read/write
84-
call ata_init
85-
jmp init_nvs_done
86-
%endif
87-
8876
init_nvs_done:
8977

9078
%ifndef NO_LFB

src/sysvar.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ app_start: equ 0xFFFF800000000000 ; Location of application memory
7171
; DQ - Starting at offset 0, increments by 8
7272
os_LocalAPICAddress: equ os_SystemVariables + 0x0000
7373
os_IOAPICAddress: equ os_SystemVariables + 0x0008
74-
os_SysConfEn: equ os_SystemVariables + 0x0010 ; Enabled bits: 0=PS/2 Keyboard, 1=PS/2 Mouse, 2=Serial, 4=HPET, 5=xHCI
74+
os_SysConfEn: equ os_SystemVariables + 0x0010 ; Enabled bits: 0=PS/2 Keyboard, 2=Serial, 4=HPET, 5=xHCI
7575
os_StackBase: equ os_SystemVariables + 0x0020
7676
os_PacketBase: equ os_SystemVariables + 0x0028
7777
sys_timer: equ os_SystemVariables + 0x0048
@@ -102,7 +102,7 @@ os_xhci_int0_count: equ os_SystemVariables + 0x011C ; Incremented on xHCI Interr
102102
; DW - Starting at offset 512, increments by 2
103103
os_NumCores: equ os_SystemVariables + 0x0200
104104
os_CoreSpeed: equ os_SystemVariables + 0x0202
105-
os_nvsVar: equ os_SystemVariables + 0x0208 ; Bit 0 for NVMe, 1 for AHCI, 2 for ATA, 3 for Virtio Block
105+
os_nvsVar: equ os_SystemVariables + 0x0208 ; Bit 0 for NVMe, 1 for AHCI, 2 for Virtio SCSI, 3 for Virtio Block
106106
os_screen_x: equ os_SystemVariables + 0x020A
107107
os_screen_y: equ os_SystemVariables + 0x020C
108108
os_screen_ppsl: equ os_SystemVariables + 0x020E

0 commit comments

Comments
 (0)