pci_bus_cvlink.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:2k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /* $Id$
  2.  *
  3.  * This file is subject to the terms and conditions of the GNU General Public
  4.  * License.  See the file "COPYING" in the main directory of this archive
  5.  * for more details.
  6.  *
  7.  * Copyright (C) 1992 - 1997, 2000-2002 Silicon Graphics, Inc. All rights reserved.
  8.  */
  9. #ifndef _ASM_SN_PCI_CVLINK_H
  10. #define _ASM_SN_PCI_CVLINK_H
  11. #include <asm/sn/types.h>
  12. #include <asm/sn/hack.h>
  13. #include <asm/sn/sgi.h>
  14. #include <asm/sn/driver.h>
  15. #include <asm/sn/iograph.h>
  16. #include <asm/param.h>
  17. #include <asm/sn/pio.h>
  18. #include <asm/sn/xtalk/xwidget.h>
  19. #include <asm/sn/sn_private.h>
  20. #include <asm/sn/addrs.h>
  21. #include <asm/sn/invent.h>
  22. #include <asm/sn/hcl.h>
  23. #include <asm/sn/hcl_util.h>
  24. #include <asm/sn/intr.h>
  25. #include <asm/sn/xtalk/xtalkaddrs.h>
  26. #include <asm/sn/klconfig.h>
  27. #include <asm/sn/io.h>
  28. #include <asm/sn/pci/pciio.h>
  29. #include <asm/sn/pci/pcibr.h>
  30. #include <asm/sn/pci/pcibr_private.h>
  31. #define MAX_PCI_XWIDGET 256
  32. #define MAX_ATE_MAPS 1024
  33. #define SET_PCIA64(dev) 
  34. (((struct sn_device_sysdata *)((dev)->sysdata))->isa64) = 1
  35. #define IS_PCIA64(dev) (((dev)->dma_mask == 0xffffffffffffffffUL) || 
  36. (((struct sn_device_sysdata *)((dev)->sysdata))->isa64))
  37. #define IS_PCI32G(dev) ((dev)->dma_mask >= 0xffffffff)
  38. #define IS_PCI32L(dev) ((dev)->dma_mask < 0xffffffff)
  39. #define PCIDEV_VERTEX(pci_dev) 
  40. (((struct sn_device_sysdata *)((pci_dev)->sysdata))->vhdl)
  41. #define PCIBUS_VERTEX(pci_bus) 
  42. (((struct sn_widget_sysdata *)((pci_bus)->sysdata))->vhdl)
  43. struct sn_widget_sysdata {
  44.         devfs_handle_t  vhdl;
  45. };
  46. struct sn_device_sysdata {
  47.         devfs_handle_t  vhdl;
  48. int isa64;
  49. volatile unsigned int *dma_buf_sync;
  50. volatile unsigned int *xbow_buf_sync;
  51. };
  52. struct sn_dma_maps_s{
  53. struct pcibr_dmamap_s dma_map;
  54.         dma_addr_t      dma_addr;
  55. };
  56. struct ioports_to_tlbs_s {
  57. unsigned long p:1,
  58. rv_1:1,
  59. ma:3,
  60. a:1,
  61. d:1,
  62. pl:2,
  63. ar:3,
  64. ppn:38,
  65. rv_2:2,
  66. ed:1,
  67. ig:11;
  68. };
  69. #endif /* _ASM_SN_PCI_CVLINK_H */