diff --git a/src/add-ons/kernel/busses/scsi/Jamfile b/src/add-ons/kernel/busses/scsi/Jamfile index 9832058e60..f14ccdb90f 100644 --- a/src/add-ons/kernel/busses/scsi/Jamfile +++ b/src/add-ons/kernel/busses/scsi/Jamfile @@ -1,6 +1,5 @@ SubDir HAIKU_TOP src add-ons kernel busses scsi ; SubInclude HAIKU_TOP src add-ons kernel busses scsi 53c8xx ; -# SubInclude HAIKU_TOP src add-ons kernel busses scsi ahci ; SubInclude HAIKU_TOP src add-ons kernel busses scsi buslogic ; SubInclude HAIKU_TOP src add-ons kernel busses scsi usb ; diff --git a/src/add-ons/kernel/busses/scsi/ahci/Jamfile b/src/add-ons/kernel/busses/scsi/ahci/Jamfile deleted file mode 100644 index 62c5a6227b..0000000000 --- a/src/add-ons/kernel/busses/scsi/ahci/Jamfile +++ /dev/null @@ -1,5 +0,0 @@ -SubDir HAIKU_TOP src add-ons kernel busses scsi ahci ; - -KernelAddon ahci_scsi : - ahci_sim.c -; diff --git a/src/add-ons/kernel/busses/scsi/ahci/ahci.h b/src/add-ons/kernel/busses/scsi/ahci/ahci.h deleted file mode 100644 index 87096ca1ac..0000000000 --- a/src/add-ons/kernel/busses/scsi/ahci/ahci.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2007, Marcus Overhagen. All rights reserved. - * Distributed under the terms of the MIT License. - */ - -#ifndef _AHCI_H -#define _AHCI_H - -typedef struct -{ - uint32 clb; // Command List Base Address - uint32 clbu; // Command List Base Address Upper 32-Bits - uint32 fb; // FIS Base Address - uint32 fbu; // FIS Base Address Upper 32-Bits - uint32 is; // Interrupt Status - uint32 ie; // Interrupt Enable - uint32 cmd; // Command and Status - uint32 res1; // Reserved - uint32 tfd; // Task File Data - uint32 sig; // Signature - uint32 ssts; // Serial ATA Status (SCR0: SStatus) - uint32 sctl; // Serial ATA Control (SCR2: SControl) - uint32 serr; // Serial ATA Error (SCR1: SError) - uint32 sact; // Serial ATA Active (SCR3: SActive) - uint32 ci; // Command Issue - uint32 sntf; // SNotification - uint32 res2; // Reserved for FIS-based Switching Definition - uint32 res[11]; // Reserved - uint32 vendor[2]; // Vendor Specific -} ahci_port; - - -typedef struct -{ - uint32 cap; // Host Capabilities - uint32 ghc; // Global Host Control - uint32 is; // Interrupt Status - uint32 pi; // Ports Implemented - uint32 vs; // Version - uint32 ccc_ctl; // Command Completion Coalescing Control - uint32 ccc_ports; // Command Completion Coalsecing Ports - uint32 em_loc; // Enclosure Management Location - uint32 em_ctl; // Enclosure Management Control - uint32 res[31]; // Reserved - uint32 vendor[24]; // Vendor Specific registers - ahci_port port[32]; -} ahci_hba; - -#endif diff --git a/src/add-ons/kernel/busses/scsi/ahci/ahci_sim.c b/src/add-ons/kernel/busses/scsi/ahci/ahci_sim.c deleted file mode 100644 index cdeeeb559e..0000000000 --- a/src/add-ons/kernel/busses/scsi/ahci/ahci_sim.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2007, Marcus Overhagen. All rights reserved. - * Distributed under the terms of the MIT License. - */ - -#define TRACE(a...) dprintf("ahci: " a) -#define FLOW(a...) dprintf("ahci: " a) - -#if 0 - uint16 vendor_id; - uint16 device_id; - uint8 base_class; - uint8 sub_class; - uint8 class_api; - status_t res; - - if (base_class != PCI_mass_storage || sub_class != PCI_sata || class_api != PCI_sata_ahci) - return 0.0f; - - TRACE("controller found! vendor 0x%04x, device 0x%04x\n", vendor_id, device_id); - - res = pci->find_pci_capability(device, PCI_cap_id_sata, &cap_ofs); - if (res == B_OK) { - uint32 satacr0; - uint32 satacr1; - TRACE("PCI SATA capability found at offset 0x%x\n", cap_ofs); - satacr0 = pci->read_pci_config(device, cap_ofs, 4); - satacr1 = pci->read_pci_config(device, cap_ofs + 4, 4); - TRACE("satacr0 = 0x%08x, satacr1 = 0x%08x\n", satacr0, satacr1); - } -#endif