Re: device driver for 3c905C
"vara prasad Ajjampudi" <[email protected]> Wed, 11 Dec 2002 21:14:02 -0500
| Newsgroups | gmane.linux.drivers.vortex.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am using microsoft c compiler. The function is outl() not iopd() (sorry for the typo). This does the 32 bit i/O operation. Now as I am porting to real mode (to be pricise to work on DOS), I cannot use 32 bit operation. So I would like to know the solution. Thanks --------------------- >From: Bogdan Costescu <[email protected]> >To: vara prasad Ajjampudi <[email protected]> >CC: [email protected] >Subject: Re: [vortex-bug] device driver for 3c905C >Date: Wed, 11 Dec 2002 23:16:52 +0100 (CET) > >On Wed, 11 Dec 2002, vara prasad Ajjampudi wrote: > > > I am porting 3com device driver (for 3c905c) from Linux to DOS. > >Good luck! What compiler are you using? djgpp ? > > > In linux version, the driver code uses iopd() functions to input 32 bit > > double word. > >Sorry, but what driver are you looking at ? A grep "iopd" 3c59x.c didn't >give any results... >And anyway, what does this iopd do ? > > > But as in real mode, that is not possible, I cannot call the same >function. > >Real mode is much simpler from some points of view as there are no >priviledges and the program that executes has complete control over the >whole system (well, except IRQs which can interrupt its execution). So, >some things that are done in a priviledged mode program need not to be >done there and you don't have to find an equivalent for all functions; >some of them have a "NOP" equivalent in real more :-) > >-- >Bogdan Costescu > >IWR - Interdisziplinaeres Zentrum fuer Wissenschaftliches Rechnen >Universitaet Heidelberg, INF 368, D-69120 Heidelberg, GERMANY >Telephone: +49 6221 54 8869, Telefax: +49 6221 54 8868 >E-mail: [email protected] > > >_______________________________________________ >vortex-bug mailing list >[email protected] >http://www.scyld.com/mailman/listinfo/vortex-bug _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus