[aoe/bus] Generate a WV_S_DRIVER_DUMMY_IDS instance
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Fri, 31 Dec 2010 07:39:02 +0000 (02:39 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Fri, 31 Dec 2010 07:39:02 +0000 (02:39 -0500)
src/aoe/bus.c

index 6ffa06f..2132d1a 100644 (file)
@@ -164,6 +164,14 @@ void AoeBusFree(void) {
     return;
   }
 
+/* Generate dummy IDs for the AoE bus PDO. */
+#define AOE_M_BUS_IDS(X_, Y_)                       \
+  X_(Y_, Dev,      winvblock__literal_w L"\\AoE"  ) \
+  X_(Y_, Instance, L"0"                           ) \
+  X_(Y_, Hardware, winvblock__literal_w L"\\AoE\0") \
+  X_(Y_, Compat,   winvblock__literal_w L"\\AoE\0")
+WV_M_DRIVER_DUMMY_ID_GEN(AoeBusDummyIds_, AOE_M_BUS_IDS);
+
 static winvblock__uint32 STDCALL AoeBusPnpId_(
     IN WV_SP_DEV_T dev,
     IN BUS_QUERY_ID_TYPE query_type,