Chameleon

Chameleon Svn Source Tree

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

Source at commit 1158 created 13 years 16 days ago.
By azimutz, Match nvidia.c with the one on my branch (Chazi) adding dev id's from issue 99 and Asus G74SX (0DF4, 1251).
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: 1158