Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > i8255x
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 24th February 14:25
senen garcia
External User
 
Posts: 1
Default i8255x



Hello,

Does anyone have the driver for the Intel Pro100 82255x (82551 - 82562)
My version of LynxOS is 3.1.0
There is a driver if_pro100b but it seems to work only wit he the 82558.

Thanks in advance
Senen
  Reply With Quote


  sponsored links


2 24th February 14:25
cyril novikov
External User
 
Posts: 1
Default i8255x



Senen,

I'm 98% confident that you can just add a check for the device ID of
your device to the if_pro100b driver, where it calls drm_get_handle(),
and that'll work. I recently did it for an 82562.

The corresponding part of the driver now looks like:

#if defined(__drm__)

if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1229,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1209,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1030,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1031,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1032,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1033,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1034,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1035,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1036,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1037,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1038,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1039,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x103a,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x103b,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x103c,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x103d,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x103e,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1050,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1051,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1059,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1064,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x1068,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x2449,
&sc->pro_handle) == OK)
found = 1;
if(!found)
if(drm_get_handle(PCI_BUSLAYER, 0x8086, 0x27dc,
&sc->pro_handle) == OK)
found = 1;
if (!found) {
idebug(("PRO/100B chip not found\n"));
goto fail;
}

--
Cyril
  Reply With Quote
3 24th February 14:25
senen
External User
 
Posts: 1
Default i8255x


Cyril,

Thanks you for your help.
Actually I'm using LynxOS 3.1 legacy x86 and not the DRM version.
I found out that the problem was in the bus number. The chip is detected
when the drivers scans the PCI bus #1.
In the driver for legacy x86, only bus 0 is scaned.
Senen

"Cyril Novikov" <cnovikov@mail.remove.this.ru> a écrit dans le message de
news: CP4jf.27876$tV6.19509@newssvr27.news.prodigy.net.. .
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666