218 nulldev, /* detach */
219 nodev, /* reset */
220 (struct cb_ops *)0, /* driver operations */
221 &isa_bus_ops, /* bus operations */
222 NULL, /* power */
223 ddi_quiesce_not_needed, /* quiesce */
224 };
225
226 /*
227 * Module linkage information for the kernel.
228 */
229
230 static struct modldrv modldrv = {
231 &mod_driverops, /* Type of module. This is ISA bus driver */
232 "isa nexus driver for 'ISA'",
233 &isa_ops, /* driver ops */
234 };
235
236 static struct modlinkage modlinkage = {
237 MODREV_1,
238 &modldrv,
239 NULL
240 };
241
242 int
243 _init(void)
244 {
245 int err;
246 char tty_irq_param[9] = "ttyX-irq";
247 char *tty_irq;
248 int i;
249
250 if ((err = mod_install(&modlinkage)) != 0)
251 return (err);
252
253 /* Check if any tty irqs are overridden by eeprom config */
254 for (i = 0; i < num_BIOS_serial; i++) {
255 tty_irq_param[3] = 'a' + i;
256 if (ddi_prop_lookup_string(DDI_DEV_T_ANY, ddi_root_node(),
257 DDI_PROP_DONTPASS, tty_irq_param, &tty_irq)
258 == DDI_PROP_SUCCESS) {
259 long data;
|
218 nulldev, /* detach */
219 nodev, /* reset */
220 (struct cb_ops *)0, /* driver operations */
221 &isa_bus_ops, /* bus operations */
222 NULL, /* power */
223 ddi_quiesce_not_needed, /* quiesce */
224 };
225
226 /*
227 * Module linkage information for the kernel.
228 */
229
230 static struct modldrv modldrv = {
231 &mod_driverops, /* Type of module. This is ISA bus driver */
232 "isa nexus driver for 'ISA'",
233 &isa_ops, /* driver ops */
234 };
235
236 static struct modlinkage modlinkage = {
237 MODREV_1,
238 { &modldrv, NULL }
239 };
240
241 int
242 _init(void)
243 {
244 int err;
245 char tty_irq_param[9] = "ttyX-irq";
246 char *tty_irq;
247 int i;
248
249 if ((err = mod_install(&modlinkage)) != 0)
250 return (err);
251
252 /* Check if any tty irqs are overridden by eeprom config */
253 for (i = 0; i < num_BIOS_serial; i++) {
254 tty_irq_param[3] = 'a' + i;
255 if (ddi_prop_lookup_string(DDI_DEV_T_ANY, ddi_root_node(),
256 DDI_PROP_DONTPASS, tty_irq_param, &tty_irq)
257 == DDI_PROP_SUCCESS) {
258 long data;
|