1

How to add the PCI ID to a serial port driver?

view story
linux-howto

http://unix.stackexchange.com – linux-y3pi:~ # lspci | grep -i ethernet 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 01) linux-y3pi:~ # lspci -n | grep 01:00.0 01:00.0 0200: 10ec:8136 (rev 01) From here: http://www.cyberciti.biz/tips/linux-find-supported-pci-hardware-drivers.... Sample Output: 00:1b.0 0403: 8086:27d8 (rev 01) Where, 00:1b.0 - Device 8086 - constructor code for Intel Corporation 27d8 - The model id. So, I opened: /usr/src/f/rtnet/drivers/experimental/rt_r8169.c The relevant code (IMO): static struc (HowTos)