summaryrefslogtreecommitdiff
path: root/Include/PPI/AtaController.h
blob: c924c722e36464c4728aad1fc4cd4ef4bdb2b968 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2005, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**             6145-F Northbelt Pkwy, Norcross, GA 30071            **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************
// $Header: /Alaska/BIN/Core/Modules/Recovery/AtaController.h 2     4/10/06 9:52a Ambikas $
//
// $Revision: 2 $
//
// $Date: 4/10/06 9:52a $
//*****************************************************************************
// Revision	History
// ----------------
// $Log: /Alaska/BIN/Core/Modules/Recovery/AtaController.h $
// 
// 2     4/10/06 9:52a Ambikas
// 
// 1     12/01/05 9:35a Felixp
// 
// 1     10/10/05 11:40a Radhikav
// Initial Release.
// 
// 
// 
//
//*****************************************************************************




#ifndef _PEI_ATA_CONTROLLER_PPI_H
#define _PEI_ATA_CONTROLLER_PPI_H
#ifdef __cplusplus
extern "C" {
#endif

#include "EFI.h"
#include "PEI.h"

#define PEI_ATA_CONTROLLER_PPI_GUID \
  { 0xa1e2176f, 0xcbda, 0x4f32, 0x87, 0x56, 0x7d, 0x7a, 0xe5, 0x22, 0xd6, 0x93 }

typedef struct _PEI_ATA_CONTROLLER_PPI	PEI_ATA_CONTROLLER_PPI;

typedef 
EFI_STATUS
(EFIAPI *PEI_ENABLE_ATA) (
  IN EFI_PEI_SERVICES               **PeiServices,
  IN PEI_ATA_CONTROLLER_PPI			 *This,
  IN UINT8                          ChannelMask
  );

typedef struct _PEI_ATA_CONTROLLER_PPI {
  PEI_ENABLE_ATA                    EnableAtaChannel;
} PEI_ATA_CONTROLLER_PPI;


#define PEI_ICH_IDE_PRIMARY     0x01
#define PEI_ICH_IDE_SECONDARY   0x02

#define PEI_IDE_RECOVERY_NATIVE_MODE_PPI_GUID \
  { 0x7e13637a, 0xc3f8, 0x43d1, 0xb0, 0x51, 0xed, 0x19, 0xd7, 0x8, 0xec, 0x7a }

typedef struct {
	UINT16 PCMDBarAddress;
	UINT16 PCNLBarAddress;
	UINT16 SCMDBarAddress;
	UINT16 SCNLBarAddress;
} PEI_IDE_RECOVERY_NATIVE_MODE_PPI;

#ifdef __cplusplus
}
#endif
#endif