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

TOMOYO Linux Cross Reference
Linux/arch/mn10300/unit-asb2305/pci-asb2305.h

Version: ~ [ linux-5.6-rc1 ] ~ [ linux-5.5.2 ] ~ [ linux-5.4.17 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.102 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.170 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.213 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.213 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.81 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* ASB2305 Arch-specific PCI declarations
  2  *
  3  * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
  4  * Written by David Howells (dhowells@redhat.com)
  5  * Derived from: arch/i386/kernel/pci-i386.h: (c) 1999 Martin Mares <mj@ucw.cz>
  6  *
  7  * This program is free software; you can redistribute it and/or
  8  * modify it under the terms of the GNU General Public Licence
  9  * as published by the Free Software Foundation; either version
 10  * 2 of the Licence, or (at your option) any later version.
 11  */
 12 #ifndef _PCI_ASB2305_H
 13 #define _PCI_ASB2305_H
 14 
 15 #undef DEBUG
 16 
 17 #ifdef DEBUG
 18 #define DBG(x...) printk(x)
 19 #else
 20 #define DBG(x...)
 21 #endif
 22 
 23 extern unsigned int pci_probe;
 24 
 25 /* pci-asb2305.c */
 26 
 27 extern void pcibios_resource_survey(void);
 28 
 29 /* pci.c */
 30 
 31 extern struct pci_ops *pci_root_ops;
 32 
 33 extern struct irq_routing_table *pcibios_get_irq_routing_table(void);
 34 extern int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq);
 35 
 36 /* pci-irq.c */
 37 
 38 struct irq_info {
 39         u8 bus, devfn;                  /* Bus, device and function */
 40         struct {
 41                 u8 link;                /* IRQ line ID, chipset dependent,
 42                                          * 0=not routed */
 43                 u16 bitmap;             /* Available IRQs */
 44         } __attribute__((packed)) irq[4];
 45         u8 slot;                        /* Slot number, 0=onboard */
 46         u8 rfu;
 47 } __attribute__((packed));
 48 
 49 struct irq_routing_table {
 50         u32 signature;                  /* PIRQ_SIGNATURE should be here */
 51         u16 version;                    /* PIRQ_VERSION */
 52         u16 size;                       /* Table size in bytes */
 53         u8 rtr_bus, rtr_devfn;          /* Where the interrupt router lies */
 54         u16 exclusive_irqs;             /* IRQs devoted exclusively to PCI usage */
 55         u16 rtr_vendor, rtr_device;     /* Vendor and device ID of interrupt router */
 56         u32 miniport_data;              /* Crap */
 57         u8 rfu[11];
 58         u8 checksum;                    /* Modulo 256 checksum must give zero */
 59         struct irq_info slots[0];
 60 } __attribute__((packed));
 61 
 62 extern unsigned int pcibios_irq_mask;
 63 
 64 extern void pcibios_irq_init(void);
 65 extern void pcibios_fixup_irqs(void);
 66 extern void pcibios_enable_irq(struct pci_dev *dev);
 67 
 68 #endif /* PCI_ASB2305_H */
 69 

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp