2 //#include <ntos/types.h>
6 TODO: Do a major cleanup of this file!
7 Lots of definitions should go to corresponding files
14 #define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
16 void wait_ms(int mils
);
17 void my_udelay(int us
);
19 // For now this is needed only for correct operation of embedded keyboard and mouse drvs
20 typedef struct _USBPORT_INTERFACE
22 PCONNECT_DATA KbdConnectData
;
23 PCONNECT_DATA MouseConnectData
;
24 } USBPORT_INTERFACE
, *PUSBPORT_INTERFACE
;
26 // Register in usbcore.sys
27 void STDCALL
RegisterPortDriver(PDRIVER_OBJECT
, PUSBPORT_INTERFACE
);
30 int _snprintf(char * buf
, size_t cnt
, const char *fmt
, ...);
33 int sprintf(char * buf
, const char *fmt
, ...);
36 int swprintf(wchar_t *buf
, const wchar_t *fmt
, ...);
41 #include "linux/linux_wrapper.h"
46 #include "linux/usb.h"
47 #include "linux/pci_ids.h"