2#error multicast support is not yet implemented
144 printf(
"\ncs: EEPROM data from %hX for %hX:",off,
len);
146 for (i = 0; i <
len; i++) {
173 for (i = 0; i <
len; i++)
190 for (i = 79; i--; )
putchar(
' ');
197 unsigned int selfcontrol;
205 selfcontrol &=
~HCB1;
243 printf(
" negotiating duplex... ");
252 printf(
"using full duplex");
254 printf(
"using half duplex");
263 static unsigned char testpacket[] = { 0,0,0,0,0,0, 0,0,0,0,0,0,
287 printf(
" sending test packet ");
333 unsigned long reset_tmo;
412 printf(
"cs: unable to send packet; retrying...\n");
423 for (sr = sr/2 - (s+1)/2 -
ETH_ALEN - 1; sr > 0; sr--)
431 printf(
"\ntransmission error %#hX\n", s);
450 if ( ! retrieve )
return 1;
502 unsigned rev_type = 0, isa_cnf, cs_revision;
513 printf(
"\ncs: cs89%c0%s rev %c, base %#hX",
521 printf(
"\ncs: no EEPROM...\n");
526 printf(
"\ncs: EEPROM read failed...\n");
531 printf(
"\ncs: EEPROM checksum bad...\n");
569 if (i < 4) i =
"\012\013\014\005"[i];
570 else printf(
"\ncs: BUG: isa_config is %d\n", i); }
586 unsigned char MAC_HW_ADDR[6]={MAC_HW_ADDR_DRV};
617 printf(
"cs: EEPROM is configured for unavailable media\n");
634 printf(
"10Base-T (RJ-45%s",
635 ") has no cable\n"); }
646 ") has no cable\n"); }
657 ") has no cable\n"); }
679 case 0:
printf(
"no network cable attached to configured media\n");
714 0x300, 0x320, 0x340, 0x200, 0x220, 0x240,
715 0x260, 0x280, 0x2a0, 0x2c0, 0x2e0,
717 0x301, 0x321, 0x341, 0x201, 0x221, 0x241,
718 0x261, 0x281, 0x2a1, 0x2c1, 0x2e1,
730ISA_ROM (
"cs89x0",
"Crystal Semiconductor CS89x0" );
static unsigned short eth_nic_base
pseudo_bit_t value[0x00020]
struct arbelprm_completion_with_error error
int putchar(int character)
Write a single character to each console device.
static void clrline(void)
static unsigned short eth_auto_neg_cnf
static void cs89x0_irq(struct nic *nic __unused, irq_action_t action __unused)
static isa_probe_addr_t cs89x0_probe_addrs[]
static int cs89x0_probe_addr(isa_probe_addr_t ioaddr)
static int get_eeprom_data(int off, int len, unsigned short *buffer)
static unsigned short eth_linectl
static int cs89x0_poll(struct nic *nic, int retrieve)
static int get_eeprom_chksum(int off __unused, int len, unsigned short *buffer)
static int wait_eeprom_ready(void)
static void cs89x0_disable(struct nic *nic, struct isa_device *isa __unused)
static unsigned short eth_cs_type
static void control_dc_dc(int on_not_off)
static int detect_aui(struct nic *nic)
static struct nic_operations cs89x0_operations
static unsigned short eth_adapter_cnf
static int cs89x0_probe(struct nic *nic, struct isa_device *isa __unused)
static void cs89x0_reset(struct nic *nic)
static int detect_tp(void)
static unsigned long eth_mem_start
static int send_test_pkt(struct nic *nic)
static unsigned short eth_irqno
static int detect_bnc(struct nic *nic)
static int readreg(int portno)
static void cs89x0_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p)
static void writereg(int portno, int value)
#define EE_AUTO_NEG_ENABLE
#define START_EEPROM_DATA
#define A_CNF_LOW_RX_SQUELCH
#define ADAPTER_CNF_OFFSET
#define AUTO_NEG_CNF_OFFSET
#define A_CNF_DC_DC_POLARITY
#define PACKET_PAGE_OFFSET
#define A_CNF_MEDIA_10B_T
#define A_CNF_EXTND_10B_2
#define PP_CS8920_ISAMemB
#define A_CNF_MEDIA_10B_2
static unsigned long ioaddr
const char * eth_ntoa(const void *ll_addr)
Transcribe Ethernet address.
#define __unused
Declare a variable or data structure as unused.
#define DBG(...)
Print a debugging message.
uint32_t buffer
Buffer index (or NETVSC_RNDIS_NO_BUFFER)
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define outb(data, io_addr)
#define outw(data, io_addr)
#define insw(io_addr, data, count)
#define outsw(io_addr, data, count)
uint16_t isa_probe_addr_t
#define ISA_ROM(IMAGE, DESCRIPTION)
#define TICKS_PER_SEC
Number of ticks per second.
void * memcpy(void *dest, const void *src, size_t len) __nonnull
#define ISAPNP_VENDOR(a, b, c)
int dummy_connect(struct nic *nic __unused)
#define DRIVER(_name_text, _unused2, _unused3, _name, _probe, _disable, _fake_bss)
#define ISA_DRIVER(_name, _probe_addrs, _probe_addr, _vendor_id, _prod_id)
struct @002057171240057303273132130141036221271355330106 no_fake_bss
unsigned char * node_addr
struct nic_operations * nic_op
unsigned long currticks(void)
Get current system time in ticks.
int printf(const char *fmt,...)
Write a formatted string to the console.