2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 1992 - 1997, 2000-2003 Silicon Graphics, Inc. All rights reserved.
8 #ifndef _ASM_IA64_SN_PCI_CVLINK_H
9 #define _ASM_IA64_SN_PCI_CVLINK_H
11 #include <asm/sn/types.h>
12 #include <asm/sn/sgi.h>
13 #include <asm/sn/driver.h>
14 #include <asm/sn/iograph.h>
15 #include <asm/param.h>
16 #include <asm/sn/pio.h>
17 #include <asm/sn/xtalk/xwidget.h>
18 #include <asm/sn/sn_private.h>
19 #include <asm/sn/addrs.h>
20 #include <asm/sn/hcl.h>
21 #include <asm/sn/hcl_util.h>
22 #include <asm/sn/intr.h>
23 #include <asm/sn/xtalk/xtalkaddrs.h>
24 #include <asm/sn/klconfig.h>
25 #include <asm/sn/io.h>
27 #include <asm/sn/pci/pciio.h>
28 #include <asm/sn/pci/pcibr.h>
29 #include <asm/sn/pci/pcibr_private.h>
31 #define MAX_PCI_XWIDGET 256
32 #define MAX_ATE_MAPS 1024
34 #define SN_DEVICE_SYSDATA(dev) \
35 ((struct sn_device_sysdata *) \
36 (((struct pci_controller *) ((dev)->sysdata))->platform_data))
38 #define IS_PCI32G(dev) ((dev)->dma_mask >= 0xffffffff)
39 #define IS_PCI32L(dev) ((dev)->dma_mask < 0xffffffff)
41 #define PCIDEV_VERTEX(pci_dev) \
42 ((SN_DEVICE_SYSDATA(pci_dev))->vhdl)
44 struct sn_widget_sysdata
{
48 struct sn_device_sysdata
{
50 pciio_provider_t
*pci_provider
;
51 pciio_intr_t intr_handle
;
52 struct sn_flush_device_list
*dma_flush_list
;
53 pciio_piomap_t pio_map
[PCI_ROM_RESOURCE
];
56 struct ioports_to_tlbs_s
{
70 #endif /* _ASM_IA64_SN_PCI_CVLINK_H */