兄弟们帮我看看
这里有没有用2.2内核的??帮我看看linux/driver/char下面有没有psaux.c啊??我记得2.2内核里面有这个文件的,但是怎么到了redhat9里面就没有这个文件了????还有有心的兄弟,能不能帮我找一下redhat9下面的ps/2鼠标的驱动程序源码是哪个啊??我要晕了,找了很久都没有找到哈!
谢谢各位兄弟了 ! check pc_keyb.c 靠,不会吧!!2.4内核竟然把ps/2mouse驱动模块集成到keyb里面去了
我晕啊
谢谢Dragonfly斑竹大哥啊
我最近在写一个ps/2的鼠标驱动程序,本想找点源码来看看的,现在郁闷了
Dragonfly大哥,还有两个问题:
1.我想把我的驱动编程模块insmod进内核,但是我看系统中的ps/2 mouse support并没有模块化啊!那我要插入我的模块的话,就要先把内核中的ps/2 mouse support去除才行啊!但是那在2.4内核中,那不是要把键盘的驱动也要编译出内核?那我还怎么操作啊 !??不解!
2.我现在只是做的一个鼠标的上层驱动,处理鼠标事件应该交给下层的模块处理。(我是这样理解的,不知道对不对??而且我觉得这个下层模块应该是input.o吧??还请Dragonfly大哥指点一下)那么我现在应该怎么样才能把我的模块交给下层呢??
谢谢Dragonfly大哥了,我问了好多人都没有人肯告诉我ps/2的源码是哪个!!!
谢谢了 !!! i am not quite understand. why u can not use the ps/2 mouse driver in kernel directly? if u stick to use u own, u can unselect the psmouse option only, i do not think that will have impact on u kerboard. it is integrated with keyb code does not mean keyb will be disable at the same time.
2) i never read mouse code, but it should be simple. u can read that file to know,see those read_aux, write_aux...
good luck. because i am a newer, and my project manager asked me to do this to show him that i can perform the task with more difficulties, such as the ata driver for arm arch.
but i was just a college student two months ago, and i have never use linux before. the first time i used linux is 25th, July.now i have to write drivers for linux!
yumen!!!!!
thanx for ur help! ata driver for arm arch? i think ata driver is already in kernel. and evern sata driver will be there soon,u have an ata controller? yes, it is in the kernel, but we should modify it for our use.
but i don't know the details.
my project manager told me that.
i just write the driver, but i think i can't finish that!!
so yumen!
thanx all the same! thanx!! u had better read that qpmouse.c, it is a good reference for a mouse driver. Dragonfly大哥,又有问题了
编译时无错误,无警告
但是insmod时显示unresolved symbol.
编译都通过了为什么会在插入模块时出错呢???不解!!!
还望Dragonfly大哥指点一下!? do u use correct kernel include dir in u makefile?
what i always do isdl a kernel,recompile it, and use new kernel to boot and use the kernel source to compile module. always fine. dl???
what does that mean!
the unresoleved symbol is defined in one headfile, and it passed when i compile it
but cannt pass when i insmod, so i redefined the symbol in my *.c file, it is OK!! dl = download o?hehe
i just cp my original kernel, and then recompile it.
and i perform all the module and kernel works with this kernel sourse.
download takes much time,hehe
页:
[1]