libpayload/ahci: Fix a warning by decompartmentalise the AHCI driver.

Decompartmentalise AHCI driver into two parts, ATA and ATAPI. Add a few
superficial comments while here. This also fixes a compiler warning.

Change-Id: Ia1fd545b39868a81cbc311f6ffc786f9f1f61415
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/4783
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Edward O'Callaghan
2014-01-23 08:30:42 +11:00
committed by Patrick Georgi
parent 09af15e09e
commit efc5841ab4
6 changed files with 462 additions and 275 deletions

View File

@@ -54,10 +54,18 @@ libc-$(CONFIG_GEODELX_VIDEO_CONSOLE) += video/font8x16.c
libc-$(CONFIG_COREBOOT_VIDEO_CONSOLE) += video/corebootfb.c
libc-$(CONFIG_COREBOOT_VIDEO_CONSOLE) += video/font8x16.c
# AHCI/ATAPI driver
libc-$(CONFIG_STORAGE) += storage/storage.c
libc-$(CONFIG_STORAGE_ATA) += storage/ata.c
libc-$(CONFIG_STORAGE_ATAPI) += storage/atapi.c
libc-$(CONFIG_STORAGE_AHCI) += storage/ahci.c
libc-$(CONFIG_STORAGE_AHCI) += storage/ahci_common.c
ifeq ($(CONFIG_STORAGE_ATA),y)
libc-$(CONFIG_STORAGE_ATA) += storage/ata.c
libc-$(CONFIG_STORAGE_ATA) += storage/ahci_ata.c
endif
ifeq ($(CONFIG_STORAGE_ATAPI),y)
libc-$(CONFIG_STORAGE_ATAPI) += storage/atapi.c
libc-$(CONFIG_STORAGE_ATAPI) += storage/ahci_atapi.c
endif
# USB stack
libc-$(CONFIG_USB) += usb/usbinit.c