cs_softc
static uint8_t cs_rbus_read_1(struct cs_softc *, bus_size_t);
CFATTACH_DECL_NEW(cs_rsbus, sizeof(struct cs_softc),
struct cs_softc *sc = device_private(self);
cs_rbus_read_1(struct cs_softc *sc, bus_size_t a)
CFATTACH_DECL_NEW(cs_ssextio, sizeof(struct cs_softc),
struct cs_softc sc;
struct cs_softc *sc = device_private(self);
cs_io_read_1(struct cs_softc *sc, bus_size_t offs)
cs_io_read_2(struct cs_softc *sc, bus_size_t offs)
cs_io_read_multi_2(struct cs_softc *sc, bus_size_t offs, u_int16_t *buf,
cs_io_write_2(struct cs_softc *sc, bus_size_t offs, u_int16_t data)
cs_io_write_multi_2(struct cs_softc *sc, bus_size_t offs,
cs_mem_read_2(struct cs_softc *sc, bus_size_t offs)
cs_mem_write_2(struct cs_softc *sc, bus_size_t offs, u_int16_t data)
cs_mem_write_region_2(struct cs_softc *sc, bus_size_t offs,
struct cs_softc *sc = device_private(self);
cs_readreg(struct cs_softc *sc, uint pp_offset)
cs_writereg(struct cs_softc *sc, uint pp_offset, uint16_t value)
cs_wait_eeprom_ready(struct cs_softc *sc)
cs_wr_eeprom(struct cs_softc *sc, uint16_t offset, uint16_t data)
cs_rd_eeprom(struct cs_softc *sc, uint16_t offset)
cs_check_eeprom(struct cs_softc *sc)
static void cs_check_eeprom(struct cs_softc *sc);
CFATTACH_DECL_NEW(cs_mainbus, sizeof(struct cs_softc),
struct cs_softc *sc = ifp->if_softc;
cs_set_ladr_filt(struct cs_softc *sc, struct ethercom *ec)
cs_reset(struct cs_softc *sc)
struct cs_softc *sc = ifp->if_softc;
struct cs_softc *sc = ifp->if_softc;
struct cs_softc *sc = arg;
cs_counter_event(struct cs_softc *sc, uint16_t cntEvent)
cs_buffer_event(struct cs_softc *sc, uint16_t bufEvent)
cs_transmit_event(struct cs_softc *sc, uint16_t txEvent)
cs_print_rx_errors(struct cs_softc *sc, uint16_t rxEvent)
cs_receive_event(struct cs_softc *sc, uint16_t rxEvent)
cs_ether_input(struct cs_softc *sc, struct mbuf *m)
cs_process_receive(struct cs_softc *sc)
cs_process_rx_early(struct cs_softc *sc)
struct cs_softc *sc;
cs_copy_tx_frame(struct cs_softc *sc, struct mbuf *m0)
cs_enable(struct cs_softc *sc)
cs_disable(struct cs_softc *sc)
struct cs_softc *sc = ifp->if_softc;
struct cs_softc *sc = device_private(self);
static void cs_get_default_media(struct cs_softc *);
static int cs_get_params(struct cs_softc *);
static int cs_get_enaddr(struct cs_softc *);
static int cs_reset_chip(struct cs_softc *);
static void cs_reset(struct cs_softc *);
static void cs_initChip(struct cs_softc *);
static void cs_buffer_event(struct cs_softc *, uint16_t);
static void cs_transmit_event(struct cs_softc *, uint16_t);
static void cs_receive_event(struct cs_softc *, uint16_t);
static void cs_process_receive(struct cs_softc *);
static void cs_process_rx_early(struct cs_softc *);
static void cs_copy_tx_frame(struct cs_softc *, struct mbuf *);
static void cs_set_ladr_filt(struct cs_softc *, struct ethercom *);
static void cs_counter_event(struct cs_softc *, uint16_t);
static int cs_enable(struct cs_softc *);
static void cs_disable(struct cs_softc *);
static int cs_scan_eeprom(struct cs_softc *);
static int cs_read_pktpg_from_eeprom(struct cs_softc *, int, uint16_t *);
cs_attach(struct cs_softc *sc, uint8_t *enaddr, int *media,
cs_detach(struct cs_softc *sc)
struct cs_softc *sc;
cs_get_default_media(struct cs_softc *sc)
cs_scan_eeprom(struct cs_softc *sc)
cs_read_pktpg_from_eeprom(struct cs_softc *sc, int pktpg, uint16_t *pValue)
cs_get_params(struct cs_softc *sc)
cs_get_enaddr(struct cs_softc *sc)
cs_reset_chip(struct cs_softc *sc)
cs_verify_eeprom(struct cs_softc *sc)
cs_read_eeprom(struct cs_softc *sc, int offset, uint16_t *pValue)
cs_initChip(struct cs_softc *sc)
int (*sc_enable)(struct cs_softc *);
void (*sc_disable)(struct cs_softc *);
void (*sc_dma_process_rx)(struct cs_softc *);
void (*sc_dma_chipinit)(struct cs_softc *);
void (*sc_dma_attach)(struct cs_softc *);
u_int8_t (*sc_io_read_1)(struct cs_softc *, bus_size_t);
u_int16_t (*sc_io_read_2)(struct cs_softc *, bus_size_t);
void (*sc_io_read_multi_2)(struct cs_softc *, bus_size_t, u_int16_t *,
void (*sc_io_write_2)(struct cs_softc *, bus_size_t, u_int16_t);
void (*sc_io_write_multi_2)(struct cs_softc *, bus_size_t,
u_int16_t (*sc_mem_read_2)(struct cs_softc *, bus_size_t);
void (*sc_mem_write_2)(struct cs_softc *, bus_size_t, u_int16_t);
void (*sc_mem_write_region_2)(struct cs_softc *, bus_size_t,
static __inline u_int16_t _cs_read_port(struct cs_softc *, int);
_cs_read_port(struct cs_softc *sc, int off)
static __inline u_int16_t _CS_READ_PACKET_PAGE_IO(struct cs_softc *, int);
_CS_READ_PACKET_PAGE_IO(struct cs_softc *sc, int offset)
static __inline u_int16_t CS_READ_PACKET_PAGE_IO(struct cs_softc *, int);
CS_READ_PACKET_PAGE_IO(struct cs_softc *sc, int offset)
int cs_attach(struct cs_softc *, u_int8_t *, int *, int, int);
int cs_detach(struct cs_softc *);
int cs_verify_eeprom(struct cs_softc *);
int cs_read_eeprom(struct cs_softc *, int, u_int16_t *);
void cs_ether_input(struct cs_softc *, struct mbuf *);
void cs_print_rx_errors(struct cs_softc *, u_int16_t);
void cs_isa_dma_chipinit(struct cs_softc *sc)
void cs_process_rx_dma(struct cs_softc *sc)
cs_isa_dma_attach(struct cs_softc *sc)
void cs_process_rx_dma(struct cs_softc *);
void cs_isa_dma_chipinit(struct cs_softc *);
void cs_isa_dma_attach(struct cs_softc *);
struct cs_softc sc_cs;
struct cs_softc *sc = &isc->sc_cs;
struct cs_softc sc;
struct cs_softc *sc = &isc->sc_cs;
struct cs_softc sc;
CFATTACH_DECL_NEW(cs_isapnp, sizeof(struct cs_softc),
struct cs_softc *sc = &sc->sc_cs;
struct cs_softc *sc = device_private(self);
struct cs_softc *sc = &isc->sc_cs;
struct cs_softc *sc = &psc->sc_cs;
struct cs_softc *sc = &psc->sc_cs;
cs_pcmcia_enable(struct cs_softc *sc)
cs_pcmcia_disable(struct cs_softc *sc)
static int cs_pcmcia_enable(struct cs_softc *);
static void cs_pcmcia_disable(struct cs_softc *);
struct cs_softc sc_cs; /* real "cs" softc */