asp.c (bdad1f836ab1ca2b18a625222f63f630cfd14e41) | asp.c (53f01bba49938f115237fe43a261c31ac13ae5c6) |
---|---|
1/* 2 * ASP Device Driver 3 * 4 * (c) Copyright 2000 The Puffin Group Inc. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 63 unchanged lines hidden (view full) --- 72#define ASP_INTERRUPT_ADDR 0xf0800000 73 74int __init 75asp_init_chip(struct parisc_device *dev) 76{ 77 struct gsc_irq gsc_irq; 78 int ret; 79 | 1/* 2 * ASP Device Driver 3 * 4 * (c) Copyright 2000 The Puffin Group Inc. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 63 unchanged lines hidden (view full) --- 72#define ASP_INTERRUPT_ADDR 0xf0800000 73 74int __init 75asp_init_chip(struct parisc_device *dev) 76{ 77 struct gsc_irq gsc_irq; 78 int ret; 79 |
80 asp.version = gsc_readb(dev->hpa + ASP_VER_OFFSET) & 0xf; | 80 asp.version = gsc_readb(dev->hpa.start + ASP_VER_OFFSET) & 0xf; |
81 asp.name = (asp.version == 1) ? "Asp" : "Cutoff"; 82 asp.hpa = ASP_INTERRUPT_ADDR; 83 84 printk(KERN_INFO "%s version %d at 0x%lx found.\n", | 81 asp.name = (asp.version == 1) ? "Asp" : "Cutoff"; 82 asp.hpa = ASP_INTERRUPT_ADDR; 83 84 printk(KERN_INFO "%s version %d at 0x%lx found.\n", |
85 asp.name, asp.version, dev->hpa); | 85 asp.name, asp.version, dev->hpa.start); |
86 87 /* the IRQ ASP should use */ 88 ret = -EBUSY; 89 dev->irq = gsc_claim_irq(&gsc_irq, ASP_GSC_IRQ); 90 if (dev->irq < 0) { 91 printk(KERN_ERR "%s(): cannot get GSC irq\n", __FUNCTION__); 92 goto out; 93 } --- 39 unchanged lines hidden --- | 86 87 /* the IRQ ASP should use */ 88 ret = -EBUSY; 89 dev->irq = gsc_claim_irq(&gsc_irq, ASP_GSC_IRQ); 90 if (dev->irq < 0) { 91 printk(KERN_ERR "%s(): cannot get GSC irq\n", __FUNCTION__); 92 goto out; 93 } --- 39 unchanged lines hidden --- |