> 
> I wonder if linux kernel allows user to set PCI interrupts, different
> to those, preset by motherboard/PCI BIOS?

Yes, I think there is...sometimes....

A network driver includes the structure with pointer that is being
filled when the driver is loaded.  This structure ( 
 struct { 
         dev->open  = card_open;
         dev->close = card_close;
         dev->set_config = card_set_config;
         dev->hard_startx_xmit
         ...
        }
includes the function set_config.

Alessandro Rubini in the book "Linux Device Drivers" has written the
following about set_config: 

 int (*set_config)(struct device *dev, struct ifmap *map)

 Change the interface configuration. This method is the entry point for
 configuring the driver. The I/O adress and its interupt number can be
 changed at runtime using /set-config/. This capability can be used by
 the system administrator is the interface cannot be probed for. This
 method is described later in "run Time Configuration"  



> For example, is it possible to set to different interrupts five ethernet
> cards if BIOS does not allow to choose which PCI card should use which
> interrupt?


The reason I wrote sometimes is that a grep in the network drirectories
does not find to many drivers that implement this function.

et_config                   = NULL;         /* not supported for now &&& */
plip.c: dev->set_config     = plip_config;
sb_ipv4.c:  dev->set_config = hssb_config;  /* Change if configuration */
sdla.c:int sdla_set_config(struct device *dev, struct ifmap *map)
sdla.c: dev->set_config     = sdla_set_config;
strip.c:                    /*  dev->set_config           unused */
eturns :

If not implementing this function implies default behavior, then I hope
for you that this default behavior allows changing the interupt, rather
then plain "not implemented".


Hennes Passmann              "The woods are lovely, dark and deep.
Hennes@stack./dev/nulll       But I have promises to keep,
hennes@passmann./dev/nullu    and lines to code before I sleep,
( replace /dev/null with n )  and lines to code before I sleep."

 
> Sincerely yours,
> 
> Ilia Zubkov,
> Educational Network technical director
> 
> 
> P.S. Any pointers on some good docs desribing existing PCI/IRQ solutions
> are appreciated.
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to