pciehprm_nonacpi.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * PCIEHPRM NONACPI: PHP Resource Manager for Non-ACPI/Legacy platform
  3. *
  4. * Copyright (C) 1995,2001 Compaq Computer Corporation
  5. * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
  6. * Copyright (C) 2001 IBM Corp.
  7. * Copyright (C) 2003-2004 Intel Corporation
  8. *
  9. * All rights reserved.
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or (at
  14. * your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful, but
  17. * WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
  19. * NON INFRINGEMENT. See the GNU General Public License for more
  20. * details.
  21. *
  22. * You should have received a copy of the GNU General Public License
  23. * along with this program; if not, write to the Free Software
  24. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  25. *
  26. * Send feedback to <greg@kroah.com>, <kristen.c.accardi@intel.com>
  27. *
  28. */
  29. #ifndef _PCIEHPRM_NONACPI_H_
  30. #define _PCIEHPRM_NONACPI_H_
  31. struct irq_info {
  32. u8 bus, devfn; /* bus, device and function */
  33. struct {
  34. u8 link; /* IRQ line ID, chipset dependent, 0=not routed */
  35. u16 bitmap; /* Available IRQs */
  36. } __attribute__ ((packed)) irq[4];
  37. u8 slot; /* slot number, 0=onboard */
  38. u8 rfu;
  39. } __attribute__ ((packed));
  40. struct irq_routing_table {
  41. u32 signature; /* PIRQ_SIGNATURE should be here */
  42. u16 version; /* PIRQ_VERSION */
  43. u16 size; /* Table size in bytes */
  44. u8 rtr_bus, rtr_devfn; /* Where the interrupt router lies */
  45. u16 exclusive_irqs; /* IRQs devoted exclusively to PCI usage */
  46. u16 rtr_vendor, rtr_device; /* Vendor and device ID of interrupt router */
  47. u32 miniport_data; /* Crap */
  48. u8 rfu[11];
  49. u8 checksum; /* Modulo 256 checksum must give zero */
  50. struct irq_info slots[0];
  51. } __attribute__ ((packed));
  52. #endif /* _PCIEHPRM_NONACPI_H_ */