212 cpuid_getinfo,
213 nulldev, /* identify */
214 nulldev, /* probe */
215 cpuid_attach,
216 cpuid_detach,
217 nodev, /* reset */
218 &cpuid_cb_ops,
219 (struct bus_ops *)0,
220 NULL,
221 ddi_quiesce_not_needed, /* quiesce */
222 };
223
224 static struct modldrv modldrv = {
225 &mod_driverops,
226 "cpuid driver",
227 &cpuid_dv_ops
228 };
229
230 static struct modlinkage modl = {
231 MODREV_1,
232 &modldrv
233 };
234
235 int
236 _init(void)
237 {
238 return (mod_install(&modl));
239 }
240
241 int
242 _fini(void)
243 {
244 return (mod_remove(&modl));
245 }
246
247 int
248 _info(struct modinfo *modinfo)
249 {
250 return (mod_info(&modl, modinfo));
251 }
|
212 cpuid_getinfo,
213 nulldev, /* identify */
214 nulldev, /* probe */
215 cpuid_attach,
216 cpuid_detach,
217 nodev, /* reset */
218 &cpuid_cb_ops,
219 (struct bus_ops *)0,
220 NULL,
221 ddi_quiesce_not_needed, /* quiesce */
222 };
223
224 static struct modldrv modldrv = {
225 &mod_driverops,
226 "cpuid driver",
227 &cpuid_dv_ops
228 };
229
230 static struct modlinkage modl = {
231 MODREV_1,
232 { &modldrv, NULL }
233 };
234
235 int
236 _init(void)
237 {
238 return (mod_install(&modl));
239 }
240
241 int
242 _fini(void)
243 {
244 return (mod_remove(&modl));
245 }
246
247 int
248 _info(struct modinfo *modinfo)
249 {
250 return (mod_info(&modl, modinfo));
251 }
|