LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-12-2012, 12:10 AM   #1
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
[RTnet] How to add the PCI ID to a serial port driver?


Code:
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-...e-drivers.html

Quote:
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):

Code:
static struct pci_device_id rtl8169_pci_tbl[] __devinitdata = {
        { 0x10ec, 0x8169, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
        { 0x1186, 0x4300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },    /* <kk> D-Link DGE-528T */
        {0,},
};
So, for me this info will be:
Code:
{ 0x10ec, 0x8136, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
?

Is this the place where I have to add this PCI information and simply do a make and make install then?

Last edited by Aquarius_Girl; 06-12-2012 at 12:12 AM.
 
Old 06-14-2012, 12:28 PM   #2
micscherer
LQ Newbie
 
Registered: May 2011
Location: Vienna
Distribution: gentoo
Posts: 10

Rep: Reputation: 0
PCI_ANY_ID is a macro, that will fill in the information
when the function is called.
No need to change this.

regards, michael
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
On my PCI serial port card I-440 work only two ports from 4 vitaly_v_ch Linux - Hardware 0 01-16-2010 01:18 AM
regarding multi serial port PCI card IO address problem ayaskant16 Linux - Hardware 0 11-12-2008 12:32 AM
New SIIG 4 Port PCI serial card (16C954) driver problem gpedley Linux - Hardware 2 07-10-2008 10:35 PM
Trouble configuring pci serial port in fedora core5 karnati Linux - Hardware 4 12-18-2006 11:22 PM
adding a additional pci card serial port da_kidd_er Linux - Hardware 0 01-09-2004 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration