pci.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* pci.h: FR-V specific PCI declarations
  2. *
  3. * Copyright (C) 2003 Red Hat, Inc. All Rights Reserved.
  4. * Written by David Howells (dhowells@redhat.com)
  5. * - Derived from include/asm-m68k/pci.h
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version
  10. * 2 of the License, or (at your option) any later version.
  11. */
  12. #ifndef _ASM_FRV_PCI_H
  13. #define _ASM_FRV_PCI_H
  14. #include <linux/mm.h>
  15. #include <asm/scatterlist.h>
  16. #include <asm-generic/pci-dma-compat.h>
  17. #include <asm-generic/pci.h>
  18. struct pci_dev;
  19. #define pcibios_assign_all_busses() 0
  20. extern void pcibios_set_master(struct pci_dev *dev);
  21. extern void pcibios_penalize_isa_irq(int irq);
  22. #ifdef CONFIG_MMU
  23. extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *dma_handle);
  24. extern void consistent_free(void *vaddr);
  25. extern void consistent_sync(void *vaddr, size_t size, int direction);
  26. extern void consistent_sync_page(struct page *page, unsigned long offset,
  27. size_t size, int direction);
  28. #endif
  29. extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
  30. dma_addr_t *dma_handle);
  31. extern void pci_free_consistent(struct pci_dev *hwdev, size_t size,
  32. void *vaddr, dma_addr_t dma_handle);
  33. /* Return the index of the PCI controller for device PDEV. */
  34. #define pci_controller_num(PDEV) (0)
  35. #ifdef CONFIG_PCI
  36. static inline void pci_dma_burst_advice(struct pci_dev *pdev,
  37. enum pci_dma_burst_strategy *strat,
  38. unsigned long *strategy_parameter)
  39. {
  40. *strat = PCI_DMA_BURST_INFINITY;
  41. *strategy_parameter = ~0UL;
  42. }
  43. #endif
  44. /*
  45. * These are pretty much arbitrary with the CoMEM implementation.
  46. * We have the whole address space to ourselves.
  47. */
  48. #define PCIBIOS_MIN_IO 0x100
  49. #define PCIBIOS_MIN_MEM 0x00010000
  50. #endif /* _ASM_FRV_PCI_H */