ChinaUnix.net
相关文章推荐:

PCI dma测试程序 LINUX IOCTL

有没有高手做过pci2040在linux下的驱动程序? 能给我一份源代码吗?或者给点思路!谢谢了! 我的信箱[email]zljack@163.com[/email] 跪求了!

by zljackdodo - C/C++ - 2008-03-21 11:03:07 阅读(1223) 回复(2)

相关讨论

linux下支持多卡的pci驱动程序是怎么实现的?我写的是支持单卡的,不知支持多卡的驱动程序原理是什么, 先谢谢了!!

by jeo1234 - C/C++ - 2003-09-12 07:38:26 阅读(1067) 回复(3)

小弟测试sunpci卡,在sunvts上测试,系统老是提示: pci-pci bridge primary id detection failed 怎么回事呢,我该怎么办??

by tigerlei - Solaris - 2003-03-10 17:23:09 阅读(708) 回复(0)

我想通过读取Modem bits来确定CARRIER位,可是ioctl却出错。 serial.c #ifndef _SVID3 #define _SVID3 #endif #include ioctl.h>; #include ; #include ; #include ; int main(int argc, char *argv[]) { int fd; int flags; if ((fd=open(argv[1],O_RDWR | O_NDELAY))<0) { printf("open file failed!\n"); exit(1); } for (;;) { if (ioctl(fd,TIOCMGET,&flags)<0...

by elashu - 内核/嵌入技术 - 2004-05-23 10:56:34 阅读(689) 回复(0)

我想通过读取Modem bits来确定CARRIER位,可是ioctl却出错。 serial.c #ifndef _SVID3 #define _SVID3 #endif #include ioctl.h>; #include ; #include ; #include ; int main(int argc, char *argv[]) { int fd; int flags; if ((fd=open(argv[1],O_RDWR | O_NDELAY))<0) { printf("open file failed!\n"); exit(1); } for (;;) { if (ioctl(fd,TIOCMGET,&flags)<0...

by elashu - C/C++ - 2004-05-22 22:52:13 阅读(3596) 回复(2)

原文出处 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...

by 无双 - C/C++ - 2003-04-19 00:41:08 阅读(1031) 回复(0)

看了ldd3觉得好糊涂,哪位好人给个简单点的例子看一下或者指明在哪里可以找到,谢谢了~

by unixlanser - 内核/嵌入技术 - 2005-10-29 15:58:04 阅读(1106) 回复(4)

我想通过读取Modem bits来确定CARRIER位,可是ioctl却出错。 serial.c #ifndef _SVID3 #define _SVID3 #endif #include ioctl.h>; #include ; #include ; #include ; int main(int argc, char *argv[]) { int fd; int flags; if ((fd=open(argv[1],O_RDWR | O_NDELAY))<0) { printf("open file failed!\n"); exit(1); } for (;;) { if (...

by elashu - 其他UNIX - 2004-05-22 19:26:38 阅读(814) 回复(0)

我在做pci驱动的时候,遇到这样的问题: 在attach例程中发现板子的中断号是1(inumber=1),就是说这块板子的中断是high level中断。使用书上说明的例子去加载中断处理程序,在调用ddi_get_iblock_cookie(dip, inumber, &iblock_cookie)时报错,这里的参数inumber=1。因此加载不了驱动程序。 以前写的板子中断号都是0,对于中断号是1的high level中断到底该怎样处理呢? 各位高手遇到过这样的情况吗?怎样解决啊? 谢谢啦!

by lijunv - Solaris - 2007-05-21 19:45:36 阅读(1004) 回复(0)

om [ 本帖最后由 berg65123068 于 2007-6-5 19:48 编辑 ]

by berg65123068 - 猎头招聘 - 2007-06-19 21:07:55 阅读(1320) 回复(2)