141 0, /* refcnt */
142 pm_getinfo, /* info */
143 nulldev, /* identify */
144 nulldev, /* probe */
145 pm_attach, /* attach */
146 pm_detach, /* detach */
147 nodev, /* reset */
148 &pm_cb_ops, /* driver operations */
149 NULL, /* bus operations */
150 NULL, /* power */
151 ddi_quiesce_not_needed, /* quiesce */
152 };
153
154 static struct modldrv modldrv = {
155 &mod_driverops,
156 "power management driver",
157 &pm_ops
158 };
159
160 static struct modlinkage modlinkage = {
161 MODREV_1, &modldrv, 0
162 };
163
164 /* Local functions */
165 #ifdef DEBUG
166 static int print_info(dev_info_t *, void *);
167
168 #endif
169
170 int
171 _init(void)
172 {
173 return (mod_install(&modlinkage));
174 }
175
176 int
177 _fini(void)
178 {
179 return (mod_remove(&modlinkage));
180 }
181
|
141 0, /* refcnt */
142 pm_getinfo, /* info */
143 nulldev, /* identify */
144 nulldev, /* probe */
145 pm_attach, /* attach */
146 pm_detach, /* detach */
147 nodev, /* reset */
148 &pm_cb_ops, /* driver operations */
149 NULL, /* bus operations */
150 NULL, /* power */
151 ddi_quiesce_not_needed, /* quiesce */
152 };
153
154 static struct modldrv modldrv = {
155 &mod_driverops,
156 "power management driver",
157 &pm_ops
158 };
159
160 static struct modlinkage modlinkage = {
161 MODREV_1, { &modldrv, NULL }
162 };
163
164 /* Local functions */
165 #ifdef DEBUG
166 static int print_info(dev_info_t *, void *);
167
168 #endif
169
170 int
171 _init(void)
172 {
173 return (mod_install(&modlinkage));
174 }
175
176 int
177 _fini(void)
178 {
179 return (mod_remove(&modlinkage));
180 }
181
|