共 4 篇文章 |
|
static struct pci_device_id rtl8139_pci_tbl[] = { {0x10ec, 0x8139, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, ....static struct pci_device_id e1000_pci_tbl[] = { { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x1000) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x1001) }, {0,}};pci_driver,设备驱动程序数据结构,它是驱动程序与PCI总... 阅724 转2 评0 公众公开 11-10-07 16:46 |
通常,使用如下方式(前面的数字代码次设备号) 0 = /dev/fb0 First frame buffer 1 = /dev/fb1 Second frame buffer ... 31 = /dev/fb31 32nd frame buffer 考虑到向下兼容,你可以创建符号链接: /dev/fb0current -> fb0 /dev/fb1current -> fb1.对应的帧缓冲设备(/dev/fb0 and /dev/fb1 ... 阅483 转2 评0 公众公开 11-09-21 18:48 |
回到上面的module_init(s3c2410fb_init)处,也就是说内核与buffer驱动发生关系的第一次地点是在s3c2410fb_init函数,该函数就只有一条语句platform_driver_register (&s3c2410fb_driver);OK,let''s go to ......static int __init s3c2410fb_probe(struct platform_device *pdev){ struct s3c2410 fb_info *info; //s3c24... 阅273 转4 评0 公众公开 11-09-21 18:11 |