Chameleon

Chameleon Svn Source Tree

Root/branches/rewrite/i386/modules/BiosDisk/include/Disk.hpp

Source at commit 1075 created 12 years 9 months ago.
By meklort, Disk code
1/*
2 * Copyright (c) 2011 Evan Lojewski. All rights reserved.
3 *
4 */
5#ifndef DISK_H
6#define DISK_H
7
8#include <IOKit/IOTypes.h>
9
10class Disk
11{
12public:
13 Disk();
14 Disk(const char* name);
15 ~Disk();
16
17 virtual IOReturn Read(UInt64 sector, UInt64 size, char* buffer) = 0;
18 virtual IOReturn Write(UInt64 sector, UInt64 size, char* buffer) = 0;
19
20 bool isValid() { return mName != NULL; };
21protected:
22 const char *mName;
23 const char *busType;
24
25private:
26
27};
28
29#endif /* DISK_H */
30

Archive Download this file

Revision: 1075