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