Lines Matching defs:st_softc
89 struct st_softc { struct
92 int (*ops)(struct st_softc *, int, int); argument
99 int flags; /* see below */
100 u_int quirks; /* quirks for the open mode */
101 int blksize; /* blksize we are using */
102 uint8_t density; /* present density */
103 u_int page_0_size; /* size of page 0 data */
104 u_int last_dsty; /* last density opened */
105 short mt_resid; /* last (short) resid */
106 short mt_erreg; /* last error (sense key) seen */
108 daddr_t fileno;
109 daddr_t blkno;
110 int32_t last_io_resid;
111 int32_t last_ctl_resid;
113 uint8_t asc; /* last asc code seen */
114 uint8_t ascq; /* last asc code seen */
116 struct scsipi_periph *sc_periph;/* our link to the adpter etc. */
118 int blkmin; /* min blk size */
119 int blkmax; /* max blk size */
120 const struct quirkdata *quirkdata; /* if we have a rogue entry */
122 u_long numblks; /* nominal blocks capacity */
123 int media_blksize; /* 0 if not ST_FIXEDBLOCKS */
124 uint8_t media_density; /* this is what it said when asked */
126 u_int drive_quirks; /* quirks of this drive */
128 struct modes modes[4]; /* plus more for each mode */
129 uint8_t modeflags[4]; /* flags for the modes */
135 u_char sense_data[MAX_PAGE_0_SIZE]; /*
139 struct bufq_state *buf_queue; /* the queue of pending IO */
141 struct bufq_state *buf_defer; /* the queue of deferred IO */
143 struct callout sc_callout; /* restarting the queue after */
146 struct io_stats *stats; /* statistics for the drive */
148 krndsource_t rnd_source;
149 kmutex_t sc_iolock;