iPXE
Functions | Variables
3c529.c File Reference
#include "etherboot.h"
#include <ipxe/mca.h>
#include <ipxe/isa.h>
#include "nic.h"
#include "3c509.h"

Go to the source code of this file.

Functions

 FILE_LICENCE (BSD2)
 
static int t529_probe (struct nic *nic, struct mca_device *mca)
 
static void t529_disable (struct nic *nic, struct mca_device *mca __unused)
 
 MCA_DRIVER (t529_driver, el3_mca_adapters)
 
 DRIVER ("3c529", nic_driver, mca_driver, t529_driver, t529_probe, t529_disable)
 
 ISA_ROM ("3c529", "3c529 == MCA 3c509")
 

Variables

static struct mca_device_id el3_mca_adapters []
 

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( BSD2  )

◆ t529_probe()

static int t529_probe ( struct nic nic,
struct mca_device mca 
)
static

Definition at line 25 of file 3c529.c.

25  {
26 
27  /* Retrieve NIC parameters from MCA device parameters */
28  nic->ioaddr = ( ( mca->pos[4] & 0xfc ) | 0x02 ) << 8;
29  nic->irqno = mca->pos[5] & 0x0f;
30  printf ( "3c529 board found on MCA at %#hx IRQ %d -",
31  nic->ioaddr, nic->irqno );
32 
33  /* Hand off to generic t5x9 probe routine */
34  return t5x9_probe ( nic, MCA_ID ( mca ), 0xffff );
35 }
unsigned char irqno
Definition: nic.h:56
int printf(const char *fmt,...)
Write a formatted string to the console.
Definition: vsprintf.c:464
unsigned int ioaddr
Definition: nic.h:55
unsigned char pos[8]
POS register values.
Definition: mca.h:44
#define MCA_ID(mca)
Definition: mca.h:55
Definition: nic.h:49
int t5x9_probe(struct nic *nic, uint16_t prod_id_check, uint16_t prod_id_mask)
Definition: 3c5x9.c:342

References nic::ioaddr, nic::irqno, MCA_ID, mca_device::pos, printf(), and t5x9_probe().

◆ t529_disable()

static void t529_disable ( struct nic nic,
struct mca_device *mca  __unused 
)
static

Definition at line 37 of file 3c529.c.

37  {
38  t5x9_disable ( nic );
39 }
void t5x9_disable(struct nic *nic)
Definition: 3c5x9.c:40
Definition: nic.h:49

References t5x9_disable().

◆ MCA_DRIVER()

MCA_DRIVER ( t529_driver  ,
el3_mca_adapters   
)

◆ DRIVER()

DRIVER ( "3c529"  ,
nic_driver  ,
mca_driver  ,
t529_driver  ,
t529_probe  ,
t529_disable   
)

◆ ISA_ROM()

ISA_ROM ( "3c529"  )

Variable Documentation

◆ el3_mca_adapters

struct mca_device_id el3_mca_adapters[]
static
Initial value:
= {
{ "3Com 3c529 EtherLink III (10base2)", 0x627c },
{ "3Com 3c529 EtherLink III (10baseT)", 0x627d },
{ "3Com 3c529 EtherLink III (test mode)", 0x62db },
{ "3Com 3c529 EtherLink III (TP or coax)", 0x62f6 },
{ "3Com 3c529 EtherLink III (TP)", 0x62f7 },
}

Definition at line 41 of file 3c529.c.