107 0, /* devo_refcnt */
108 i915_info, /* devo_getinfo */
109 nulldev, /* devo_identify */
110 nulldev, /* devo_probe */
111 i915_attach, /* devo_attach */
112 i915_detach, /* devo_detach */
113 nodev, /* devo_reset */
114 &drm_cb_ops, /* devo_cb_ops */
115 NULL, /* devo_bus_ops */
116 NULL, /* power */
117 i915_quiesce, /* devo_quiesce */
118 };
119
120 static struct modldrv modldrv = {
121 &mod_driverops, /* drv_modops */
122 "I915 DRM driver", /* drv_linkinfo */
123 &i915_dev_ops, /* drv_dev_ops */
124 };
125
126 static struct modlinkage modlinkage = {
127 MODREV_1, (void *) &modldrv, NULL
128 };
129
130 static ddi_device_acc_attr_t s3_attr = {
131 DDI_DEVICE_ATTR_V0,
132 DDI_NEVERSWAP_ACC,
133 DDI_STRICTORDER_ACC /* must be DDI_STRICTORDER_ACC */
134 };
135
136 /*
137 * softstate head
138 */
139 static void *i915_statep;
140
141 int
142 _init(void)
143 {
144 int error;
145
146 i915_configure(&i915_driver);
147
|
107 0, /* devo_refcnt */
108 i915_info, /* devo_getinfo */
109 nulldev, /* devo_identify */
110 nulldev, /* devo_probe */
111 i915_attach, /* devo_attach */
112 i915_detach, /* devo_detach */
113 nodev, /* devo_reset */
114 &drm_cb_ops, /* devo_cb_ops */
115 NULL, /* devo_bus_ops */
116 NULL, /* power */
117 i915_quiesce, /* devo_quiesce */
118 };
119
120 static struct modldrv modldrv = {
121 &mod_driverops, /* drv_modops */
122 "I915 DRM driver", /* drv_linkinfo */
123 &i915_dev_ops, /* drv_dev_ops */
124 };
125
126 static struct modlinkage modlinkage = {
127 MODREV_1, { (void *) &modldrv, NULL }
128 };
129
130 static ddi_device_acc_attr_t s3_attr = {
131 DDI_DEVICE_ATTR_V0,
132 DDI_NEVERSWAP_ACC,
133 DDI_STRICTORDER_ACC /* must be DDI_STRICTORDER_ACC */
134 };
135
136 /*
137 * softstate head
138 */
139 static void *i915_statep;
140
141 int
142 _init(void)
143 {
144 int error;
145
146 i915_configure(&i915_driver);
147
|