18 0xFF, 0xFF, 0xFF, 0xFF,
24 'T',
'e',
's',
't',
' ',
'1',
34 'T',
'e',
's',
't',
' ',
'1',
' ',
35 'D',
'e',
'v',
' ',
'1',
42 0x47, 0x01, 0x30, 0x03, 0x40, 0x03, 0x04, 0x02,
46 0x47, 0x00, 0x00, 0x06, 0x80, 0x07, 0x01, 0x08,
47 0x4B, 0x16, 0xFC, 0x0C,
50 0x23, 0x1C, 0x00, 0x08,
86 0x47, 0x01, 0x00, 0x05, 0x06, 0x05, 0x01, 0x01,
90 0x47, 0x01, 0x00, 0x06, 0x07, 0x06, 0x01, 0x01,
94 0x47, 0x01, 0x00, 0x07, 0x08, 0x07, 0x01, 0x01,
111 0x47, 0x01, 0x00, 0x06, 0x07, 0x06, 0x01, 0x01,
115 0x47, 0x01, 0x00, 0x07, 0x08, 0x07, 0x01, 0x01,
119 0x47, 0x01, 0x00, 0x05, 0x06, 0x05, 0x01, 0x01,
133 0x47, 0x01, 0x00, 0x06, 0x07, 0x06, 0x01, 0x01,
137 0x47, 0x01, 0x00, 0x07, 0x08, 0x07, 0x01, 0x01,
155 'T',
'e',
's',
't',
' ',
'1',
' ',
156 'D',
'e',
'v',
' ',
'2',
164 0x00, 0x00, 0x0D, 0x00,
165 0x00, 0x00, 0x0E, 0x00,
166 0x00, 0x01, 0x00, 0x00,
167 0x00, 0x80, 0x00, 0x00,
172 0x00, 0x80, 0x0C, 0x00,
173 0x00, 0x80, 0x00, 0x00,
204 0x4B, 0x80, 0x00, 0x08,
236 LogDev = &
Card->LogDev[0];
366 ok(ReqList !=
NULL,
"ReqList is NULL\n");
369 skip(
"No ReqList\n");
376 AltList = &ReqList->List[0];
596 ok(ReqList !=
NULL,
"ReqList is NULL\n");
599 skip(
"No ReqList\n");
606 AltList = &ReqList->List[0];
696 ok(ReqList !=
NULL,
"ReqList is NULL\n");
699 skip(
"No ReqList\n");
706 AltList = &ReqList->List[0];
794 ok(ReqList !=
NULL,
"ReqList is NULL\n");
797 skip(
"No ReqList\n");
804 AltList = &ReqList->List[0];
862 skip(
"No ResourceList\n");
911 ok(ReqList !=
NULL,
"ReqList is NULL\n");
914 skip(
"No ReqList\n");
921 AltList = &ReqList->List[0];
996 skip(
"No ResourceList\n");
1065 ok(ReqList !=
NULL,
"ReqList is NULL\n");
1066 if (ReqList ==
NULL)
1068 skip(
"No ReqList\n");
1075 AltList = &ReqList->List[0];
1177 ok_eq_int(LogDev->Registers[0x40], 0x0A);
1178 ok_eq_int(LogDev->Registers[0x41], 0x20);
1180 ok_eq_int(LogDev->Registers[0x42], 0x03);
1182 ok_eq_int(LogDev->Registers[0x43], 0x0A);
1183 ok_eq_int(LogDev->Registers[0x44], 0x30);
1186 ok_eq_int(LogDev->Registers[0x48], 0x08);
1187 ok_eq_int(LogDev->Registers[0x49], 0x90);
1189 ok_eq_int(LogDev->Registers[0x4A], 0x00);
1191 ok_eq_int(LogDev->Registers[0x4B], 0xFF);
1192 ok_eq_int(LogDev->Registers[0x4C], 0xFF);
1195 for (
i = 2;
i < 4; ++
i)
1210 for (
i = 0;
i < 4; ++
i)
1232 ok_eq_int(LogDev->Registers[0x60], 0x00);
1233 ok_eq_int(LogDev->Registers[0x61], 0x80);
1236 for (
i = 1;
i < 6; ++
i)
1245 ok_eq_int(LogDev->Registers[0x70], 0x05);
1246 ok_eq_int(LogDev->Registers[0x71], 0x02);
1249 ok_eq_int(LogDev->Registers[0x72], 0x00);
1250 ok_eq_int(LogDev->Registers[0x73], 0x00);
1253 ok_eq_int(LogDev->Registers[0x74], 0x06);
1256 ok_eq_int(LogDev->Registers[0x75], 0x04);
1266#define RESOURCE_COUNT 5
1288 ResourceList->List[0].PartialResourceList.Revision = 1;
1296 Descriptor->u.Memory.Start.LowPart = 0xA2000;
1303 Descriptor->u.Memory.Start.LowPart = 0x89000;
static SIZE_T GetPoolAllocSize(PVOID MemPtr)
#define ok_eq_pointer(value, expected)
#define ok_eq_size(value, expected)
#define ok_eq_int(value, expected)
#define ok_int(expression, result)
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 CmResourceTypeConfigData
#define CmResourceTypeMemory
#define CmResourceTypeDma
#define CmResourceTypePort
#define CmResourceTypeInterrupt
VOID IsaBusCreateCard(_Inout_ PISAPNP_CARD Card, _In_ PVOID PnpRom, _In_ ULONG RomSize, _In_ ULONG LogicalDevices)
#define expect_alt_list_header(AltList, ExpectedCount)
#define expect_requirements_list_header(ReqList, ExpectedIface, ExpectedCount)
#define expect_dma_req(Desc, ExpectedOption, ExpectedFlags, ExpectedShare, ExpectedMin, ExpectedMax)
#define expect_resource_list_header(ResourceList, ExpectedIface, ExpectedCount)
#define expect_port_req(Desc, ExpectedOption, ExpectedFlags, ExpectedShare, ExpectedLength, ExpectedAlign, ExpectedMin, ExpectedMax)
#define expect_irq_req(Desc, ExpectedOption, ExpectedFlags, ExpectedShare, ExpectedMin, ExpectedMax)
#define expect_irq_res(Desc, ExpectedFlags, ExpectedShare, ExpectedLevel, ExpectedVector, ExpectedAffinity)
#define expect_mem_req(Desc, ExpectedOption, ExpectedFlags, ExpectedShare, ExpectedLength, ExpectedAlign, ExpectedMin, ExpectedMax)
#define expect_mem_res(Desc, ExpectedFlags, ExpectedShare, ExpectedLength, ExpectedStart)
#define expect_cfg_req(Desc, ExpectedOption, ExpectedFlags, ExpectedShare, ExpectedPriority, ExpectedRes1, ExpectedRes2)
#define expect_port_res(Desc, ExpectedFlags, ExpectedShare, ExpectedLength, ExpectedStart)
#define expect_dma_res(Desc, ExpectedFlags, ExpectedShare, ExpectedChannel)
#define CM_RESOURCE_PORT_IO
#define CM_RESOURCE_DMA_8
#define CM_RESOURCE_MEMORY_READ_ONLY
#define CM_RESOURCE_PORT_16_BIT_DECODE
#define CM_RESOURCE_INTERRUPT_LEVEL_SENSITIVE
#define CM_RESOURCE_MEMORY_24
#define CM_RESOURCE_INTERRUPT_LATCHED
#define CM_RESOURCE_PORT_10_BIT_DECODE
_In_ ULONG _In_ ULONG Offset
VOID DrvTestCard1Dev2Resources(_In_ PCM_RESOURCE_LIST ResourceList, _In_ PIO_RESOURCE_REQUIREMENTS_LIST ReqList)
static VOID DrvTestCard1Dev1QueryResourceRequirements(_In_ PIO_RESOURCE_REQUIREMENTS_LIST ReqList)
static VOID DrvTestCard1Dev1QueryResources(_In_ PCM_RESOURCE_LIST ResourceList)
PCM_RESOURCE_LIST DrvTestCard1Dev6CreateConfigurationResources(VOID)
VOID DrvCreateCard1(_In_ PISAPNP_CARD Card)
static VOID DrvTestCard1Dev2QueryResources(_In_ PCM_RESOURCE_LIST ResourceList)
VOID DrvTestCard1Dev6Resources(_In_ PCM_RESOURCE_LIST ResourceList, _In_ PIO_RESOURCE_REQUIREMENTS_LIST ReqList)
static VOID DrvTestCard1Dev2QueryResourceRequirements(_In_ PIO_RESOURCE_REQUIREMENTS_LIST ReqList)
VOID DrvTestCard1Dev7Resources(_In_ PCM_RESOURCE_LIST ResourceList, _In_ PIO_RESOURCE_REQUIREMENTS_LIST ReqList)
static VOID DrvTestCard1Dev6QueryResources(_In_ PCM_RESOURCE_LIST ResourceList)
VOID DrvTestCard1Dev5Resources(_In_ PCM_RESOURCE_LIST ResourceList, _In_ PIO_RESOURCE_REQUIREMENTS_LIST ReqList)
VOID DrvTestCard1Dev6ConfigurationResult(_In_ PISAPNP_CARD_LOGICAL_DEVICE LogDev)
static VOID DrvTestCard1Dev5QueryResourceRequirements(_In_ PIO_RESOURCE_REQUIREMENTS_LIST ReqList)
static VOID DrvTestCard1Dev3QueryResources(_In_ PCM_RESOURCE_LIST ResourceList)
static UCHAR DrvpTestPnpRom[]
static VOID DrvTestCard1Dev4QueryResources(_In_ PCM_RESOURCE_LIST ResourceList)
VOID DrvTestCard1Dev1Resources(_In_ PCM_RESOURCE_LIST ResourceList, _In_ PIO_RESOURCE_REQUIREMENTS_LIST ReqList)
VOID DrvTestCard1Dev3Resources(_In_ PCM_RESOURCE_LIST ResourceList, _In_ PIO_RESOURCE_REQUIREMENTS_LIST ReqList)
static VOID DrvTestCard1Dev4QueryResourceRequirements(_In_ PIO_RESOURCE_REQUIREMENTS_LIST ReqList)
static VOID DrvTestCard1Dev6QueryResourceRequirements(_In_ PIO_RESOURCE_REQUIREMENTS_LIST ReqList)
static VOID DrvTestCard1Dev5QueryResources(_In_ PCM_RESOURCE_LIST ResourceList)
VOID DrvTestCard1Dev4Resources(_In_ PCM_RESOURCE_LIST ResourceList, _In_ PIO_RESOURCE_REQUIREMENTS_LIST ReqList)
static VOID DrvTestCard1Dev3QueryResourceRequirements(_In_ PIO_RESOURCE_REQUIREMENTS_LIST ReqList)
IO_RESOURCE_DESCRIPTOR Descriptors[1]
#define FIELD_OFFSET(t, f)
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFIORESLIST * ResourceList
_Must_inspect_result_ _In_ WDFIORESLIST _In_ PIO_RESOURCE_DESCRIPTOR Descriptor
_Must_inspect_result_ _In_ WDFCMRESLIST List
@ CmResourceShareDeviceExclusive
@ CmResourceShareUndetermined
struct _IO_RESOURCE_LIST * PIO_RESOURCE_LIST
#define IO_RESOURCE_ALTERNATIVE
#define IO_RESOURCE_PREFERRED