免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1631 | 回复: 2
打印 上一主题 下一主题

DDI/DKI开发PCI设备驱动 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-10 16:06 |只看该作者 |倒序浏览
使用ddi_create_minor_node为PCI设备生成次设备号时,type是否应为DDI_NT_PCI_ATTACH_POINT?
使用哪个函数能得到设备的基址和中断号呢?

论坛徽章:
0
2 [报告]
发表于 2005-11-11 03:20 |只看该作者
No such a type which you mention.

Here is predefine list for node_type on Solaris 10.

DDI_NT_SERIAL               For serial ports
DDI_NT_SERIAL_MB         For on board serial ports
DDI_NT_SERIAL_DO         For dial out ports
DDI_NT_SERIAL_MB_DO  For on board dial out ports
DDI_NT_BLOCK                For hard disks
DDI_NT_BLOCK_CHAN     For hard disks with channel or target numbers
DDI_NT_CD                      For CDROM drives
DDI_NT_CD_CHAN           For CDROM drives with channel or target numbers
DDI_NT_FD                      For floppy disks
DDI_NT_TAPE                  For tape drives
DDI_NT_NET                    For DLPI style 1 or style 2 network devices
DDI_NT_DISPLAY             For display devices
DDI_PSEUDO                   For pseudo devices

论坛徽章:
0
3 [报告]
发表于 2005-11-11 12:12 |只看该作者
在sunddi.h中定义了DDI_NT_PCI_ATTACHMENT_POINT
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP