twe_softc
struct twe_softc *sc = tr->tr_sc;
static char *twe_format_aen(struct twe_softc *sc, u_int16_t aen);
twe_reset(struct twe_softc *sc)
static void twe_panic(struct twe_softc *sc, char *reason);
struct twe_softc *sc = tr->tr_sc;
twe_done(struct twe_softc *sc, int startio)
twe_setup(struct twe_softc *sc)
twe_complete(struct twe_softc *sc)
twe_wait_status(struct twe_softc *sc, u_int32_t status, int timeout)
twe_drain_response_queue(struct twe_softc *sc)
twe_soft_reset(struct twe_softc *sc)
twe_host_intr(struct twe_softc *sc)
twe_attention_intr(struct twe_softc *sc)
twe_command_intr(struct twe_softc *sc)
twe_fetch_aen(struct twe_softc *sc)
struct twe_softc *sc = tr->tr_sc;
twe_drain_aen_queue(struct twe_softc *sc)
twe_enqueue_aen(struct twe_softc *sc, u_int16_t aen)
twe_dequeue_aen(struct twe_softc *sc)
twe_find_aen(struct twe_softc *sc, u_int16_t aen)
twe_wait_aen(struct twe_softc *sc, int aen, int timeout)
twe_get_request(struct twe_softc *sc, struct twe_request **tr)
twe_describe_controller(struct twe_softc *sc)
twe_check_bits(struct twe_softc *sc, u_int32_t status_reg)
twe_format_aen(struct twe_softc *sc, u_int16_t aen)
struct twe_softc *sc = tr->tr_sc;
twe_print_controller(struct twe_softc *sc)
twe_panic(struct twe_softc *sc, char *reason)
struct twe_softc *sc = tr->tr_sc;
twe_add_unit(struct twe_softc *sc, int unit)
twe_del_unit(struct twe_softc *sc, int unit)
twe_init(struct twe_softc *sc)
twe_deinit(struct twe_softc *sc)
twe_intr(struct twe_softc *sc)
twe_startio(struct twe_softc *sc)
static int twe_get_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t *result);
static int twe_get_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t *result);
static int twe_get_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t *result);
twe_dump_blocks(struct twe_softc *sc, int unit, u_int64_t lba, void *data, int nblks)
static void *twe_get_param(struct twe_softc *sc, int table_id, int parameter_id, size_t size,
twe_ioctl(struct twe_softc *sc, u_long ioctlcmd, void *addr)
static int twe_set_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t value);
static int twe_set_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t value);
static int twe_set_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t value);
static int twe_set_param(struct twe_softc *sc, int table_id, int param_id, int param_size,
static int twe_init_connection(struct twe_softc *sc, int mode);
static void twe_reset(struct twe_softc *sc);
static int twe_add_unit(struct twe_softc *sc, int unit);
static int twe_del_unit(struct twe_softc *sc, int unit);
twe_enable_interrupts(struct twe_softc *sc)
static void twe_done(struct twe_softc *sc, int startio);
twe_disable_interrupts(struct twe_softc *sc)
static void twe_complete(struct twe_softc *sc);
twe_get_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t *result)
static int twe_wait_status(struct twe_softc *sc, u_int32_t status, int timeout);
static int twe_drain_response_queue(struct twe_softc *sc);
twe_get_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t *result)
static int twe_check_bits(struct twe_softc *sc, u_int32_t status_reg);
twe_get_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t *result)
static int twe_soft_reset(struct twe_softc *sc);
twe_get_param(struct twe_softc *sc, int table_id, int param_id, size_t param_size,
static void twe_host_intr(struct twe_softc *sc);
static void twe_attention_intr(struct twe_softc *sc);
static void twe_command_intr(struct twe_softc *sc);
twe_set_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t value)
twe_set_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t value)
twe_set_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t value)
twe_set_param(struct twe_softc *sc, int table_id, int param_id, int param_size, void *data)
static int twe_fetch_aen(struct twe_softc *sc);
static void twe_enqueue_aen(struct twe_softc *sc, u_int16_t aen);
static u_int16_t twe_dequeue_aen(struct twe_softc *sc);
static int twe_drain_aen_queue(struct twe_softc *sc);
twe_init_connection(struct twe_softc *sc, int mode)
static int twe_find_aen(struct twe_softc *sc, u_int16_t aen);
static int twe_get_request(struct twe_softc *sc, struct twe_request **tr);
struct twe_softc *sc;
struct twe_softc *sc = (struct twe_softc *)dev->si_drv1;
struct twe_softc *sc = (struct twe_softc *)arg;
struct twe_softc *sc = tr->tr_sc;
struct twe_softc *sc = tr->tr_sc;
struct twe_softc *sc;
struct twe_softc *sc = (struct twe_softc *)dev->si_drv1;
static void twe_free(struct twe_softc *sc);
sizeof(struct twe_softc)
struct twe_softc *sc;
twe_free(struct twe_softc *sc)
struct twe_softc *sc = device_get_softc(dev);
struct twe_softc *sc = device_get_softc(dev);
struct twe_softc *sc = device_get_softc(dev);
struct twe_softc *sc = device_get_softc(dev);
struct twe_softc *sc = arg;
struct twe_softc *sc = (struct twe_softc *)arg;
twe_attach_drive(struct twe_softc *sc, struct twe_drive *dr)
twe_detach_drive(struct twe_softc *sc, int unit)
twe_clear_pci_parity_error(struct twe_softc *sc)
twe_clear_pci_abort(struct twe_softc *sc)
struct twe_softc *twe_sc;
twe_sc = (struct twe_softc *)twed_sc->twed_controller;
sc->twed_controller = (struct twe_softc *)device_get_softc(parent);
struct twe_softc *sc = (struct twe_softc *)dev->si_drv1;
twe_allocate_request(struct twe_softc *sc, int tag)
struct twe_softc *sc = tr->tr_sc;
struct twe_softc *sc = tr->tr_sc;
extern int twe_setup(struct twe_softc *sc); /* do early driver/controller setup */
extern void twe_init(struct twe_softc *sc); /* init controller */
extern void twe_deinit(struct twe_softc *sc); /* stop controller */
extern void twe_intr(struct twe_softc *sc); /* hardware interrupt signalled */
extern void twe_startio(struct twe_softc *sc);
extern int twe_dump_blocks(struct twe_softc *sc, int unit, /* crashdump block write */
extern int twe_ioctl(struct twe_softc *sc, u_long cmd,
extern void twe_describe_controller(struct twe_softc *sc); /* print controller info */
extern void twe_print_controller(struct twe_softc *sc);
extern void twe_enable_interrupts(struct twe_softc *sc); /* enable controller interrupts */
extern void twe_disable_interrupts(struct twe_softc *sc); /* disable controller interrupts */
extern int twe_attach_drive(struct twe_softc *sc,
extern int twe_detach_drive(struct twe_softc *sc,
extern void twe_clear_pci_parity_error(struct twe_softc *sc);
extern void twe_clear_pci_abort(struct twe_softc *sc);
extern struct twe_request *twe_allocate_request(struct twe_softc *sc, int tag); /* allocate request structure */
twe_initq_ ## name (struct twe_softc *sc) \
twe_dequeue_ ## name (struct twe_softc *sc) \
twe_initq_bio(struct twe_softc *sc)
twe_enqueue_bio(struct twe_softc *sc, struct bio *bio)
twe_dequeue_bio(struct twe_softc *sc)
struct twe_softc *twed_controller; /* parent device softc */
struct twe_softc *tr_sc; /* controller that owns us */