#include <pci.h>
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ Device_ChangeResourceSettings()
Definition at line 283 of file device.c.
285{
288
290}
#define UNIMPLEMENTED_DBGBREAK(...)
#define UNREFERENCED_PARAMETER(P)
◆ Device_GetAdditionalResourceDescriptors()
◆ Device_MassageHeaderForLimitsDetermination()
Definition at line 218 of file device.c.
219{
224
225
228
229
230 BarArray = PciData->u.type0.BaseAddresses;
231
232
236 {
237
239 }
240
241
243
244
246}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define PCI_TYPE0_ADDRESSES
#define PCI_CLASS_MASS_STORAGE_CTLR
#define PCI_SUBCLASS_MSC_IDE_CTLR
#define PCI_ADDRESS_ROM_ADDRESS_MASK
◆ Device_ResetDevice()
◆ Device_RestoreCurrent()
Definition at line 250 of file device.c.
251{
253
254 return;
255}
◆ Device_SaveCurrentSettings()
Definition at line 20 of file device.c.
21{
28
29
32
33
34 BarArray = PciData->u.type0.BaseAddresses;
36 {
37
40
41
42 CmDescriptor->
Type = IoDescriptor->
Type;
46 CmDescriptor->
u.
Generic.Start.HighPart = 0;
48
49
51 {
52
54
55
57 {
58
61 }
62 else
63 {
64
67
68
70 {
71
72 CmDescriptor->
u.
Memory.Start.HighPart = BarArray[
i + 1];
73 }
75 {
76
77 BarMask = 0xFFFF0;
78 }
79 }
80 }
81 else
82 {
83
84 Bar = PciData->u.type0.ROMBaseAddress;
85
86
88
89
91 {
92
94 continue;
95 }
96 }
97
98
101
102
103 if (!(CmDescriptor->
u.
Memory.Start.HighPart |
Bar))
104 {
105
108 }
109 }
110
111
112 Context->PdoExtension->SubsystemVendorId = PciData->u.type0.SubVendorID;
113 Context->PdoExtension->SubsystemId = PciData->u.type0.SubSystemID;
114}
#define CmResourceTypeNull
#define CmResourceTypeMemory
#define CmResourceTypePort
struct _CM_PARTIAL_RESOURCE_DESCRIPTOR::@391::@396 Memory
union _CM_PARTIAL_RESOURCE_DESCRIPTOR::@391 u
struct _CM_PARTIAL_RESOURCE_DESCRIPTOR::@391::@392 Generic
union _IO_RESOURCE_DESCRIPTOR::@2051 u
struct _IO_RESOURCE_DESCRIPTOR::@2051::@2056 Generic
#define PCI_ADDRESS_IO_ADDRESS_MASK
#define PCI_ADDRESS_IO_SPACE
#define PCI_ADDRESS_MEMORY_ADDRESS_MASK
#define PCI_ROMADDRESS_ENABLED
#define PCI_ADDRESS_MEMORY_TYPE_MASK
◆ Device_SaveLimits()
Definition at line 118 of file device.c.
119{
125
126
130
131
132 BarArray = PciData->u.type0.BaseAddresses;
133
134
138 {
139
140 BarArray[0] = 0;
141 BarArray[1] = 0;
142 BarArray[2] = 0;
143 BarArray[3] = 0;
144 }
148 {
149
150
151
152
153
154
155
157 {
158
159 if (BarArray[
i] == 0xFE000000)
160 {
161
162 BarArray[
i] = 0xFC000000;
163 DPRINT1(
"PCI - Adjusted broken S3 requirement from 32MB to 64MB\n");
164 }
165 }
166 }
167
168
170 {
171
172 if (BarArray[1] == 0xFC01)
173 {
174
175 if (Current->u.type0.BaseAddresses[1] == 1)
176 {
177
178 BarArray[1] = 0;
179 DPRINT1(
"PCI - Ignored Cirrus GD54xx broken IO requirement (400 ports)\n");
180 }
181 else
182 {
183
184 DPRINT1(
"PCI - Cirrus GD54xx 400 port IO requirement has a valid setting (%08x)\n",
185 Current->u.type0.BaseAddresses[1]);
186 }
187 }
188 else if (BarArray[1])
189 {
190
191 DPRINT1(
"PCI - Warning Cirrus Adapter 101300a0 has unexpected resource requirement (%08x)\n",
192 BarArray[1]);
193 }
194 }
195
196
199 {
200
202 {
203
207 }
208 }
209
210
212 &PciData->u.type0.ROMBaseAddress,
214}
BOOLEAN NTAPI PciCreateIoDescriptorFromBarLimit(PIO_RESOURCE_DESCRIPTOR ResourceDescriptor, IN PULONG BarArray, IN BOOLEAN Rom)
_In_ LONG _In_ LONG Limit