有没有高手做过pci2040在linux下的驱动程序? 能给我一份源代码吗?或者给点思路!谢谢了! 我的信箱[email]zljack@163.com[/email] 跪求了!
by zljackdodo - C/C++ - 2008-03-21 11:03:07 阅读(1223) 回复(2)
小弟测试sunpci卡,在sunvts上测试,系统老是提示: pci-pci bridge primary id detection failed 怎么回事呢,我该怎么办??
我想通过读取Modem bits来确定CARRIER位,可是ioctl却出错。
serial.c
#ifndef _SVID3
#define _SVID3
#endif
#include
我想通过读取Modem bits来确定CARRIER位,可是ioctl却出错。
serial.c
#ifndef _SVID3
#define _SVID3
#endif
#include
原文出处 http://www.lisoleg.net/lisoleg/applications/ioctl.htm linux ioctl() Primer Vipul Gupta In general an ioctl call in a user program looks like ioctl(int fd, int command, (char *) argstruct). For ioctl calls related to the networking code (these are the only ones we will deal with in this note), the file descriptor fd is actually a socket descriptor returned by the socket() system call. T...
我想通过读取Modem bits来确定CARRIER位,可是ioctl却出错。
serial.c
#ifndef _SVID3
#define _SVID3
#endif
#include
我在做pci驱动的时候,遇到这样的问题: 在attach例程中发现板子的中断号是1(inumber=1),就是说这块板子的中断是high level中断。使用书上说明的例子去加载中断处理程序,在调用ddi_get_iblock_cookie(dip, inumber, &iblock_cookie)时报错,这里的参数inumber=1。因此加载不了驱动程序。 以前写的板子中断号都是0,对于中断号是1的high level中断到底该怎样处理呢? 各位高手遇到过这样的情况吗?怎样解决啊? 谢谢啦!