/* Ok we hit it on the head with a hammer, our Dog is now **comatoseandmuzzled.DeviceswillnowunmaskLASI **interruptsastheyareregisteredasirq'sintheLASIrange.
*/ /* XXX: I thought it was `awks that got `it on the `ead with an *`ammer.--willy
*/
}
switch (CPU_HVERSION) { /* Gecko machines have only one single LED, which can be permanently
turned on by writing a zero into the power control register. */ case0x600: /* Gecko (712/60) */ case0x601: /* Gecko (712/80) */ case0x602: /* Gecko (712/100) */ case0x603: /* Anole 64 (743/64) */ case0x604: /* Anole 100 (743/100) */ case0x605: /* Gecko (712/120) */
datareg = lasi_hpa + 0x0000C000;
gsc_writeb(0, datareg); return; /* no need to register the LED interrupt-function */
lasi = kzalloc(sizeof(*lasi), GFP_KERNEL); if (!lasi) return -ENOMEM;
lasi->name = "Lasi";
lasi->hpa = dev->hpa.start;
/* Check the 4-bit (yes, only 4) version register */
lasi->version = gsc_readl(lasi->hpa + LASI_VER) & 0xf;
printk(KERN_INFO "%s version %d at 0x%lx found.\n",
lasi->name, lasi->version, lasi->hpa);
/* initialize the chassis LEDs really early */
lasi_led_init(lasi->hpa);
/* Stop LASI barking for a bit */
lasi_init_irq(lasi);
/* the IRQ lasi should use */
dev->irq = gsc_alloc_irq(&lasi->gsc_irq); if (dev->irq < 0) {
printk(KERN_ERR "%s(): cannot get GSC irq\n",
__func__);
kfree(lasi); return -EBUSY;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.