Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Delay.h, Trying to use udelay in a driver
clydezilla
post Jan 18 2005, 01:51 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 18-January 05
Member No.: 4,531



In writing a driver for an EPROM burner, I am trying to use the udelay() function. According to my driver book, I need to add the "#include <asm/delay.h>" line to use the function. After adding the line and compiling in C, I received a "file not found" error. I tried loking for the "delay.h" file in my filesystem, to no avail.

Where can I find this file in Fedora Core 3, and if it's not there, where (if possible) can I get it? unsure.gif
Go to the top of the page
 
+Quote Post
Hemant
post Jan 29 2005, 09:35 AM
Post #2


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



Do you have kernel sources installed in "/usr/src/linux-2.6.xx".?

You should make sure that,you should link your driver with header files from current kernel not the one present in "/usr/include".

Also there have been major changes since 2.4.


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post
clydezilla
post Jan 30 2005, 07:17 AM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 18-January 05
Member No.: 4,531



I don't have any of the kernel sources - that could be part of the problem...

Linking would help - I'm still figuring out how to link everything in...

Another way I have found to do a 1 microsecond delay is to write a "dummy byte" to port 0x80. I was also thinking of trying to add a loop (based on BogoMIPS ), but I figured that would be even more inaccurate.

There have been many changes - I'm still trying to figure them all out...

Thanks for the help...
Go to the top of the page
 
+Quote Post
Hemant
post Jan 30 2005, 01:10 PM
Post #4


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



For more help on the changes,you can read following document.

http://www.geocities.com/technix88/ddp.pdf


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th November 2017 - 04:25 AM