iPXE
3c509-eisa.c File Reference
#include <ipxe/eisa.h>
#include <ipxe/isa.h>
#include "3c509.h"

Go to the source code of this file.

Functions

static int el3_eisa_probe (struct nic *nic, struct eisa_device *eisa)
static void el3_eisa_disable (struct nic *nic, struct eisa_device *eisa)
 EISA_DRIVER (el3_eisa_driver, el3_eisa_adapters)
 DRIVER ("3c509 (EISA)", nic_driver, eisa_driver, el3_eisa_driver, el3_eisa_probe, el3_eisa_disable, no_fake_bss)
 ISA_ROM ("3c509-eisa","3c509 (EISA)")

Variables

static struct eisa_device_id el3_eisa_adapters []

Function Documentation

◆ el3_eisa_probe()

int el3_eisa_probe ( struct nic * nic,
struct eisa_device * eisa )
static

Definition at line 15 of file 3c509-eisa.c.

15 {
16
17
18 nic->ioaddr = eisa->ioaddr;
19 nic->irqno = 0;
20 enable_eisa_device ( eisa );
21
22 /* Hand off to generic t5x9 probe routine */
24}
#define PROD_ID
Definition 3c509.h:365
int t5x9_probe(struct nic *nic, uint16_t prod_id_check, uint16_t prod_id_mask)
Definition 3c5x9.c:342
static void enable_eisa_device(struct eisa_device *eisa)
Enable EISA device.
Definition eisa.h:95
#define ISA_PROD_ID(product)
Definition isa_ids.h:45
#define ISA_PROD_ID_MASK
Definition isa_ids.h:44
uint16_t ioaddr
I/O address.
Definition eisa.h:44
Definition nic.h:49
unsigned char irqno
Definition nic.h:56
unsigned int ioaddr
Definition nic.h:55

References enable_eisa_device(), eisa_device::ioaddr, nic::ioaddr, nic::irqno, ISA_PROD_ID, ISA_PROD_ID_MASK, PROD_ID, and t5x9_probe().

Referenced by DRIVER().

◆ el3_eisa_disable()

void el3_eisa_disable ( struct nic * nic,
struct eisa_device * eisa )
static

Definition at line 26 of file 3c509-eisa.c.

26 {
27 t5x9_disable ( nic );
28 disable_eisa_device ( eisa );
29}
void t5x9_disable(struct nic *nic)
Definition 3c5x9.c:40
static void disable_eisa_device(struct eisa_device *eisa)
Disable EISA device.
Definition eisa.h:104

References disable_eisa_device(), and t5x9_disable().

Referenced by DRIVER().

◆ EISA_DRIVER()

EISA_DRIVER ( el3_eisa_driver ,
el3_eisa_adapters  )

References el3_eisa_adapters.

◆ DRIVER()

DRIVER ( "3c509 (EISA)" ,
nic_driver ,
eisa_driver ,
el3_eisa_driver ,
el3_eisa_probe ,
el3_eisa_disable ,
no_fake_bss  )

◆ ISA_ROM()

ISA_ROM ( "3c509-eisa" ,
"3c509 (EISA)"  )

Variable Documentation

◆ el3_eisa_adapters

struct eisa_device_id el3_eisa_adapters[]
static
Initial value:
= {
{ "3Com 3c509 EtherLink III (EISA)", MFG_ID, PROD_ID },
}
#define MFG_ID
Definition 3c509.h:364

Definition at line 31 of file 3c509-eisa.c.

31 {
32 { "3Com 3c509 EtherLink III (EISA)", MFG_ID, PROD_ID },
33};

Referenced by EISA_DRIVER().