Add dependency for RealAsm file build rules and Use the module name in place of macro...
[mirror_edk2.git] / EdkNt32Pkg / Dxe / WinNtThunk / Cpu / CpuDriver.h
CommitLineData
878ddf1f 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 CpuDriver.h\r
15\r
16Abstract:\r
17\r
18 NT Emulation Architectural Protocol Driver as defined in Tiano.\r
19\r
20--*/\r
21\r
22#ifndef _CPU_ARCHITECTURAL_PROTOCOL_DRIVER_H_\r
23#define _CPU_ARCHITECTURAL_PROTOCOL_DRIVER_H_\r
24\r
25\r
26\r
741fb364 27extern UINT8 CpuStrings[];\r
878ddf1f 28\r
29//\r
30// Internal Data Structures\r
31//\r
32#define CPU_ARCH_PROT_PRIVATE_SIGNATURE EFI_SIGNATURE_32 ('c', 'a', 'p', 'd')\r
33\r
34typedef struct {\r
35 UINTN Signature;\r
36 EFI_HANDLE Handle;\r
37\r
38 EFI_CPU_ARCH_PROTOCOL Cpu;\r
39 EFI_CPU_IO_PROTOCOL CpuIo;\r
40\r
41 //\r
42 // Local Data for CPU interface goes here\r
43 //\r
44 CRITICAL_SECTION NtCriticalSection;\r
45 BOOLEAN InterruptState;\r
46\r
47} CPU_ARCH_PROTOCOL_PRIVATE;\r
48\r
49#define CPU_ARCH_PROTOCOL_PRIVATE_DATA_FROM_THIS(a) \\r
50 CR (a, \\r
51 CPU_ARCH_PROTOCOL_PRIVATE, \\r
52 Cpu, \\r
53 CPU_ARCH_PROT_PRIVATE_SIGNATURE \\r
54 )\r
55\r
56EFI_STATUS\r
57EFIAPI\r
58CpuMemoryServiceRead (\r
59 IN EFI_CPU_IO_PROTOCOL *This,\r
60 IN EFI_CPU_IO_PROTOCOL_WIDTH Width,\r
61 IN UINT64 Address,\r
62 IN UINTN Count,\r
63 IN OUT VOID *Buffer\r
64 );\r
65\r
66EFI_STATUS\r
67EFIAPI\r
68CpuMemoryServiceWrite (\r
69 IN EFI_CPU_IO_PROTOCOL *This,\r
70 IN EFI_CPU_IO_PROTOCOL_WIDTH Width,\r
71 IN UINT64 Address,\r
72 IN UINTN Count,\r
73 IN OUT VOID *Buffer\r
74 );\r
75\r
76EFI_STATUS\r
77EFIAPI\r
78CpuIoServiceRead (\r
79 IN EFI_CPU_IO_PROTOCOL *This,\r
80 IN EFI_CPU_IO_PROTOCOL_WIDTH Width,\r
81 IN UINT64 UserAddress,\r
82 IN UINTN Count,\r
83 IN OUT VOID *UserBuffer\r
84 );\r
85\r
86EFI_STATUS\r
87EFIAPI\r
88CpuIoServiceWrite (\r
89 IN EFI_CPU_IO_PROTOCOL *This,\r
90 IN EFI_CPU_IO_PROTOCOL_WIDTH Width,\r
91 IN UINT64 UserAddress,\r
92 IN UINTN Count,\r
93 IN OUT VOID *UserBuffer\r
94 );\r
95\r
96\r
97#endif\r