drivers/net: delete all code/drivers depending on CONFIG_MCA
The support for CONFIG_MCA is being removed, since the 20 year old hardware simply isn't capable of meeting today's software demands on CPU and memory resources. This commit removes any MCA specific net drivers, and removes any MCA specific probe/support code from drivers that were doing a dual ISA/MCA role. Cc: "David S. Miller" <davem@davemloft.net> Cc: James Bottomley <James.Bottomley@HansenPartnership.com> Cc: netdev@vger.kernel.org Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,355 +0,0 @@
|
||||
#ifndef _3c523_INCLUDE_
|
||||
#define _3c523_INCLUDE_
|
||||
/*
|
||||
This is basically a hacked version of ni52.h, for the 3c523
|
||||
Etherlink/MC.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Intel i82586 Ethernet definitions
|
||||
*
|
||||
* This is an extension to the Linux operating system, and is covered by the
|
||||
* same GNU General Public License that covers that work.
|
||||
*
|
||||
* Copyright 1995 by Chris Beauregard (cpbeaure@undergrad.math.uwaterloo.ca)
|
||||
*
|
||||
* See 3c523.c for details.
|
||||
*
|
||||
* $Header: /home/chrisb/linux-1.2.13-3c523/drivers/net/RCS/3c523.h,v 1.6 1996/01/20 05:09:00 chrisb Exp chrisb $
|
||||
*/
|
||||
|
||||
/*
|
||||
* where to find the System Configuration Pointer (SCP)
|
||||
*/
|
||||
#define SCP_DEFAULT_ADDRESS 0xfffff4
|
||||
|
||||
|
||||
/*
|
||||
* System Configuration Pointer Struct
|
||||
*/
|
||||
|
||||
struct scp_struct
|
||||
{
|
||||
unsigned short zero_dum0; /* has to be zero */
|
||||
unsigned char sysbus; /* 0=16Bit,1=8Bit */
|
||||
unsigned char zero_dum1; /* has to be zero for 586 */
|
||||
unsigned short zero_dum2;
|
||||
unsigned short zero_dum3;
|
||||
char *iscp; /* pointer to the iscp-block */
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* Intermediate System Configuration Pointer (ISCP)
|
||||
*/
|
||||
struct iscp_struct
|
||||
{
|
||||
unsigned char busy; /* 586 clears after successful init */
|
||||
unsigned char zero_dummy; /* hast to be zero */
|
||||
unsigned short scb_offset; /* pointeroffset to the scb_base */
|
||||
char *scb_base; /* base-address of all 16-bit offsets */
|
||||
};
|
||||
|
||||
/*
|
||||
* System Control Block (SCB)
|
||||
*/
|
||||
struct scb_struct
|
||||
{
|
||||
unsigned short status; /* status word */
|
||||
unsigned short cmd; /* command word */
|
||||
unsigned short cbl_offset; /* pointeroffset, command block list */
|
||||
unsigned short rfa_offset; /* pointeroffset, receive frame area */
|
||||
unsigned short crc_errs; /* CRC-Error counter */
|
||||
unsigned short aln_errs; /* alignmenterror counter */
|
||||
unsigned short rsc_errs; /* Resourceerror counter */
|
||||
unsigned short ovrn_errs; /* OVerrunerror counter */
|
||||
};
|
||||
|
||||
/*
|
||||
* possible command values for the command word
|
||||
*/
|
||||
#define RUC_MASK 0x0070 /* mask for RU commands */
|
||||
#define RUC_NOP 0x0000 /* NOP-command */
|
||||
#define RUC_START 0x0010 /* start RU */
|
||||
#define RUC_RESUME 0x0020 /* resume RU after suspend */
|
||||
#define RUC_SUSPEND 0x0030 /* suspend RU */
|
||||
#define RUC_ABORT 0x0040 /* abort receiver operation immediately */
|
||||
|
||||
#define CUC_MASK 0x0700 /* mask for CU command */
|
||||
#define CUC_NOP 0x0000 /* NOP-command */
|
||||
#define CUC_START 0x0100 /* start execution of 1. cmd on the CBL */
|
||||
#define CUC_RESUME 0x0200 /* resume after suspend */
|
||||
#define CUC_SUSPEND 0x0300 /* Suspend CU */
|
||||
#define CUC_ABORT 0x0400 /* abort command operation immediately */
|
||||
|
||||
#define ACK_MASK 0xf000 /* mask for ACK command */
|
||||
#define ACK_CX 0x8000 /* acknowledges STAT_CX */
|
||||
#define ACK_FR 0x4000 /* ack. STAT_FR */
|
||||
#define ACK_CNA 0x2000 /* ack. STAT_CNA */
|
||||
#define ACK_RNR 0x1000 /* ack. STAT_RNR */
|
||||
|
||||
/*
|
||||
* possible status values for the status word
|
||||
*/
|
||||
#define STAT_MASK 0xf000 /* mask for cause of interrupt */
|
||||
#define STAT_CX 0x8000 /* CU finished cmd with its I bit set */
|
||||
#define STAT_FR 0x4000 /* RU finished receiving a frame */
|
||||
#define STAT_CNA 0x2000 /* CU left active state */
|
||||
#define STAT_RNR 0x1000 /* RU left ready state */
|
||||
|
||||
#define CU_STATUS 0x700 /* CU status, 0=idle */
|
||||
#define CU_SUSPEND 0x100 /* CU is suspended */
|
||||
#define CU_ACTIVE 0x200 /* CU is active */
|
||||
|
||||
#define RU_STATUS 0x70 /* RU status, 0=idle */
|
||||
#define RU_SUSPEND 0x10 /* RU suspended */
|
||||
#define RU_NOSPACE 0x20 /* RU no resources */
|
||||
#define RU_READY 0x40 /* RU is ready */
|
||||
|
||||
/*
|
||||
* Receive Frame Descriptor (RFD)
|
||||
*/
|
||||
struct rfd_struct
|
||||
{
|
||||
unsigned short status; /* status word */
|
||||
unsigned short last; /* Bit15,Last Frame on List / Bit14,suspend */
|
||||
unsigned short next; /* linkoffset to next RFD */
|
||||
unsigned short rbd_offset; /* pointeroffset to RBD-buffer */
|
||||
unsigned char dest[6]; /* ethernet-address, destination */
|
||||
unsigned char source[6]; /* ethernet-address, source */
|
||||
unsigned short length; /* 802.3 frame-length */
|
||||
unsigned short zero_dummy; /* dummy */
|
||||
};
|
||||
|
||||
#define RFD_LAST 0x8000 /* last: last rfd in the list */
|
||||
#define RFD_SUSP 0x4000 /* last: suspend RU after */
|
||||
#define RFD_ERRMASK 0x0fe1 /* status: errormask */
|
||||
#define RFD_MATCHADD 0x0002 /* status: Destinationaddress !matches IA */
|
||||
#define RFD_RNR 0x0200 /* status: receiver out of resources */
|
||||
|
||||
/*
|
||||
* Receive Buffer Descriptor (RBD)
|
||||
*/
|
||||
struct rbd_struct
|
||||
{
|
||||
unsigned short status; /* status word,number of used bytes in buff */
|
||||
unsigned short next; /* pointeroffset to next RBD */
|
||||
char *buffer; /* receive buffer address pointer */
|
||||
unsigned short size; /* size of this buffer */
|
||||
unsigned short zero_dummy; /* dummy */
|
||||
};
|
||||
|
||||
#define RBD_LAST 0x8000 /* last buffer */
|
||||
#define RBD_USED 0x4000 /* this buffer has data */
|
||||
#define RBD_MASK 0x3fff /* size-mask for length */
|
||||
|
||||
/*
|
||||
* Statusvalues for Commands/RFD
|
||||
*/
|
||||
#define STAT_COMPL 0x8000 /* status: frame/command is complete */
|
||||
#define STAT_BUSY 0x4000 /* status: frame/command is busy */
|
||||
#define STAT_OK 0x2000 /* status: frame/command is ok */
|
||||
|
||||
/*
|
||||
* Action-Commands
|
||||
*/
|
||||
#define CMD_NOP 0x0000 /* NOP */
|
||||
#define CMD_IASETUP 0x0001 /* initial address setup command */
|
||||
#define CMD_CONFIGURE 0x0002 /* configure command */
|
||||
#define CMD_MCSETUP 0x0003 /* MC setup command */
|
||||
#define CMD_XMIT 0x0004 /* transmit command */
|
||||
#define CMD_TDR 0x0005 /* time domain reflectometer (TDR) command */
|
||||
#define CMD_DUMP 0x0006 /* dump command */
|
||||
#define CMD_DIAGNOSE 0x0007 /* diagnose command */
|
||||
|
||||
/*
|
||||
* Action command bits
|
||||
*/
|
||||
#define CMD_LAST 0x8000 /* indicates last command in the CBL */
|
||||
#define CMD_SUSPEND 0x4000 /* suspend CU after this CB */
|
||||
#define CMD_INT 0x2000 /* generate interrupt after execution */
|
||||
|
||||
/*
|
||||
* NOP - command
|
||||
*/
|
||||
struct nop_cmd_struct
|
||||
{
|
||||
unsigned short cmd_status; /* status of this command */
|
||||
unsigned short cmd_cmd; /* the command itself (+bits) */
|
||||
unsigned short cmd_link; /* offsetpointer to next command */
|
||||
};
|
||||
|
||||
/*
|
||||
* IA Setup command
|
||||
*/
|
||||
struct iasetup_cmd_struct
|
||||
{
|
||||
unsigned short cmd_status;
|
||||
unsigned short cmd_cmd;
|
||||
unsigned short cmd_link;
|
||||
unsigned char iaddr[6];
|
||||
};
|
||||
|
||||
/*
|
||||
* Configure command
|
||||
*/
|
||||
struct configure_cmd_struct
|
||||
{
|
||||
unsigned short cmd_status;
|
||||
unsigned short cmd_cmd;
|
||||
unsigned short cmd_link;
|
||||
unsigned char byte_cnt; /* size of the config-cmd */
|
||||
unsigned char fifo; /* fifo/recv monitor */
|
||||
unsigned char sav_bf; /* save bad frames (bit7=1)*/
|
||||
unsigned char adr_len; /* adr_len(0-2),al_loc(3),pream(4-5),loopbak(6-7)*/
|
||||
unsigned char priority; /* lin_prio(0-2),exp_prio(4-6),bof_metd(7) */
|
||||
unsigned char ifs; /* inter frame spacing */
|
||||
unsigned char time_low; /* slot time low */
|
||||
unsigned char time_high; /* slot time high(0-2) and max. retries(4-7) */
|
||||
unsigned char promisc; /* promisc-mode(0) , et al (1-7) */
|
||||
unsigned char carr_coll; /* carrier(0-3)/collision(4-7) stuff */
|
||||
unsigned char fram_len; /* minimal frame len */
|
||||
unsigned char dummy; /* dummy */
|
||||
};
|
||||
|
||||
/*
|
||||
* Multicast Setup command
|
||||
*/
|
||||
struct mcsetup_cmd_struct
|
||||
{
|
||||
unsigned short cmd_status;
|
||||
unsigned short cmd_cmd;
|
||||
unsigned short cmd_link;
|
||||
unsigned short mc_cnt; /* number of bytes in the MC-List */
|
||||
unsigned char mc_list[0][6]; /* pointer to 6 bytes entries */
|
||||
};
|
||||
|
||||
/*
|
||||
* transmit command
|
||||
*/
|
||||
struct transmit_cmd_struct
|
||||
{
|
||||
unsigned short cmd_status;
|
||||
unsigned short cmd_cmd;
|
||||
unsigned short cmd_link;
|
||||
unsigned short tbd_offset; /* pointeroffset to TBD */
|
||||
unsigned char dest[6]; /* destination address of the frame */
|
||||
unsigned short length; /* user defined: 802.3 length / Ether type */
|
||||
};
|
||||
|
||||
#define TCMD_ERRMASK 0x0fa0
|
||||
#define TCMD_MAXCOLLMASK 0x000f
|
||||
#define TCMD_MAXCOLL 0x0020
|
||||
#define TCMD_HEARTBEAT 0x0040
|
||||
#define TCMD_DEFERRED 0x0080
|
||||
#define TCMD_UNDERRUN 0x0100
|
||||
#define TCMD_LOSTCTS 0x0200
|
||||
#define TCMD_NOCARRIER 0x0400
|
||||
#define TCMD_LATECOLL 0x0800
|
||||
|
||||
struct tdr_cmd_struct
|
||||
{
|
||||
unsigned short cmd_status;
|
||||
unsigned short cmd_cmd;
|
||||
unsigned short cmd_link;
|
||||
unsigned short status;
|
||||
};
|
||||
|
||||
#define TDR_LNK_OK 0x8000 /* No link problem identified */
|
||||
#define TDR_XCVR_PRB 0x4000 /* indicates a transceiver problem */
|
||||
#define TDR_ET_OPN 0x2000 /* open, no correct termination */
|
||||
#define TDR_ET_SRT 0x1000 /* TDR detected a short circuit */
|
||||
#define TDR_TIMEMASK 0x07ff /* mask for the time field */
|
||||
|
||||
/*
|
||||
* Transmit Buffer Descriptor (TBD)
|
||||
*/
|
||||
struct tbd_struct
|
||||
{
|
||||
unsigned short size; /* size + EOF-Flag(15) */
|
||||
unsigned short next; /* pointeroffset to next TBD */
|
||||
char *buffer; /* pointer to buffer */
|
||||
};
|
||||
|
||||
#define TBD_LAST 0x8000 /* EOF-Flag, indicates last buffer in list */
|
||||
|
||||
/*************************************************************************/
|
||||
/*
|
||||
Verbatim from the Crynwyr stuff:
|
||||
|
||||
The 3c523 responds with adapter code 0x6042 at slot
|
||||
registers xxx0 and xxx1. The setup register is at xxx2 and
|
||||
contains the following bits:
|
||||
|
||||
0: card enable
|
||||
2,1: csr address select
|
||||
00 = 0300
|
||||
01 = 1300
|
||||
10 = 2300
|
||||
11 = 3300
|
||||
4,3: shared memory address select
|
||||
00 = 0c0000
|
||||
01 = 0c8000
|
||||
10 = 0d0000
|
||||
11 = 0d8000
|
||||
5: set to disable on-board thinnet
|
||||
7,6: (read-only) shows selected irq
|
||||
00 = 12
|
||||
01 = 7
|
||||
10 = 3
|
||||
11 = 9
|
||||
|
||||
The interrupt-select register is at xxx3 and uses one bit per irq.
|
||||
|
||||
0: int 12
|
||||
1: int 7
|
||||
2: int 3
|
||||
3: int 9
|
||||
|
||||
Again, the documentation stresses that the setup register
|
||||
should never be written. The interrupt-select register may be
|
||||
written with the value corresponding to bits 7.6 in
|
||||
the setup register to insure corret setup.
|
||||
*/
|
||||
|
||||
/* Offsets from the base I/O address. */
|
||||
#define ELMC_SA 0 /* first 6 bytes are IEEE network address */
|
||||
#define ELMC_CTRL 6 /* control & status register */
|
||||
#define ELMC_REVISION 7 /* revision register, first 4 bits only */
|
||||
#define ELMC_IO_EXTENT 8
|
||||
|
||||
/* these are the bit selects for the port register 2 */
|
||||
#define ELMC_STATUS_ENABLED 0x01
|
||||
#define ELMC_STATUS_CSR_SELECT 0x06
|
||||
#define ELMC_STATUS_MEMORY_SELECT 0x18
|
||||
#define ELMC_STATUS_DISABLE_THIN 0x20
|
||||
#define ELMC_STATUS_IRQ_SELECT 0xc0
|
||||
|
||||
/* this is the card id used in the detection code. You might recognize
|
||||
it from @6042.adf */
|
||||
#define ELMC_MCA_ID 0x6042
|
||||
|
||||
/*
|
||||
The following define the bits for the control & status register
|
||||
|
||||
The bank select registers can be used if more than 16K of memory is
|
||||
on the card. For some stupid reason, bank 3 is the one for the
|
||||
bottom 16K, and the card defaults to bank 0. So we have to set the
|
||||
bank to 3 before the card will even think of operating. To get bank
|
||||
3, set BS0 and BS1 to high (of course...)
|
||||
*/
|
||||
#define ELMC_CTRL_BS0 0x01 /* RW bank select */
|
||||
#define ELMC_CTRL_BS1 0x02 /* RW bank select */
|
||||
#define ELMC_CTRL_INTE 0x04 /* RW interrupt enable, assert high */
|
||||
#define ELMC_CTRL_INT 0x08 /* R interrupt active, assert high */
|
||||
/*#define ELMC_CTRL_* 0x10*/ /* reserved */
|
||||
#define ELMC_CTRL_LBK 0x20 /* RW loopback enable, assert high */
|
||||
#define ELMC_CTRL_CA 0x40 /* RW channel attention, assert high */
|
||||
#define ELMC_CTRL_RST 0x80 /* RW 82586 reset, assert low */
|
||||
|
||||
/* some handy compound bits */
|
||||
|
||||
/* normal operation should have bank 3 and RST high, ints enabled */
|
||||
#define ELMC_NORMAL (ELMC_CTRL_INTE|ELMC_CTRL_RST|0x3)
|
||||
|
||||
#endif /* _3c523_INCLUDE_ */
|
File diff suppressed because it is too large
Load Diff
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* 3COM "EtherLink MC/32" Descriptions
|
||||
*/
|
||||
|
||||
/*
|
||||
* Registers
|
||||
*/
|
||||
|
||||
#define HOST_CMD 0
|
||||
#define HOST_CMD_START_RX (1<<3)
|
||||
#define HOST_CMD_SUSPND_RX (3<<3)
|
||||
#define HOST_CMD_RESTRT_RX (5<<3)
|
||||
|
||||
#define HOST_CMD_SUSPND_TX 3
|
||||
#define HOST_CMD_RESTRT_TX 5
|
||||
|
||||
|
||||
#define HOST_STATUS 2
|
||||
#define HOST_STATUS_CRR (1<<6)
|
||||
#define HOST_STATUS_CWR (1<<5)
|
||||
|
||||
|
||||
#define HOST_CTRL 6
|
||||
#define HOST_CTRL_ATTN (1<<7)
|
||||
#define HOST_CTRL_RESET (1<<6)
|
||||
#define HOST_CTRL_INTE (1<<2)
|
||||
|
||||
#define HOST_RAMPAGE 8
|
||||
|
||||
#define HALTED 0
|
||||
#define RUNNING 1
|
||||
|
||||
struct mc32_mailbox
|
||||
{
|
||||
u16 mbox;
|
||||
u16 data[1];
|
||||
} __packed;
|
||||
|
||||
struct skb_header
|
||||
{
|
||||
u8 status;
|
||||
u8 control;
|
||||
u16 next; /* Do not change! */
|
||||
u16 length;
|
||||
u32 data;
|
||||
} __packed;
|
||||
|
||||
struct mc32_stats
|
||||
{
|
||||
/* RX Errors */
|
||||
u32 rx_crc_errors;
|
||||
u32 rx_alignment_errors;
|
||||
u32 rx_overrun_errors;
|
||||
u32 rx_tooshort_errors;
|
||||
u32 rx_toolong_errors;
|
||||
u32 rx_outofresource_errors;
|
||||
|
||||
u32 rx_discarded; /* via card pattern match filter */
|
||||
|
||||
/* TX Errors */
|
||||
u32 tx_max_collisions;
|
||||
u32 tx_carrier_errors;
|
||||
u32 tx_underrun_errors;
|
||||
u32 tx_cts_errors;
|
||||
u32 tx_timeout_errors;
|
||||
|
||||
/* various cruft */
|
||||
u32 dataA[6];
|
||||
u16 dataB[5];
|
||||
u32 dataC[14];
|
||||
} __packed;
|
||||
|
||||
#define STATUS_MASK 0x0F
|
||||
#define COMPLETED (1<<7)
|
||||
#define COMPLETED_OK (1<<6)
|
||||
#define BUFFER_BUSY (1<<5)
|
||||
|
||||
#define CONTROL_EOP (1<<7) /* End Of Packet */
|
||||
#define CONTROL_EOL (1<<6) /* End of List */
|
||||
|
||||
#define MCA_MC32_ID 0x0041 /* Our MCA ident */
|
@@ -43,28 +43,6 @@ config EL16
|
||||
To compile this driver as a module, choose M here. The module
|
||||
will be called 3c507.
|
||||
|
||||
config ELMC
|
||||
tristate "3c523 \"EtherLink/MC\" support"
|
||||
depends on MCA_LEGACY
|
||||
---help---
|
||||
If you have a network (Ethernet) card of this type, say Y and read
|
||||
the Ethernet-HOWTO, available from
|
||||
<http://www.tldp.org/docs.html#howto>.
|
||||
|
||||
To compile this driver as a module, choose M here. The module
|
||||
will be called 3c523.
|
||||
|
||||
config ELMC_II
|
||||
tristate "3c527 \"EtherLink/MC 32\" support (EXPERIMENTAL)"
|
||||
depends on MCA && MCA_LEGACY
|
||||
---help---
|
||||
If you have a network (Ethernet) card of this type, say Y and read
|
||||
the Ethernet-HOWTO, available from
|
||||
<http://www.tldp.org/docs.html#howto>.
|
||||
|
||||
To compile this driver as a module, choose M here. The module
|
||||
will be called 3c527.
|
||||
|
||||
config ARM_ETHER1
|
||||
tristate "Acorn Ether1 support"
|
||||
depends on ARM && ARCH_ACORN
|
||||
|
@@ -7,8 +7,6 @@ obj-$(CONFIG_EEXPRESS) += eexpress.o
|
||||
obj-$(CONFIG_EEXPRESS_PRO) += eepro.o
|
||||
obj-$(CONFIG_ELPLUS) += 3c505.o
|
||||
obj-$(CONFIG_EL16) += 3c507.o
|
||||
obj-$(CONFIG_ELMC) += 3c523.o
|
||||
obj-$(CONFIG_ELMC_II) += 3c527.o
|
||||
obj-$(CONFIG_LP486E) += lp486e.o
|
||||
obj-$(CONFIG_NI52) += ni52.o
|
||||
obj-$(CONFIG_SUN3_82586) += sun3_82586.o
|
||||
|
@@ -9,7 +9,7 @@
|
||||
* Many modifications, and currently maintained, by
|
||||
* Philip Blundell <philb@gnu.org>
|
||||
* Added the Compaq LTE Alan Cox <alan@lxorguk.ukuu.org.uk>
|
||||
* Added MCA support Adam Fritzler
|
||||
* Added MCA support Adam Fritzler (now deleted)
|
||||
*
|
||||
* Note - this driver is experimental still - it has problems on faster
|
||||
* machines. Someone needs to sit down and go through it line by line with
|
||||
@@ -111,7 +111,6 @@
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/etherdevice.h>
|
||||
#include <linux/skbuff.h>
|
||||
#include <linux/mca-legacy.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/jiffies.h>
|
||||
@@ -227,16 +226,6 @@ static unsigned short start_code[] = {
|
||||
/* maps irq number to EtherExpress magic value */
|
||||
static char irqrmap[] = { 0,0,1,2,3,4,0,0,0,1,5,6,0,0,0,0 };
|
||||
|
||||
#ifdef CONFIG_MCA_LEGACY
|
||||
/* mapping of the first four bits of the second POS register */
|
||||
static unsigned short mca_iomap[] = {
|
||||
0x270, 0x260, 0x250, 0x240, 0x230, 0x220, 0x210, 0x200,
|
||||
0x370, 0x360, 0x350, 0x340, 0x330, 0x320, 0x310, 0x300
|
||||
};
|
||||
/* bits 5-7 of the second POS register */
|
||||
static char mca_irqmap[] = { 12, 9, 3, 4, 5, 10, 11, 15 };
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Prototypes for Linux interface
|
||||
*/
|
||||
@@ -340,53 +329,6 @@ static int __init do_express_probe(struct net_device *dev)
|
||||
|
||||
dev->if_port = 0xff; /* not set */
|
||||
|
||||
#ifdef CONFIG_MCA_LEGACY
|
||||
if (MCA_bus) {
|
||||
int slot = 0;
|
||||
|
||||
/*
|
||||
* Only find one card at a time. Subsequent calls
|
||||
* will find others, however, proper multicard MCA
|
||||
* probing and setup can't be done with the
|
||||
* old-style Space.c init routines. -- ASF
|
||||
*/
|
||||
while (slot != MCA_NOTFOUND) {
|
||||
int pos0, pos1;
|
||||
|
||||
slot = mca_find_unused_adapter(0x628B, slot);
|
||||
if (slot == MCA_NOTFOUND)
|
||||
break;
|
||||
|
||||
pos0 = mca_read_stored_pos(slot, 2);
|
||||
pos1 = mca_read_stored_pos(slot, 3);
|
||||
ioaddr = mca_iomap[pos1&0xf];
|
||||
|
||||
dev->irq = mca_irqmap[(pos1>>4)&0x7];
|
||||
|
||||
/*
|
||||
* XXX: Transceiver selection is done
|
||||
* differently on the MCA version.
|
||||
* How to get it to select something
|
||||
* other than external/AUI is currently
|
||||
* unknown. This code is just for looks. -- ASF
|
||||
*/
|
||||
if ((pos0 & 0x7) == 0x1)
|
||||
dev->if_port = AUI;
|
||||
else if ((pos0 & 0x7) == 0x5) {
|
||||
if (pos1 & 0x80)
|
||||
dev->if_port = BNC;
|
||||
else
|
||||
dev->if_port = TPE;
|
||||
}
|
||||
|
||||
mca_set_adapter_name(slot, "Intel EtherExpress 16 MCA");
|
||||
mca_set_adapter_procfn(slot, NULL, dev);
|
||||
mca_mark_as_used(slot);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (ioaddr&0xfe00) {
|
||||
if (!request_region(ioaddr, EEXP_IO_EXTENT, "EtherExpress"))
|
||||
return -EBUSY;
|
||||
|
Reference in New Issue
Block a user