Re: device driver for 3c905C
Bogdan Costescu <[email protected]> Wed, 11 Dec 2002 23:16:52 +0100 (CET)
| Newsgroups | gmane.linux.drivers.vortex.user |
|---|---|
| Message-ID | <Pine.LNX.4.44.0212112249540.15837-100000@kenzo.iwr.uni-heidelberg.de> |
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]