blob: 895af9d558bacaebd9e9068c42212d709861bc3e [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* 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 Bergmannd7c4f1b2009-05-13 22:56:31 +000013#ifndef _ASM_FRV_PCI_H
14#define _ASM_FRV_PCI_H
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
Linus Torvalds1da177e2005-04-16 15:20:36 -070016#include <linux/mm.h>
Christoph Hellwig84be4562015-05-01 12:46:15 +020017#include <linux/scatterlist.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070018#include <asm-generic/pci.h>
19
Linus Torvalds1da177e2005-04-16 15:20:36 -070020#define pcibios_assign_all_busses() 0
21
Linus Torvalds1da177e2005-04-16 15:20:36 -070022#ifdef CONFIG_MMU
Al Viroa5da7d32005-10-21 03:21:18 -040023extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *dma_handle);
Linus Torvalds1da177e2005-04-16 15:20:36 -070024extern void consistent_free(void *vaddr);
25extern void consistent_sync(void *vaddr, size_t size, int direction);
26extern void consistent_sync_page(struct page *page, unsigned long offset,
27 size_t size, int direction);
28#endif
29
Linus Torvalds1da177e2005-04-16 15:20:36 -070030/* Return the index of the PCI controller for device PDEV. */
31#define pci_controller_num(PDEV) (0)
32
Linus Torvalds1da177e2005-04-16 15:20:36 -070033/*
Lucas De Marchi25985ed2011-03-30 22:57:33 -030034 * These are pretty much arbitrary with the CoMEM implementation.
Linus Torvalds1da177e2005-04-16 15:20:36 -070035 * We have the whole address space to ourselves.
36 */
37#define PCIBIOS_MIN_IO 0x100
38#define PCIBIOS_MIN_MEM 0x00010000
39
Arnd Bergmannd7c4f1b2009-05-13 22:56:31 +000040#endif /* _ASM_FRV_PCI_H */