a class for the SATA ports

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22143 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2007-09-01 18:51:03 +00:00
parent fed5bce4e3
commit 9815383e54
2 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,38 @@
/*
* Copyright 2007, Marcus Overhagen. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include "ahci_port.h"
#include <KernelExport.h>
#include <stdio.h>
#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);
}

View File

@ -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