~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/sh/boards/mach-landisk/irq.c

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0
  2 /*
  3  * arch/sh/boards/mach-landisk/irq.c
  4  *
  5  * I-O DATA Device, Inc. LANDISK Support
  6  *
  7  * Copyright (C) 2005-2007 kogiidena
  8  * Copyright (C) 2011 Nobuhiro Iwamatsu
  9  *
 10  * Copyright (C) 2001  Ian da Silva, Jeremy Siegel
 11  * Based largely on io_se.c.
 12  */
 13 
 14 #include <linux/init.h>
 15 #include <linux/irq.h>
 16 #include <linux/interrupt.h>
 17 #include <linux/io.h>
 18 #include <mach-landisk/mach/iodata_landisk.h>
 19 
 20 enum {
 21         UNUSED = 0,
 22 
 23         PCI_INTA, /* PCI int A */
 24         PCI_INTB, /* PCI int B */
 25         PCI_INTC, /* PCI int C */
 26         PCI_INTD, /* PCI int D */
 27         ATA,      /* ATA */
 28         FATA,     /* CF */
 29         POWER,    /* Power switch */
 30         BUTTON,   /* Button switch */
 31 };
 32 
 33 /* Vectors for LANDISK */
 34 static struct intc_vect vectors_landisk[] __initdata = {
 35         INTC_IRQ(PCI_INTA, IRQ_PCIINTA),
 36         INTC_IRQ(PCI_INTB, IRQ_PCIINTB),
 37         INTC_IRQ(PCI_INTC, IRQ_PCIINTC),
 38         INTC_IRQ(PCI_INTD, IRQ_PCIINTD),
 39         INTC_IRQ(ATA, IRQ_ATA),
 40         INTC_IRQ(FATA, IRQ_FATA),
 41         INTC_IRQ(POWER, IRQ_POWER),
 42         INTC_IRQ(BUTTON, IRQ_BUTTON),
 43 };
 44 
 45 /* IRLMSK mask register layout for LANDISK */
 46 static struct intc_mask_reg mask_registers_landisk[] __initdata = {
 47         { PA_IMASK, 0, 8, /* IRLMSK */
 48           {  BUTTON, POWER, FATA, ATA,
 49              PCI_INTD, PCI_INTC, PCI_INTB, PCI_INTA,
 50           }
 51         },
 52 };
 53 
 54 static DECLARE_INTC_DESC(intc_desc_landisk, "landisk", vectors_landisk, NULL,
 55                         mask_registers_landisk, NULL, NULL);
 56 /*
 57  * Initialize IRQ setting
 58  */
 59 void __init init_landisk_IRQ(void)
 60 {
 61         register_intc_controller(&intc_desc_landisk);
 62         __raw_writeb(0x00, PA_PWRINT_CLR);
 63 }
 64 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php