138 /*
139 * ata_write_cache == 1 force write cache on.
140 * ata_write_cache == 0 do not modify write cache. firmware defaults kept.
141 * ata_write_cache == -1 force write cache off.
142 */
143 int ata_write_cache = 1;
144
145
146 static struct ctl_objops ata_disk_objops = {
147 ata_disk_pktalloc,
148 ata_disk_pktfree,
149 ata_disk_memsetup,
150 ata_disk_memfree,
151 ata_disk_iosetup,
152 ata_disk_transport,
153 ata_disk_reset,
154 ata_disk_abort,
155 nulldev,
156 nulldev,
157 ata_disk_ioctl,
158 0, 0
159 };
160
161
162
163 /*
164 *
165 * initialize the ata_disk sub-system
166 *
167 */
168
169 /*ARGSUSED*/
170 int
171 ata_disk_attach(
172 ata_ctl_t *ata_ctlp)
173 {
174 ADBG_TRACE(("ata_disk_init entered\n"));
175 return (TRUE);
176 }
177
178
|
138 /*
139 * ata_write_cache == 1 force write cache on.
140 * ata_write_cache == 0 do not modify write cache. firmware defaults kept.
141 * ata_write_cache == -1 force write cache off.
142 */
143 int ata_write_cache = 1;
144
145
146 static struct ctl_objops ata_disk_objops = {
147 ata_disk_pktalloc,
148 ata_disk_pktfree,
149 ata_disk_memsetup,
150 ata_disk_memfree,
151 ata_disk_iosetup,
152 ata_disk_transport,
153 ata_disk_reset,
154 ata_disk_abort,
155 nulldev,
156 nulldev,
157 ata_disk_ioctl,
158 { NULL, NULL }
159 };
160
161
162
163 /*
164 *
165 * initialize the ata_disk sub-system
166 *
167 */
168
169 /*ARGSUSED*/
170 int
171 ata_disk_attach(
172 ata_ctl_t *ata_ctlp)
173 {
174 ADBG_TRACE(("ata_disk_init entered\n"));
175 return (TRUE);
176 }
177
178
|