2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
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
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.
19 * pcifw.h PCI FW related headers
28 u32 signature
; /* "$PnP" */
29 u8 rev
; /* Struct revision */
30 u8 len
; /* Header structure len in multiples
32 u16 off
; /* Offset to next header 00 if none */
33 u8 rsvd
; /* Reserved byte */
34 u8 cksum
; /* 8-bit checksum for this header */
35 u32 pnp_dev_id
; /* PnP Device Id */
36 u16 mfstr
; /* Pointer to manufacturer string */
37 u16 prstr
; /* Pointer to product string */
38 u8 devtype
[3]; /* Device Type Code */
39 u8 devind
; /* Device Indicator */
40 u16 bcventr
; /* Bootstrap entry vector */
41 u16 rsvd2
; /* Reserved */
42 u16 sriv
; /* Static resource information vector */
46 u32 sig
; /* Signature "PCIR" */
47 u16 vendid
; /* Vendor ID */
48 u16 devid
; /* Device ID */
49 u16 devlistoff
; /* Device List Offset */
50 u16 len
; /* PCI Data Structure Length */
51 u8 rev
; /* PCI Data Structure Revision */
52 u8 clcode
[3]; /* Class Code */
53 u16 imglen
; /* Code image length in multiples of
55 u16 coderev
; /* Revision level of code/data */
56 u8 codetype
; /* Code type 0x00 - BIOS */
57 u8 indr
; /* Last image indicator */
58 u16 mrtimglen
; /* Max Run Time Image Length */
59 u16 cuoff
; /* Config Utility Code Header Offset */
60 u16 dmtfclp
; /* DMTF CLP entry point offset */
63 struct pci_optrom_hdr_s
{
64 u16 sig
; /* Signature 0x55AA */
65 u8 len
; /* Option ROM length in units of 512 bytes */
66 u8 inivec
[3]; /* Initialization vector */
67 u8 rsvd
[16]; /* Reserved field */
68 u16 verptr
; /* Pointer to version string - private */
69 u16 pcids
; /* Pointer to PCI data structure */
70 u16 pnphdr
; /* Pointer to PnP expansion header */