-#ifndef CM_DRP_COMPATIBLEIDS
-#define CM_DRP_COMPATIBLEIDS 0x03
-#endif
-#ifndef CM_DRP_CLASS
-#define CM_DRP_CLASS 0x08
-#endif
-#ifndef CM_DRP_FRIENDLYNAME
-#define CM_DRP_FRIENDLYNAME 0x0d
-#endif
-#ifndef CM_DRP_ADDRESS
-#define CM_DRP_ADDRESS 0x1d
-#endif
-
-#ifndef CM_Get_DevNode_Registry_PropertyA
-CMAPI CONFIGRET WINAPI CM_Get_DevNode_Registry_PropertyA(DEVINST dnDevInst, \
- ULONG ulProperty, PULONG pulRegDataType, PVOID Buffer, \
- PULONG pulLength, ULONG ulFlags);
-#endif
-
-static void enumerate_hub(struct sp_port *port, char *hub_name,
- char *parent_path);
-
-static char *wc_to_utf8(PWCHAR wc_buffer, ULONG size)