ReactOS 0.4.16-dev-125-g798ea90
badblock.h
Go to the documentation of this file.
1/*++
2
3Copyright (C) 2006 VorontSOFT
4
5Module Name:
6 badblock.h
7
8Abstract:
9 This is the artificial badblock simulation part of the
10 miniport driver for ATA/ATAPI IDE controllers
11 with Busmaster DMA support
12
13Author:
14 Nikolai Vorontsov (NickViz)
15
16Environment:
17 kernel mode only
18
19Notes:
20
21 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
32Revision History:
33 2006/08/03 Initial implementation.
34 2006/08/06 Added registry work.
35
36--*/
37
38
39#ifndef _BADBLOCK_H_INCLUDED_
40#define _BADBLOCK_H_INCLUDED_
41
42#pragma pack(push, 4)
43typedef struct _SBadBlockRange
44{
45// ULONG m_ldev;
49
50typedef struct _SBadBlockListItem {
57
58#pragma pack(pop)
59
60void
63 IN PHW_LU_EXTENSION LunExt
64 );
65
66void
69 IN PHW_LU_EXTENSION LunExt
70 );
71
72bool
75 IN PHW_LU_EXTENSION LunExt,
76// IN UCHAR command,
79 );
80
81#endif // _BADBLOCK_H_INCLUDED_
struct _SBadBlockRange SBadBlockRange
void NTAPI InitBadBlocks(IN PHW_LU_EXTENSION LunExt)
struct _SBadBlockRange * PSBadBlockRange
void NTAPI ForgetBadBlocks(IN PHW_LU_EXTENSION LunExt)
struct _SBadBlockListItem * PSBadBlockListItem
struct _SBadBlockListItem SBadBlockListItem
bool NTAPI CheckIfBadBlock(IN PHW_LU_EXTENSION LunExt, IN ULONGLONG lba, IN ULONG count)
GLuint GLuint GLsizei count
Definition: gl.h:1545
Definition: typedefs.h:120
WCHAR SerNumStr[128]
Definition: badblock.h:53
SBadBlockRange * arrBadBlocks
Definition: badblock.h:54
PHW_LU_EXTENSION LunExt
Definition: badblock.h:52
LIST_ENTRY List
Definition: badblock.h:51
ULONGLONG m_lbaEnd
Definition: badblock.h:47
ULONGLONG m_lbaStart
Definition: badblock.h:46
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
uint64_t ULONGLONG
Definition: typedefs.h:67
#define lba
__wchar_t WCHAR
Definition: xmlstorage.h:180