由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - How to register linux network driver ?
相关主题
Micro-SD card 驱动程序Can i register a ssc driver (a serial interface device) to be a spi driver ?
INIT_WORK从Linux kernel 2.6.20后改了?Kernel ioctl call
怎样恢复grub设置?what packages needed to init 5 X11
section mismatches while making kernelIntel Mobin 2 秒钟启动到 GUI
闲的蛋疼,算密码急问:linux 2.6 里,如何从inode得到ext2_inode_info?
请问有些什么方法可以查死机的原因?problem: ao pulse init failed connection refused
x61s ultranav的中间那个键的驱动?请问Ubuntu下开机自动执行命令的设置?
2个offer如何选, 大家帮帮忙dma一次只能传16kb,
相关话题的讨论汇总
话题: mydrv话题: driver话题: register话题: init话题: probe
进入Linux版参与讨论
1 (共1页)
w*s
发帖数: 7227
1
hi again,
i have a brand new network driver, want to register,
this is what i did:
static struct platform_driver mydrv =
{
.probe = mydrv_probe,
......
}
1. static int __init mydrv_init()
{
platform_driver_register(&mydrv);
}
2. module_init(mydrv_init);
but when loading it, mydrv_probe() never gets called ?
so what's the correct way pls ?
Thanks again !
S*A
发帖数: 7142
2
What is the bus of your devcie? PCI, USB etc.
You need to fill out the proper identifier so let
the bus driver find the matching vendor id or device
id to call your probing function.
Go get a book some thing like linux device driver
version 3
w*s
发帖数: 7227
3
我这是embedded system,一个板子上有arm, fpga, mac etc.,
不是pci or usb, 请问这是什么?

【在 S*A 的大作中提到】
: What is the bus of your devcie? PCI, USB etc.
: You need to fill out the proper identifier so let
: the bus driver find the matching vendor id or device
: id to call your probing function.
: Go get a book some thing like linux device driver
: version 3

a9
发帖数: 21638
4
lspci?

【在 w*s 的大作中提到】
: 我这是embedded system,一个板子上有arm, fpga, mac etc.,
: 不是pci or usb, 请问这是什么?

w*s
发帖数: 7227
5
brothers,
if i don't have the real HW, is this why probe() never gets called ?

【在 a9 的大作中提到】
: lspci?
w*s
发帖数: 7227
6
also do i need to add sth. for platform_device_register to make platform_
driver_register to work ?
w*s
发帖数: 7227
7
also do i need to add sth. for platform_device_register to make platform_
driver_register to work ?
1 (共1页)
进入Linux版参与讨论
相关主题
dma一次只能传16kb,闲的蛋疼,算密码
slackware Linux 启动一问请问有些什么方法可以查死机的原因?
第一次用opensuse,很不错x61s ultranav的中间那个键的驱动?
arch收拾好了...2个offer如何选, 大家帮帮忙
Micro-SD card 驱动程序Can i register a ssc driver (a serial interface device) to be a spi driver ?
INIT_WORK从Linux kernel 2.6.20后改了?Kernel ioctl call
怎样恢复grub设置?what packages needed to init 5 X11
section mismatches while making kernelIntel Mobin 2 秒钟启动到 GUI
相关话题的讨论汇总
话题: mydrv话题: driver话题: register话题: init话题: probe