32 #include <linux/kernel.h>
34 #include <linux/types.h>
35 #include <linux/pci.h>
40 #include <linux/time.h>
50 unsigned short intstat,
mask;
57 mask = ~(
sa_readw(dev, SaDbCSR.PRISETIRQMASK));
87 static void aac_sa_disable_interrupt (
struct aac_dev *dev)
89 sa_writew(dev, SaDbCSR.PRISETIRQMASK, 0xffff);
97 static void aac_sa_enable_interrupt (
struct aac_dev *dev)
99 sa_writew(dev, SaDbCSR.PRICLEARIRQMASK, (PrintfReady | DOORBELL_1 |
233 static void aac_sa_interrupt_adapter (
struct aac_dev *dev)
246 static void aac_sa_start_adapter(
struct aac_dev *dev)
260 static int aac_sa_restart_adapter(
struct aac_dev *dev,
int bled)
272 static int aac_sa_check_health(
struct aac_dev *dev)
309 return (dev->
base ==
NULL) ? -1 : 0;
331 if (aac_sa_ioremap(dev, dev->
base_size)) {
358 name, instance, status);
368 dev->
a_ops.adapter_interrupt = aac_sa_interrupt_adapter;
369 dev->
a_ops.adapter_disable_int = aac_sa_disable_interrupt;
370 dev->
a_ops.adapter_enable_int = aac_sa_enable_interrupt;
371 dev->
a_ops.adapter_notify = aac_sa_notify_adapter;
372 dev->
a_ops.adapter_sync_cmd = sa_sync_cmd;
373 dev->
a_ops.adapter_check_health = aac_sa_check_health;
374 dev->
a_ops.adapter_restart = aac_sa_restart_adapter;
375 dev->
a_ops.adapter_intr = aac_sa_intr;
377 dev->
a_ops.adapter_ioremap = aac_sa_ioremap;
391 "aacraid", (
void *)dev ) < 0) {
406 aac_sa_start_adapter(dev);
410 aac_sa_disable_interrupt(dev);