nv_port_t
static int nv_start_common(nv_port_t *nvp, sata_pkt_t *spkt);
static int nv_start_nodata(nv_port_t *nvp, int slot);
static void nv_intr_nodata(nv_port_t *nvp, nv_slot_t *spkt);
static int nv_start_pio_in(nv_port_t *nvp, int slot);
static int nv_start_pio_out(nv_port_t *nvp, int slot);
static void nv_intr_pio_in(nv_port_t *nvp, nv_slot_t *spkt);
static void nv_intr_pio_out(nv_port_t *nvp, nv_slot_t *spkt);
static int nv_start_pkt_pio(nv_port_t *nvp, int slot);
static void nv_intr_pkt_pio(nv_port_t *nvp, nv_slot_t *nv_slotp);
static int nv_start_dma(nv_port_t *nvp, int slot);
nv_port_t *nvp;
static void nv_intr_dma(nv_port_t *nvp, struct nv_slot *spkt);
static void nv_uninit_port(nv_port_t *nvp);
static void nv_init_port(nv_port_t *nvp);
static int mcp5x_packet_complete_intr(nv_ctl_t *nvc, nv_port_t *nvp);
static int mcp5x_dma_setup_intr(nv_ctl_t *nvc, nv_port_t *nvp);
static void nv_start_dma_engine(nv_port_t *nvp, int slot);
nv_port_t *nvp = &(nvc->nvc_port[cport]);
static void nv_port_state_change(nv_port_t *nvp, int event, uint8_t addr_type,
static void nv_reset(nv_port_t *nvp, char *reason);
static void nv_complete_io(nv_port_t *nvp, sata_pkt_t *spkt, int slot);
static int nv_poll_wait(nv_port_t *nvp, sata_pkt_t *spkt);
static void nv_cmn_err(int ce, nv_ctl_t *nvc, nv_port_t *nvp, char *fmt, ...);
static void nv_read_signature(nv_port_t *nvp);
static void mcp5x_set_intr(nv_port_t *nvp, int flag);
static void ck804_set_intr(nv_port_t *nvp, int flag);
static void nv_resume(nv_port_t *nvp);
static void nv_suspend(nv_port_t *nvp);
static int nv_start_sync(nv_port_t *nvp, sata_pkt_t *spkt);
static int nv_abort_active(nv_port_t *nvp, sata_pkt_t *spkt, int abort_reason,
static void nv_copy_registers(nv_port_t *nvp, sata_device_t *sd,
static void nv_link_event(nv_port_t *nvp, int flags);
static int nv_start_async(nv_port_t *nvp, sata_pkt_t *spkt);
nv_start_sync(nv_port_t *nvp, sata_pkt_t *spkt)
static int nv_wait3(nv_port_t *nvp, uchar_t onbits1, uchar_t offbits1,
static int nv_wait(nv_port_t *nvp, uchar_t onbits, uchar_t offbits,
static int nv_start_rqsense_pio(nv_port_t *nvp, nv_slot_t *nv_slotp);
static void nv_setup_timeout(nv_port_t *nvp, clock_t microseconds);
nv_poll_wait(nv_port_t *nvp, sata_pkt_t *spkt)
static clock_t nv_monitor_reset(nv_port_t *nvp);
static int nv_bm_status_clear(nv_port_t *nvp);
static void nv_log(nv_ctl_t *nvc, nv_port_t *nvp, const char *fmt, ...);
nv_port_t *nvp = &(nvc->nvc_port[cport]);
nv_abort_active(nv_port_t *nvp, sata_pkt_t *spkt, int abort_reason,
nv_port_t *nvp = &(nvc->nvc_port[cport]);
nv_port_t *nvp = &(nvc->nvc_port[cport]);
nv_port_t *nvp = &(nvc->nvc_port[cport]);
nv_start_common(nv_port_t *nvp, sata_pkt_t *spkt)
nv_read_signature(nv_port_t *nvp)
nv_setup_timeout(nv_port_t *nvp, clock_t microseconds)
nv_reset(nv_port_t *nvp, char *reason)
nv_port_t *nvp;
nv_port_t *nvp;
nv_port_t *nvp;
nvc->nvc_port = kmem_zalloc(sizeof (nv_port_t) * NV_MAX_PORTS(nvc),
nv_init_port(nv_port_t *nvp)
nv_uninit_port(nv_port_t *nvp)
nv_port_t *nvp;
nv_port_t *nvp;
kmem_free(nvc->nvc_port, NV_MAX_PORTS(nvc) * sizeof (nv_port_t));
nv_port_t *nvp;
mcp5x_intr_port(nv_port_t *nvp)
mcp5x_dma_setup_intr(nv_ctl_t *nvc, nv_port_t *nvp)
mcp5x_packet_complete_intr(nv_ctl_t *nvc, nv_port_t *nvp)
nv_complete_io(nv_port_t *nvp, sata_pkt_t *spkt, int slot)
nv_start_async(nv_port_t *nvp, sata_pkt_t *spkt)
nv_port_t *nvp;
nv_vcmn_err(int ce, nv_ctl_t *nvc, nv_port_t *nvp, const char *fmt, va_list ap,
nv_cmn_err(int ce, nv_ctl_t *nvc, nv_port_t *nvp, char *fmt, ...)
nv_log(nv_ctl_t *nvc, nv_port_t *nvp, const char *fmt, ...)
nv_program_taskfile_regs(nv_port_t *nvp, int slot)
nv_start_nodata(nv_port_t *nvp, int slot)
nv_bm_status_clear(nv_port_t *nvp)
nv_start_dma_engine(nv_port_t *nvp, int slot)
nv_start_dma(nv_port_t *nvp, int slot)
nv_start_pio_in(nv_port_t *nvp, int slot)
nv_start_pio_out(nv_port_t *nvp, int slot)
nv_start_pkt_pio(nv_port_t *nvp, int slot)
nv_intr_nodata(nv_port_t *nvp, nv_slot_t *nv_slotp)
nv_intr_pio_in(nv_port_t *nvp, nv_slot_t *nv_slotp)
nv_intr_pio_out(nv_port_t *nvp, nv_slot_t *nv_slotp)
nv_intr_pkt_pio(nv_port_t *nvp, nv_slot_t *nv_slotp)
nv_intr_dma(nv_port_t *nvp, struct nv_slot *nv_slotp)
nv_wait(nv_port_t *nvp, uchar_t onbits, uchar_t offbits, uint_t timeout_usec,
nv_port_t *nvp,
nv_port_state_change(nv_port_t *nvp, int event, uint8_t addr_type, int state)
nv_monitor_reset(nv_port_t *nvp)
nv_port_t *nvp = arg;
ck804_set_intr(nv_port_t *nvp, int flag)
mcp5x_set_intr(nv_port_t *nvp, int flag)
nv_resume(nv_port_t *nvp)
nv_suspend(nv_port_t *nvp)
nv_copy_registers(nv_port_t *nvp, sata_device_t *sd, sata_pkt_t *spkt)
nv_link_event(nv_port_t *nvp, int flag)
nv_start_rqsense_pio(nv_port_t *nvp, nv_slot_t *nv_slotp)
nv_port_t *nvp = &(nvc->nvc_port[port]);
nv_port_t *nvp;
nv_port_t *nvp;
nv_port_t *nvp;
void (*nvc_set_intr)(nv_port_t *nvp, int flag);
int (*nvslot_start)(nv_port_t *nvp, int queue);
void (*nvslot_intr)(nv_port_t *nvp,