lkml.org 
[lkml]   [1999]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: DOS --> Linux Question
Date
From


coec@altu.net.au said:
> ACL_ROM *rom;
> unsigned long dpaddr=0xD000; /* address of dual port RAM */

> rom = (ACL_ROM *) MK_FP((dpaddr >> 4), 0);


> What would the equivialent be to the above statement in the Linux
> universe.

unsigned long dpaddr=0xd0000;
ACL_ROM *rom = (ACL_ROM *) ioremap(dpaddr, sizeof(ACL_ROM));

if (!rom) { /* this should never happen */
printk(KERN_WARNING "ioremap failed\n");
return -EIO;
}





> current->timeout = jiffies + njiffies;
> current->state = TASK_INTERRUPTIBLE;
> schedule(); /* wait for njiffies/HZ sec */

> Only problem is current->timeout does not seem to exist in 2.3.x, what
> is it replaced by, or better still, what is the recommended method in
> 2.3?

current->state = TASK_INTERRUPTIBLE;
schedule_timeout(njiffies);





---- ---- ----
David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302
Project Leader, Process Information Systems Mobile: (+44) 976 658355
Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK.
finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.068 / U:0.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site