Path: blob/master/arch/unicore32/include/asm/pci.h
10818 views
/*1* linux/arch/unicore32/include/asm/pci.h2*3* Code specific to PKUnity SoC and UniCore ISA4*5* Copyright (C) 2001-2010 GUAN Xue-tao6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License version 2 as9* published by the Free Software Foundation.10*/11#ifndef __UNICORE_PCI_H__12#define __UNICORE_PCI_H__1314#ifdef __KERNEL__15#include <asm-generic/pci-dma-compat.h>16#include <asm-generic/pci.h>17#include <mach/hardware.h> /* for PCIBIOS_MIN_* */1819static inline void pcibios_set_master(struct pci_dev *dev)20{21/* No special bus mastering setup handling */22}2324static inline void pcibios_penalize_isa_irq(int irq, int active)25{26/* We don't do dynamic PCI IRQ allocation */27}2829#ifdef CONFIG_PCI30static inline void pci_dma_burst_advice(struct pci_dev *pdev,31enum pci_dma_burst_strategy *strat,32unsigned long *strategy_parameter)33{34*strat = PCI_DMA_BURST_INFINITY;35*strategy_parameter = ~0UL;36}37#endif3839#define HAVE_PCI_MMAP40extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,41enum pci_mmap_state mmap_state, int write_combine);4243#endif /* __KERNEL__ */4445#endif464748