Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-04-2005, 11:15 PM   #1
Registered: Mar 2005
Posts: 61

Rep: Reputation: 15
Fibre channel ..... programming....

Hi all,
Does any body have any idea on Fibre Channel controller programming through C language? Actually I want to write some code on Fibre Channel controller. As we do some low level coding in network programming. At the same time i want to access dirctly rgisters of Fibre Channel controller.

Plz Help me......

Thanking u all....

Old 10-05-2005, 04:18 PM   #2
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Since nobody has responded yet...

Here's a paragraph of text taken from a Linux Journal article:
Accessing Memory-Mapped Devices
To access your memory-mapped hardware, the device /dev/mem is the silver bullet, and mmap() is the method to select the memory physical base address and the block size to access. To open the peripheral memory, open /dev/mem. Use the opened file descriptor in mmap(), with the appropriate address and the block size (in bytes) to open. mmap() returns an address that is mapped to the physical base address; cast it to the appropriate data type and use it like any other pointer, array, structure pointer or your favorite method.
So that's one method you can use to gain access to the fibre channel control registers. Of course, the device needs to have those registers memory-mapped, and you need to know the addresses and offsets of the registers you want to twiddle.

Aside from that, all you should have to do is follow the fibre channel spec to create instruction/data frames/packets/whatever they're called in fibre channel.


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
fibre channel question ronanio Linux - Enterprise 1 09-06-2005 10:40 PM
Fibre Channel Adapter query tool empit Linux - Hardware 1 09-06-2005 06:54 PM
Help with new redhat installation and fibre channel card Beebe Red Hat 3 04-11-2005 03:50 AM
Need Help adding a Fibre Channel Array beeman000 Linux - Hardware 0 10-02-2003 08:25 AM
Fibre Channel install salehj Linux - General 0 11-25-2001 09:17 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:11 PM.

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