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

TOMOYO Linux Cross Reference
Linux/arch/mn10300/include/asm/pci.h

Version: ~ [ linux-5.9-rc6 ] ~ [ linux-5.8.10 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.66 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.146 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.198 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.236 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.236 ] ~ [ 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.85 ] ~ [ 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-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 /* MN10300 PCI definitions
  2  *
  3  * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
  4  * Written by David Howells (dhowells@redhat.com)
  5  *
  6  * This program is free software; you can redistribute it and/or
  7  * modify it under the terms of the GNU General Public Licence
  8  * as published by the Free Software Foundation; either version
  9  * 2 of the Licence, or (at your option) any later version.
 10  */
 11 #ifndef _ASM_PCI_H
 12 #define _ASM_PCI_H
 13 
 14 #ifdef __KERNEL__
 15 #include <linux/mm.h>           /* for struct page */
 16 
 17 #if 0
 18 #define __pcbdebug(FMT, ADDR, ...) \
 19         printk(KERN_DEBUG "PCIBRIDGE[%08x]: "FMT"\n", \
 20                (u32)(ADDR), ##__VA_ARGS__)
 21 
 22 #define __pcidebug(FMT, BUS, DEVFN, WHERE,...)          \
 23 do {                                                    \
 24         printk(KERN_DEBUG "PCI[%02x:%02x.%x + %02x]: "FMT"\n",  \
 25                (BUS)->number,                                   \
 26                PCI_SLOT(DEVFN),                                 \
 27                PCI_FUNC(DEVFN),                                 \
 28                (u32)(WHERE), ##__VA_ARGS__);                    \
 29 } while (0)
 30 
 31 #else
 32 #define __pcbdebug(FMT, ADDR, ...)              do {} while (0)
 33 #define __pcidebug(FMT, BUS, DEVFN, WHERE, ...) do {} while (0)
 34 #endif
 35 
 36 /* Can be used to override the logic in pci_scan_bus for skipping
 37  * already-configured bus numbers - to be used for buggy BIOSes or
 38  * architectures with incomplete PCI setup by the loader */
 39 
 40 #ifdef CONFIG_PCI
 41 #define pcibios_assign_all_busses()     1
 42 extern void unit_pci_init(void);
 43 #else
 44 #define pcibios_assign_all_busses()     0
 45 #endif
 46 
 47 #define PCIBIOS_MIN_IO          0xBE000004
 48 #define PCIBIOS_MIN_MEM         0xB8000000
 49 
 50 void pcibios_set_master(struct pci_dev *dev);
 51 void pcibios_penalize_isa_irq(int irq);
 52 
 53 /* Dynamic DMA mapping stuff.
 54  * i386 has everything mapped statically.
 55  */
 56 
 57 #include <linux/types.h>
 58 #include <linux/slab.h>
 59 #include <asm/scatterlist.h>
 60 #include <linux/string.h>
 61 #include <asm/io.h>
 62 
 63 struct pci_dev;
 64 
 65 /* The PCI address space does equal the physical memory
 66  * address space.  The networking and block device layers use
 67  * this boolean for bounce buffer decisions.
 68  */
 69 #define PCI_DMA_BUS_IS_PHYS     (1)
 70 
 71 /* Return the index of the PCI controller for device. */
 72 static inline int pci_controller_num(struct pci_dev *dev)
 73 {
 74         return 0;
 75 }
 76 
 77 #define HAVE_PCI_MMAP
 78 extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
 79                                enum pci_mmap_state mmap_state,
 80                                int write_combine);
 81 
 82 #endif /* __KERNEL__ */
 83 
 84 /* implement the pci_ DMA API in terms of the generic device dma_ one */
 85 #include <asm-generic/pci-dma-compat.h>
 86 
 87 static inline struct resource *
 88 pcibios_select_root(struct pci_dev *pdev, struct resource *res)
 89 {
 90         struct resource *root = NULL;
 91 
 92         if (res->flags & IORESOURCE_IO)
 93                 root = &ioport_resource;
 94         if (res->flags & IORESOURCE_MEM)
 95                 root = &iomem_resource;
 96 
 97         return root;
 98 }
 99 
100 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
101 {
102         return channel ? 15 : 14;
103 }
104 
105 #include <asm-generic/pci_iomap.h>
106 
107 #endif /* _ASM_PCI_H */
108 

~ [ 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