Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Arnd Bergmann | d7c4f1b | 2009-05-13 22:56:31 +0000 | [diff] [blame] | 13 | #ifndef _ASM_FRV_PCI_H |
| 14 | #define _ASM_FRV_PCI_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #include <linux/mm.h> |
Christoph Hellwig | 84be456 | 2015-05-01 12:46:15 +0200 | [diff] [blame] | 17 | #include <linux/scatterlist.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | #include <asm-generic/pci-dma-compat.h> |
| 19 | #include <asm-generic/pci.h> |
| 20 | |
| 21 | struct pci_dev; |
| 22 | |
| 23 | #define pcibios_assign_all_busses() 0 |
| 24 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | extern void pcibios_set_master(struct pci_dev *dev); |
| 26 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | #ifdef CONFIG_MMU |
Al Viro | a5da7d3 | 2005-10-21 03:21:18 -0400 | [diff] [blame] | 28 | extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *dma_handle); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | extern void consistent_free(void *vaddr); |
| 30 | extern void consistent_sync(void *vaddr, size_t size, int direction); |
| 31 | extern void consistent_sync_page(struct page *page, unsigned long offset, |
| 32 | size_t size, int direction); |
| 33 | #endif |
| 34 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | /* Return the index of the PCI controller for device PDEV. */ |
| 36 | #define pci_controller_num(PDEV) (0) |
| 37 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | /* |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 39 | * These are pretty much arbitrary with the CoMEM implementation. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | * We have the whole address space to ourselves. |
| 41 | */ |
| 42 | #define PCIBIOS_MIN_IO 0x100 |
| 43 | #define PCIBIOS_MIN_MEM 0x00010000 |
| 44 | |
Arnd Bergmann | d7c4f1b | 2009-05-13 22:56:31 +0000 | [diff] [blame] | 45 | #endif /* _ASM_FRV_PCI_H */ |