LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-24-2008, 01:05 PM   #1
nematoad
LQ Newbie
 
Registered: Dec 2008
Location: Beverly Hills, CA 90210
Distribution: Centos
Posts: 4

Rep: Reputation: 0
DMA Transfer from Network Interface to Memory? Intel e1000


Guys, and Gals,

Anyone know how to write a function to initiate a DMA transfer from Network interface such as Intel 100/1000 Gig interface straight to memory? I would be using RHEL 5.1/ a 2.6 kernel.

Any ideas would be helpful.

Mike


08:00.0 Ethernet controller: Intel Corporation 82575EB Gigabit Network Connection (rev 02)
Subsystem: Super Micro Computer Inc Unknown device 10a7
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 201
Region 0: Memory at daa20000 (32-bit, non-prefetchable) [size=128K]
Region 1: Memory at daa00000 (32-bit, non-prefetchable) [size=128K]
Region 2: I/O ports at 2000 [size=32]
Region 3: Memory at daa80000 (32-bit, non-prefetchable) [size=16K]
[virtual] Expansion ROM at c2100000 [disabled] [size=128K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=1 PME-
Capabilities: [50] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Address: 0000000000000000 Data: 0000
Capabilities: [60] MSI-X: Enable+ Mask- TabSize=10
Vector table: BAR=3 offset=00000000
PBA: BAR=3 offset=00002000
Capabilities: [a0] Express Endpoint IRQ 0
Device: Supported: MaxPayload 256 bytes, PhantFunc 0, ExtTag-
Device: Latency L0s <512ns, L1 <64us
Device: AtnBtn- AtnInd- PwrInd-
Device: Errors: Correctable- Non-Fatal- Fatal- Unsupported-
Device: RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
Device: MaxPayload 128 bytes, MaxReadReq 512 bytes
Link: Supported Speed 2.5Gb/s, Width x4, ASPM L0s L1, Port 12
Link: Latency L0s <4us, L1 <64us
Link: ASPM Disabled RCB 64 bytes CommClk- ExtSynch-
Link: Speed 2.5Gb/s, Width x4
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number d0-cf-c3-ff-ff-48-30-00
 
Old 12-24-2008, 01:41 PM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
The kernel driver has to support that capability. If the device is to be a bus master, the device must support it in hardware. If the CPU is to be the bus master, the device's memory must be mapped onto the PCI bus.

Beyond that, you might want to read Linux Device Drivers by Alessandro Rubini and Jonathan Corbet. If you google for it, you will find it online.
 
Old 12-26-2008, 10:56 AM   #3
nematoad
LQ Newbie
 
Registered: Dec 2008
Location: Beverly Hills, CA 90210
Distribution: Centos
Posts: 4

Original Poster
Rep: Reputation: 0
Give me something useful! Of course the device can support DMA transfer. Its an Intel e1000. Send me some code that I can use.
 
Old 12-27-2008, 04:15 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,061
Blog Entries: 1

Rep: Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374Reputation: 1374
Hi,

Quote:
Originally Posted by nematoad View Post
Give me something useful! Of course the device can support DMA transfer. Its an Intel e1000. Send me some code that I can use.
He did provide you useful information. Read the referenced documentation! Write your own code if your able, we are here to assist but not on demand as you seem to present. You will get more help if you show that you are willing to help yourself.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
2 nics for Intel 82573L driver (e1000) itpenguin Slackware - Installation 2 11-20-2007 02:40 AM
Help with Intel e1000 driver berg4091 Slackware 11 11-17-2006 09:17 PM
driver problem with intel pro e1000 takatam Linux - Hardware 3 01-20-2005 01:58 AM
intel gigabit e1000 install on Debian safirarock Debian 2 01-22-2004 05:59 AM
Intel e1000 gigabit adapter with RH 7.2 dulli1 Linux - Networking 3 02-14-2003 08:45 AM


All times are GMT -5. The time now is 05:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration