Lines Matching defs:mvs_channel
530 struct mvs_channel { struct
531 device_t dev; /* Device handle */
532 int unit; /* Physical channel */
533 struct resource *r_mem; /* Memory of this channel */
534 struct resource *r_irq; /* Interrupt of this channel */
535 void *ih; /* Interrupt handle */
536 struct mvs_dma dma; /* DMA data */
537 struct cam_sim *sim;
538 struct cam_path *path;
539 int quirks;
546 int pm_level; /* power management level */
548 struct mvs_slot slot[MVS_MAX_SLOTS];
549 union ccb *hold[MVS_MAX_SLOTS];
550 int holdtag[MVS_MAX_SLOTS]; /* Tags used for held commands. */
551 struct mtx mtx; /* state lock */
552 int devices; /* What is present */
553 int pm_present; /* PM presence reported */
554 enum mvs_edma_mode curr_mode; /* Current EDMA mode */
555 int fbs_enabled; /* FIS-based switching enabled */
556 uint32_t oslots; /* Occupied slots */
557 uint32_t otagspd[16]; /* Occupied device tags */
558 uint32_t rslots; /* Running slots */
559 uint32_t aslots; /* Slots with atomic commands */
560 uint32_t eslots; /* Slots in error */
561 uint32_t toslots; /* Slots in timeout */
562 int numrslots; /* Number of running slots */
563 int numrslotspd[16];/* Number of running slots per dev */
564 int numpslots; /* Number of PIO slots */
565 int numdslots; /* Number of DMA slots */
566 int numtslots; /* Number of NCQ slots */
567 int numtslotspd[16];/* Number of NCQ slots per dev */
568 int numhslots; /* Number of held slots */
569 int recoverycmd; /* Our READ LOG active */
570 int fatalerr; /* Fatal error happened */
571 int lastslot; /* Last used slot */
572 int taggedtarget; /* Last tagged target */
573 int resetting; /* Hard-reset in progress. */
574 int resetpolldiv; /* Hard-reset poll divider. */
575 int out_idx; /* Next written CRQB */
576 int in_idx; /* Next read CRPB */
577 u_int transfersize; /* PIO transfer size */
578 u_int donecount; /* PIO bytes sent/received */
579 u_int basic_dma; /* Basic DMA used for ATAPI */
580 u_int fake_busy; /* Fake busy bit after command submission */
581 union ccb *frozen; /* Frozen command */
582 struct callout pm_timer; /* Power management events */
583 struct callout reset_timer; /* Hard-reset timeout */
585 struct mvs_device user[16]; /* User-specified settings */
586 struct mvs_device curr[16]; /* Current settings */