pci.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 <linux/scatterlist.h>
  16. #include <asm-generic/pci.h>
  17. struct pci_dev;
  18. #define pcibios_assign_all_busses() 0
  19. extern void pcibios_set_master(struct pci_dev *dev);
  20. #ifdef CONFIG_MMU
  21. extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *dma_handle);
  22. extern void consistent_free(void *vaddr);
  23. extern void consistent_sync(void *vaddr, size_t size, int direction);
  24. extern void consistent_sync_page(struct page *page, unsigned long offset,
  25. size_t size, int direction);
  26. #endif
  27. /* Return the index of the PCI controller for device PDEV. */
  28. #define pci_controller_num(PDEV) (0)
  29. /*
  30. * These are pretty much arbitrary with the CoMEM implementation.
  31. * We have the whole address space to ourselves.
  32. */
  33. #define PCIBIOS_MIN_IO 0x100
  34. #define PCIBIOS_MIN_MEM 0x00010000
  35. #endif /* _ASM_FRV_PCI_H */