Initial import.
[mirror_edk2.git] / EdkModulePkg / Universal / Disk / DiskIo / Dxe / diskio.h
1 /*++
2
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 DiskIo.h
15
16 Abstract:
17 Private Data definition for Disk IO driver
18
19 --*/
20
21 #ifndef _DISK_IO_H
22 #define _DISK_IO_H
23
24
25
26 #define DISK_IO_PRIVATE_DATA_SIGNATURE EFI_SIGNATURE_32 ('d', 's', 'k', 'I')
27
28 #define DATA_BUFFER_BLOCK_NUM (64)
29
30 typedef struct {
31 UINTN Signature;
32 EFI_DISK_IO_PROTOCOL DiskIo;
33 EFI_BLOCK_IO_PROTOCOL *BlockIo;
34 } DISK_IO_PRIVATE_DATA;
35
36 #define DISK_IO_PRIVATE_DATA_FROM_THIS(a) CR (a, DISK_IO_PRIVATE_DATA, DiskIo, DISK_IO_PRIVATE_DATA_SIGNATURE)
37
38 //
39 // Global Variables
40 //
41 extern EFI_DRIVER_BINDING_PROTOCOL gDiskIoDriverBinding;
42 extern EFI_COMPONENT_NAME_PROTOCOL gDiskIoComponentName;
43
44 #endif