阅读:1148回复:4
给20分,windriver
请问用windriver生成usb驱动的windriver6.sys能不能自己修改,我看它生成的例子,只是与设备通信,是不是只用上面的.sys文件就可以了。我是第一次开发,请各位大虾指点!
另外列子中的下面的控制命令是不是自己定义的,可以更该吗,怎么更改? #define IOCTL_WD_DMA_LOCK WD_CTL_CODE(0x901) #define IOCTL_WD_DMA_UNLOCK WD_CTL_CODE(0x902) #define IOCTL_WD_TRANSFER WD_CTL_CODE(0x903) #define IOCTL_WD_MULTI_TRANSFER WD_CTL_CODE(0x904) #define IOCTL_WD_PCI_SCAN_CARDS WD_CTL_CODE(0x90e) #define IOCTL_WD_PCI_GET_CARD_INFO WD_CTL_CODE(0x90f) #define IOCTL_WD_VERSION WD_CTL_CODE(0x910) #define IOCTL_WD_PCI_CONFIG_DUMP WD_CTL_CODE(0x91a) #define IOCTL_WD_KERNEL_PLUGIN_OPEN WD_CTL_CODE(0x91b) #define IOCTL_WD_KERNEL_PLUGIN_CLOSE WD_CTL_CODE(0x91c) #define IOCTL_WD_KERNEL_PLUGIN_CALL WD_CTL_CODE(0x91d) #define IOCTL_WD_INT_ENABLE WD_CTL_CODE(0x91e) #define IOCTL_WD_INT_DISABLE WD_CTL_CODE(0x91f) #define IOCTL_WD_INT_COUNT WD_CTL_CODE(0x920) #define IOCTL_WD_ISAPNP_SCAN_CARDS WD_CTL_CODE(0x924) #define IOCTL_WD_ISAPNP_CONFIG_DUMP WD_CTL_CODE(0x926) #define IOCTL_WD_SLEEP WD_CTL_CODE(0x927) #define IOCTL_WD_DEBUG WD_CTL_CODE(0x928) #define IOCTL_WD_DEBUG_DUMP WD_CTL_CODE(0x929) #define IOCTL_WD_CARD_UNREGISTER WD_CTL_CODE(0x92b) #define IOCTL_WD_ISAPNP_GET_CARD_INFO WD_CTL_CODE(0x92d) #define IOCTL_WD_PCMCIA_SCAN_CARDS WD_CTL_CODE(0x92f) #define IOCTL_WD_PCMCIA_GET_CARD_INFO WD_CTL_CODE(0x930) #define IOCTL_WD_PCMCIA_CONFIG_DUMP WD_CTL_CODE(0x931) #define IOCTL_WD_CARD_REGISTER WD_CTL_CODE(0x97d) #define IOCTL_WD_INT_WAIT WD_CTL_CODE(0x94b) #define IOCTL_WD_LICENSE WD_CTL_CODE(0x952) #define IOCTL_WD_USB_RESET_PIPE WD_CTL_CODE(0x971) #define IOCTL_WD_USB_RESET_DEVICE WD_CTL_CODE(0x93f) #define IOCTL_WD_USB_SCAN_DEVICES WD_CTL_CODE(0x969) #define IOCTL_WD_USB_TRANSFER WD_CTL_CODE(0x967) #define IOCTL_WD_USB_DEVICE_REGISTER WD_CTL_CODE(0x968) #define IOCTL_WD_USB_DEVICE_UNREGISTER WD_CTL_CODE(0x970) #define IOCTL_WD_USB_GET_CONFIGURATION WD_CTL_CODE(0x974) #define IOCTL_WD_EVENT_REGISTER WD_CTL_CODE(0x986) #define IOCTL_WD_EVENT_UNREGISTER WD_CTL_CODE(0x987) #define IOCTL_WD_EVENT_PULL WD_CTL_CODE(0x988) #define IOCTL_WD_EVENT_SEND WD_CTL_CODE(0x989) #define IOCTL_WD_DEBUG_ADD WD_CTL_CODE(0x964) #define IOCTL_WD_USB_RESET_DEVICEEX WD_CTL_CODE(0x973) #define IOCTL_WD_USAGE WD_CTL_CODE(0x976) #define IOCTL_WDU_GET_DEVICE_DATA WD_CTL_CODE(0x980) #define IOCTL_WDU_SET_INTERFACE WD_CTL_CODE(0x981) #define IOCTL_WDU_RESET_PIPE WD_CTL_CODE(0x982) #define IOCTL_WDU_TRANSFER WD_CTL_CODE(0x983) #define IOCTL_WDU_HALT_TRANSFER WD_CTL_CODE(0x985) ____________________ 请大家指教 |
|
|
沙发#
发布于:2003-06-11 23:54
想法不错,可好象没人这么多过,等你来开先例了。
想用windriver来开发驱动,写成dll文件就可以用了,比较简单。 :cool: |
|
|
板凳#
发布于:2003-06-13 13:08
怎么写成dll?
还有,怎样给分? 用过driverwork吗?请问driverwork中打开设备后,怎样利用获得的 设备句柄获得设备的配置信息,也就是设备描叙符,接口描叙符等, 再问怎样配置多个可选配置的接口??? 如果回答,我把所有分给你,谢谢!! |
|
|
地板#
发布于:2003-06-14 16:50
在最上面的帖的右下脚有给分按扭,只能给一次分。
|
|
|
地下室#
发布于:2003-06-18 12:20
对不起,只能给19分了
|
|
|