pcifw.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
  3. * All rights reserved
  4. * www.brocade.com
  5. *
  6. * Linux driver for Brocade Fibre Channel Host Bus Adapter.
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License (GPL) Version 2 as
  10. * published by the Free Software Foundation
  11. *
  12. * This program is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. */
  17. /**
  18. * pcifw.h PCI FW related headers
  19. */
  20. #ifndef __PCIFW_H__
  21. #define __PCIFW_H__
  22. #pragma pack(1)
  23. struct pnp_hdr_s{
  24. u32 signature; /* "$PnP" */
  25. u8 rev; /* Struct revision */
  26. u8 len; /* Header structure len in multiples
  27. * of 16 bytes */
  28. u16 off; /* Offset to next header 00 if none */
  29. u8 rsvd; /* Reserved byte */
  30. u8 cksum; /* 8-bit checksum for this header */
  31. u32 pnp_dev_id; /* PnP Device Id */
  32. u16 mfstr; /* Pointer to manufacturer string */
  33. u16 prstr; /* Pointer to product string */
  34. u8 devtype[3]; /* Device Type Code */
  35. u8 devind; /* Device Indicator */
  36. u16 bcventr; /* Bootstrap entry vector */
  37. u16 rsvd2; /* Reserved */
  38. u16 sriv; /* Static resource information vector */
  39. };
  40. struct pci_3_0_ds_s{
  41. u32 sig; /* Signature "PCIR" */
  42. u16 vendid; /* Vendor ID */
  43. u16 devid; /* Device ID */
  44. u16 devlistoff; /* Device List Offset */
  45. u16 len; /* PCI Data Structure Length */
  46. u8 rev; /* PCI Data Structure Revision */
  47. u8 clcode[3]; /* Class Code */
  48. u16 imglen; /* Code image length in multiples of
  49. * 512 bytes */
  50. u16 coderev; /* Revision level of code/data */
  51. u8 codetype; /* Code type 0x00 - BIOS */
  52. u8 indr; /* Last image indicator */
  53. u16 mrtimglen; /* Max Run Time Image Length */
  54. u16 cuoff; /* Config Utility Code Header Offset */
  55. u16 dmtfclp; /* DMTF CLP entry point offset */
  56. };
  57. struct pci_optrom_hdr_s{
  58. u16 sig; /* Signature 0x55AA */
  59. u8 len; /* Option ROM length in units of 512 bytes */
  60. u8 inivec[3]; /* Initialization vector */
  61. u8 rsvd[16]; /* Reserved field */
  62. u16 verptr; /* Pointer to version string - private */
  63. u16 pcids; /* Pointer to PCI data structure */
  64. u16 pnphdr; /* Pointer to PnP expansion header */
  65. };
  66. #pragma pack()
  67. #endif