#include "config.h" #define ethermajor0 0 /* board 0 */ #define ethermajor1 0 /* board 1 */ #define ethermajor2 0 /* board 2 */ #define ethermajor3 0 /* board 3 */ #ifdef ETH0_0 #define N_BOARDS 1 int ether0_IRQ = ETH0_0_VECT; int ether0_maj_dev = ethermajor0; int ether0_PORT = ETH0_0_SIOA; #else int ether0_IRQ = {-1}; int ether0_maj_dev = {-1}; int ether0_PORT = {-1}; #endif #ifdef ETH0_1 #undef N_BOARDS #define N_BOARDS 2 int ether1_IRQ = ETH0_1_VECT; int ether1_maj_dev = ethermajor1; int ether1_PORT = ETH0_1_SIOA; #else int ether1_IRQ = {-1}; int ether1_maj_dev = {-1}; int ether1_PORT = {-1}; #endif #ifdef ETH0_2 #undef N_BOARDS #define N_BOARDS 3 int ether2_IRQ = ETH0_2_VECT; int ether2_maj_dev = ethermajor2; int ether2_PORT = ETH0_2_SIOA; #else int ether2_IRQ = {-1}; int ether2_maj_dev = {-1}; int ether2_PORT = {-1}; #endif #ifdef ETH0_3 #undef N_BOARDS #define N_BOARDS 4 int ether3_IRQ = ETH0_3_VECT; int ether3_maj_dev = ethermajor3; int ether3_PORT = ETH0_3_SIOA; #else int ether3_IRQ = {-1}; int ether3_maj_dev = {-1}; int ether3_PORT = {-1}; #endif int num_dev = N_BOARDS;