adv_softc
struct adv_softc *adv;
"adv", adv_pci_methods, sizeof(struct adv_softc)
adv_run_doneq(struct adv_softc *adv)
adv_free_ccb_info(struct adv_softc *adv, struct adv_ccb_info *cinfo)
adv_done(struct adv_softc *adv, union ccb *ccb, u_int done_stat,
adv_set_state(struct adv_softc *adv, adv_state state)
adv_clear_state(struct adv_softc *adv, union ccb* ccb)
adv_attach(struct adv_softc *adv)
adv_clear_state_really(struct adv_softc *adv, union ccb* ccb)
adv_name(struct adv_softc *adv)
struct adv_softc *adv;
adv = (struct adv_softc *)cam_sim_softc(sim);
struct adv_softc *adv;
adv = (struct adv_softc *)cam_sim_softc(sim);
adv_alloc_ccb_info(struct adv_softc *adv)
adv_destroy_ccb_info(struct adv_softc *adv, struct adv_ccb_info *cinfo)
struct adv_softc *adv;
adv = (struct adv_softc *)xpt_path_sim(ccb->ccb_h.path)->softc;
struct adv_softc *
struct adv_softc *adv = device_get_softc(dev);
adv_free(struct adv_softc *adv)
static void adv_run_doneq(struct adv_softc *adv);
adv_init(struct adv_softc *adv)
adv_alloc_ccb_info(struct adv_softc *adv);
static void adv_destroy_ccb_info(struct adv_softc *adv,
adv_get_ccb_info(struct adv_softc *adv);
static __inline void adv_free_ccb_info(struct adv_softc *adv,
static __inline void adv_set_state(struct adv_softc *adv, adv_state state);
static __inline void adv_clear_state(struct adv_softc *adv, union ccb* ccb);
static void adv_clear_state_really(struct adv_softc *adv, union ccb* ccb);
adv_get_ccb_info(struct adv_softc *adv)
struct adv_softc *adv;
adv = (struct adv_softc *)arg;
struct adv_softc * adv_alloc(device_t dev, bus_space_tag_t tag,
char * adv_name(struct adv_softc *adv);
void adv_free(struct adv_softc *adv);
int adv_init(struct adv_softc *adv);
int adv_attach(struct adv_softc *adv);
void adv_done(struct adv_softc *adv, union ccb* ccb,
adv_sdtr_to_period_offset(struct adv_softc *adv,
adv_set_syncrate(struct adv_softc *adv, struct cam_path *path,
adv_period_offset_to_sdtr(struct adv_softc *adv, u_int *period,
adv_read_lram_16_multi(struct adv_softc *adv, u_int16_t s_addr,
adv_write_lram_16_multi(struct adv_softc *adv, u_int16_t s_addr,
adv_mset_lram_16(struct adv_softc *adv, u_int16_t s_addr,
adv_msum_lram_16(struct adv_softc *adv, u_int16_t s_addr, int count)
adv_write_and_verify_lram_16(struct adv_softc *adv, u_int16_t addr,
adv_read_lram_32(struct adv_softc *adv, u_int16_t addr)
adv_write_lram_32(struct adv_softc *adv, u_int16_t addr, u_int32_t value)
adv_write_lram_32_multi(struct adv_softc *adv, u_int16_t s_addr,
adv_read_eeprom_16(struct adv_softc *adv, u_int8_t addr)
adv_write_eeprom_16(struct adv_softc *adv, u_int8_t addr, u_int16_t value)
adv_write_eeprom_cmd_reg(struct adv_softc *adv, u_int8_t cmd_reg)
adv_set_eeprom_config_once(struct adv_softc *adv,
adv_load_microcode(struct adv_softc *adv, u_int16_t s_addr,
adv_reinit_lram(struct adv_softc *adv) {
adv_init_lram(struct adv_softc *adv)
adv_init_microcode_var(struct adv_softc *adv)
adv_init_qlink_var(struct adv_softc *adv)
adv_disable_interrupt(struct adv_softc *adv)
adv_enable_interrupt(struct adv_softc *adv)
adv_toggle_irq_act(struct adv_softc *adv)
adv_start_execution(struct adv_softc *adv)
adv_stop_chip(struct adv_softc *adv)
adv_host_req_chip_halt(struct adv_softc *adv)
adv_set_chip_ih(struct adv_softc *adv, u_int16_t ins_code)
adv_get_chip_scsi_ctrl(struct adv_softc *adv)
adv_get_q_info(struct adv_softc *adv, u_int16_t s_addr,
adv_get_num_free_queues(struct adv_softc *adv, u_int8_t n_qs)
adv_alloc_free_queues(struct adv_softc *adv, u_int8_t free_q_head,
adv_alloc_free_queue(struct adv_softc *adv, u_int8_t free_q_head)
adv_send_scsi_queue(struct adv_softc *adv, struct adv_scsi_q *scsiq,
adv_put_ready_sg_list_queue(struct adv_softc *adv, struct adv_scsi_q *scsiq,
adv_put_ready_queue(struct adv_softc *adv, struct adv_scsi_q *scsiq,
adv_put_scsiq(struct adv_softc *adv, u_int16_t s_addr,
adv_handle_extmsg_in(struct adv_softc *adv, u_int16_t halt_q_addr,
static void adv_read_lram_16_multi(struct adv_softc *adv, u_int16_t s_addr,
adv_msgout_sdtr(struct adv_softc *adv, u_int8_t sdtr_period,
static void adv_write_lram_16_multi(struct adv_softc *adv,
adv_abort_ccb(struct adv_softc *adv, int target, int lun, union ccb *ccb,
static void adv_mset_lram_16(struct adv_softc *adv, u_int16_t s_addr,
static u_int32_t adv_msum_lram_16(struct adv_softc *adv, u_int16_t s_addr,
adv_reset_bus(struct adv_softc *adv, int initiate_bus_reset)
static int adv_write_and_verify_lram_16(struct adv_softc *adv,
adv_set_sdtr_reg_at_id(struct adv_softc *adv, int tid, u_int8_t sdtr_data)
static u_int32_t adv_read_lram_32(struct adv_softc *adv, u_int16_t addr);
static void adv_write_lram_32(struct adv_softc *adv, u_int16_t addr,
static void adv_write_lram_32_multi(struct adv_softc *adv,
static u_int16_t adv_read_eeprom_16(struct adv_softc *adv, u_int8_t addr);
static u_int16_t adv_write_eeprom_16(struct adv_softc *adv, u_int8_t addr,
static int adv_write_eeprom_cmd_reg(struct adv_softc *adv,
static int adv_set_eeprom_config_once(struct adv_softc *adv,
static u_int32_t adv_load_microcode(struct adv_softc *adv, u_int16_t s_addr,
static void adv_reinit_lram(struct adv_softc *adv);
static void adv_init_lram(struct adv_softc *adv);
static int adv_init_microcode_var(struct adv_softc *adv);
static void adv_init_qlink_var(struct adv_softc *adv);
static void adv_disable_interrupt(struct adv_softc *adv);
static void adv_enable_interrupt(struct adv_softc *adv);
static void adv_toggle_irq_act(struct adv_softc *adv);
static int adv_host_req_chip_halt(struct adv_softc *adv);
static void adv_set_chip_ih(struct adv_softc *adv, u_int16_t ins_code);
static u_int8_t adv_get_chip_scsi_ctrl(struct adv_softc *adv);
static void adv_get_q_info(struct adv_softc *adv, u_int16_t s_addr,
static u_int adv_get_num_free_queues(struct adv_softc *adv, u_int8_t n_qs);
static u_int8_t adv_alloc_free_queues(struct adv_softc *adv,
static u_int8_t adv_alloc_free_queue(struct adv_softc *adv,
static int adv_send_scsi_queue(struct adv_softc *adv,
static void adv_put_ready_sg_list_queue(struct adv_softc *adv,
static void adv_put_ready_queue(struct adv_softc *adv,
static void adv_put_scsiq(struct adv_softc *adv, u_int16_t s_addr,
static void adv_handle_extmsg_in(struct adv_softc *adv,
static void adv_msgout_sdtr(struct adv_softc *adv, u_int8_t sdtr_period,
static void adv_set_sdtr_reg_at_id(struct adv_softc *adv, int id,
struct adv_softc *adv;
adv = (struct adv_softc *)callback_arg;
adv_set_bank(struct adv_softc *adv, u_int8_t bank)
adv_read_lram_8(struct adv_softc *adv, u_int16_t addr)
adv_write_lram_8(struct adv_softc *adv, u_int16_t addr, u_int8_t value)
adv_read_lram_16(struct adv_softc *adv, u_int16_t addr)
adv_write_lram_16(struct adv_softc *adv, u_int16_t addr, u_int16_t value)
adv_lib_init(struct adv_softc *adv)
adv_get_eeprom_config(struct adv_softc *adv, struct
adv_set_eeprom_config(struct adv_softc *adv,
adv_reset_chip(struct adv_softc *adv, int reset_bus)
adv_test_external_lram(struct adv_softc* adv)
adv_init_lram_and_mcode(struct adv_softc *adv)
adv_get_chip_irq(struct adv_softc *adv)
adv_set_chip_irq(struct adv_softc *adv, u_int8_t irq_no)
adv_set_chip_scsiid(struct adv_softc *adv, int new_id)
adv_execute_scsi_queue(struct adv_softc *adv, struct adv_scsi_q *scsiq,
adv_copy_lram_doneq(struct adv_softc *adv, u_int16_t q_addr,
adv_start_chip(struct adv_softc *adv)
adv_stop_execution(struct adv_softc *adv)
adv_is_chip_halted(struct adv_softc *adv)
adv_ack_interrupt(struct adv_softc *adv)
adv_isr_chip_halted(struct adv_softc *adv)
void adv_set_bank(struct adv_softc *adv, u_int8_t bank);
u_int8_t adv_read_lram_8(struct adv_softc *adv, u_int16_t addr);
void adv_write_lram_8(struct adv_softc *adv, u_int16_t addr,
u_int16_t adv_read_lram_16(struct adv_softc *adv, u_int16_t addr);
void adv_write_lram_16(struct adv_softc *adv, u_int16_t addr,
void adv_lib_init(struct adv_softc *adv);
u_int16_t adv_get_eeprom_config(struct adv_softc *adv,
int adv_set_eeprom_config(struct adv_softc *adv,
int adv_reset_chip(struct adv_softc *adv, int reset_bus);
int adv_test_external_lram(struct adv_softc* adv);
int adv_init_lram_and_mcode(struct adv_softc *adv);
u_int8_t adv_get_chip_irq(struct adv_softc *adv);
u_int8_t adv_set_chip_irq(struct adv_softc *adv, u_int8_t irq_no);
void adv_set_chip_scsiid(struct adv_softc *adv, int new_id);
int adv_execute_scsi_queue(struct adv_softc *adv,
u_int8_t adv_copy_lram_doneq(struct adv_softc *adv, u_int16_t q_addr,
int adv_start_chip(struct adv_softc *adv);
void adv_start_execution(struct adv_softc *adv);
int adv_stop_execution(struct adv_softc *adv);
int adv_stop_chip(struct adv_softc *adv);
int adv_is_chip_halted(struct adv_softc *adv);
void adv_ack_interrupt(struct adv_softc *adv);
void adv_isr_chip_halted(struct adv_softc *adv);
void adv_set_syncrate(struct adv_softc *adv, struct cam_path *path,
void adv_sdtr_to_period_offset(struct adv_softc *adv,
u_int8_t adv_period_offset_to_sdtr(struct adv_softc *adv, u_int *period,
int adv_abort_ccb(struct adv_softc *adv, int target, int lun,
int adv_reset_bus(struct adv_softc *adv, int initiate_reset);
static __inline void ADV_INSW(struct adv_softc *, u_int, u_int16_t *, u_int);
ADV_INSW(struct adv_softc *adv, u_int offset, u_int16_t *valp, u_int count)
static __inline void ADV_OUTSW(struct adv_softc *, u_int, u_int16_t *, u_int);
ADV_OUTSW(struct adv_softc *adv, u_int offset, u_int16_t *valp, u_int count)