[vortex-bug] device driver for 3c905C

Bogdan Costescu bogdan.costescu@iwr.uni-heidelberg.de
Wed Dec 11 17:17:02 2002


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: Bogdan.Costescu@IWR.Uni-Heidelberg.De