pci.h 1.3 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9 10 11 12
/* pci.h: FR-V specific PCI declarations
 *
 * Copyright (C) 2003 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells (dhowells@redhat.com)
 * - Derived from include/asm-m68k/pci.h
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 */

13 14
#ifndef _ASM_FRV_PCI_H
#define _ASM_FRV_PCI_H
L
Linus Torvalds 已提交
15 16

#include <linux/mm.h>
C
Christoph Hellwig 已提交
17
#include <linux/scatterlist.h>
L
Linus Torvalds 已提交
18 19 20 21 22 23 24 25 26
#include <asm-generic/pci.h>

struct pci_dev;

#define pcibios_assign_all_busses()	0

extern void pcibios_set_master(struct pci_dev *dev);

#ifdef CONFIG_MMU
A
Al Viro 已提交
27
extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *dma_handle);
L
Linus Torvalds 已提交
28 29 30 31 32 33 34 35 36 37
extern void consistent_free(void *vaddr);
extern void consistent_sync(void *vaddr, size_t size, int direction);
extern void consistent_sync_page(struct page *page, unsigned long offset,
				 size_t size, int direction);
#endif

/* Return the index of the PCI controller for device PDEV. */
#define pci_controller_num(PDEV)	(0)

/*
L
Lucas De Marchi 已提交
38
 *	These are pretty much arbitrary with the CoMEM implementation.
L
Linus Torvalds 已提交
39 40 41 42 43
 *	We have the whole address space to ourselves.
 */
#define PCIBIOS_MIN_IO		0x100
#define PCIBIOS_MIN_MEM		0x00010000

44
#endif /* _ASM_FRV_PCI_H */