drv_pcie_rc_intf.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright 2010 Tilera Corporation. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation, version 2.
  7. *
  8. * This program is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
  11. * NON INFRINGEMENT. See the GNU General Public License for
  12. * more details.
  13. */
  14. /**
  15. * @file drv_pcie_rc_intf.h
  16. * Interface definitions for the PCIE Root Complex.
  17. */
  18. #ifndef _SYS_HV_DRV_PCIE_RC_INTF_H
  19. #define _SYS_HV_DRV_PCIE_RC_INTF_H
  20. /** File offset for reading the interrupt base number used for PCIE legacy
  21. interrupts and PLX Gen 1 requirement flag */
  22. #define PCIE_RC_CONFIG_MASK_OFF 0
  23. /**
  24. * Structure used for obtaining PCIe config information, read from the PCIE
  25. * subsystem /ctl file at initialization
  26. */
  27. typedef struct pcie_rc_config
  28. {
  29. int intr; /**< interrupt number used for downcall */
  30. int plx_gen1; /**< flag for PLX Gen 1 configuration */
  31. } pcie_rc_config_t;
  32. #endif /* _SYS_HV_DRV_PCIE_RC_INTF_H */