Chameleon

Chameleon Svn Source Tree

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

Source at commit 1129 created 12 years 11 months ago.
By meklort, Change options.o so that it reloads the system config as well. Also change it so that it uses that config for variables (NOTE: if the calue exists in chameleonConfig, it's used instead.
1/*
2 * Copyright (c) 2011 Evan Lojewski. All rights reserved.
3 *
4 */
5#ifndef PARTITION_H
6#define PARTITION_H
7
8#include <IOKit/IOTypes.h>
9#include <Disk.hpp>
10
11#define INVALID_PARTITION (-1)
12
13class Partition
14{
15public:
16 Partition(Disk* disk, UInt8 partitionNumber);
17 ~Partition();
18
19 virtual IOReturn Read(UInt64 sector, UInt64 size, UInt8* buffer);
20 virtual IOReturn Write(UInt64 sector, UInt64 size, UInt8* buffer);
21
22 virtual bool probe();
23
24 //virtual uuid_t getUUID();
25
26protected:
27 Disk *mDisk;
28 UInt64 mNumSectors;
29 UInt64 mBeginSector;
30 SInt8 mPartitionNumber;
31 UInt8 mNumPartitions;
32 //uuid_t mUUID;
33
34private:
35
36};
37
38
39#endif /* PARTITION_H */
40

Archive Download this file

Revision: 1129