From 9815383e54ccce94caaf8b92874211cec907405c Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Sat, 1 Sep 2007 18:51:03 +0000 Subject: [PATCH] a class for the SATA ports git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22143 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../kernel/busses/scsi/ahci/ahci_port.cpp | 38 +++++++++++++++++++ .../kernel/busses/scsi/ahci/ahci_port.h | 24 ++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp create mode 100644 src/add-ons/kernel/busses/scsi/ahci/ahci_port.h diff --git a/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp b/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp new file mode 100644 index 0000000000..0504413195 --- /dev/null +++ b/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp @@ -0,0 +1,38 @@ +/* + * Copyright 2007, Marcus Overhagen. All rights reserved. + * Distributed under the terms of the MIT License. + */ + +#include "ahci_port.h" + +#include +#include + +#define TRACE(a...) dprintf("\33[34mahci:\33[0m " a) +#define FLOW(a...) dprintf("ahci: " a) + + +AHCIPort::AHCIPort(AHCIController *controller, int index) + : fIndex(index) +{ +} + + +AHCIPort::~AHCIPort() +{ +} + + +status_t +AHCIPort::Init() +{ + TRACE("AHCIPort::Init port %d\n", fIndex); + return B_OK; +} + + +void +AHCIPort::Uninit() +{ + TRACE("AHCIPort::Uninit port %d\n", fIndex); +} diff --git a/src/add-ons/kernel/busses/scsi/ahci/ahci_port.h b/src/add-ons/kernel/busses/scsi/ahci/ahci_port.h new file mode 100644 index 0000000000..ca81f42dc2 --- /dev/null +++ b/src/add-ons/kernel/busses/scsi/ahci/ahci_port.h @@ -0,0 +1,24 @@ +/* + * Copyright 2007, Marcus Overhagen. All rights reserved. + * Distributed under the terms of the MIT License. + */ +#ifndef _AHCI_PORT_H +#define _AHCI_PORT_H + +#include "ahci_defs.h" + +class AHCIController; + +class AHCIPort { +public: + AHCIPort(AHCIController *controller, int index); + ~AHCIPort(); + + status_t Init(); + void Uninit(); + +private: + int fIndex; +}; + +#endif // _AHCI_PORT_H