iPXE
Functions
bofm.c File Reference

IBM BladeCenter Open Fabric Manager (BOFM) More...

#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <ipxe/uaccess.h>
#include <ipxe/list.h>
#include <ipxe/ethernet.h>
#include <ipxe/bofm.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
static LIST_HEAD (bofmdevs)
 List of BOFM devices. More...
 
int bofm_register (struct bofm_device *bofm)
 Register BOFM device. More...
 
void bofm_unregister (struct bofm_device *bofm)
 Unregister BOFM device. More...
 
static struct bofm_devicebofm_find_busdevfn (unsigned int busdevfn)
 Find BOFM device matching PCI bus:dev.fn address. More...
 
int bofm_find_driver (struct pci_device *pci)
 Find BOFM driver for PCI device. More...
 
static int bofm_probe (struct pci_device *pci)
 Probe PCI device for BOFM driver. More...
 
static void bofm_remove (struct pci_device *pci)
 Remove PCI device. More...
 
static size_t bofm_locate_section (userptr_t bofmtab, size_t len, uint32_t magic, struct bofm_section_header *bofmsec)
 Locate BOFM table section. More...
 
static int bofm_en (struct bofm_device *bofm, struct bofm_en *en)
 Process BOFM Ethernet parameter entry. More...
 
int bofm (userptr_t bofmtab, struct pci_device *pci)
 Process BOFM table. More...
 

Detailed Description

IBM BladeCenter Open Fabric Manager (BOFM)

Definition in file bofm.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ LIST_HEAD()

static LIST_HEAD ( bofmdevs  )
static

List of BOFM devices.

◆ bofm_register()

int bofm_register ( struct bofm_device bofm)

Register BOFM device.

Parameters
bofmBOFM device
Return values
rcReturn status code

Definition at line 49 of file bofm.c.

49  {
50 
51  list_add ( &bofm->list, &bofmdevs );
52  DBG ( "BOFM: " PCI_FMT " registered using driver \"%s\"\n",
53  PCI_ARGS ( bofm->pci ), bofm->pci->id->name );
54  return 0;
55 }
#define list_add(new, head)
Add a new entry to the head of a list.
Definition: list.h:69
#define PCI_FMT
PCI device debug message format.
Definition: pci.h:287
int bofm(userptr_t bofmtab, struct pci_device *pci)
Process BOFM table.
Definition: bofm.c:238
#define PCI_ARGS(pci)
PCI device debug message arguments.
Definition: pci.h:290
#define DBG(...)
Print a debugging message.
Definition: compiler.h:498

References bofm(), DBG, list_add, PCI_ARGS, and PCI_FMT.

Referenced by hermon_bofm_probe().

◆ bofm_unregister()

void bofm_unregister ( struct bofm_device bofm)

Unregister BOFM device.

Parameters
bofmBOFM device

Definition at line 62 of file bofm.c.

62  {
63 
64  list_del ( &bofm->list );
65  DBG ( "BOFM: " PCI_FMT " unregistered\n", PCI_ARGS ( bofm->pci ) );
66 }
#define list_del(list)
Delete an entry from a list.
Definition: list.h:119
#define PCI_FMT
PCI device debug message format.
Definition: pci.h:287
int bofm(userptr_t bofmtab, struct pci_device *pci)
Process BOFM table.
Definition: bofm.c:238
#define PCI_ARGS(pci)
PCI device debug message arguments.
Definition: pci.h:290
#define DBG(...)
Print a debugging message.
Definition: compiler.h:498

References bofm(), DBG, list_del, PCI_ARGS, and PCI_FMT.

Referenced by hermon_bofm_remove().

◆ bofm_find_busdevfn()

static struct bofm_device* bofm_find_busdevfn ( unsigned int  busdevfn)
static

Find BOFM device matching PCI bus:dev.fn address.

Parameters
busdevfnPCI bus:dev.fn address
Return values
bofmBOFM device, or NULL

Definition at line 74 of file bofm.c.

74  {
75  struct bofm_device *bofm;
76 
77  list_for_each_entry ( bofm, &bofmdevs, list ) {
78  if ( bofm->pci->busdevfn == busdevfn )
79  return bofm;
80  }
81  return NULL;
82 }
struct list_head list
List of BOFM devices.
Definition: bofm.h:292
#define list_for_each_entry(pos, head, member)
Iterate over entries in a list.
Definition: list.h:420
A BOFM device.
Definition: bofm.h:286
int bofm(userptr_t bofmtab, struct pci_device *pci)
Process BOFM table.
Definition: bofm.c:238
#define NULL
NULL pointer (VOID *)
Definition: Base.h:362

References bofm(), bofm_device::list, list_for_each_entry, and NULL.

Referenced by bofm().

◆ bofm_find_driver()

int bofm_find_driver ( struct pci_device pci)

Find BOFM driver for PCI device.

Parameters
pciPCI device
Return values
rcReturn status code

Definition at line 90 of file bofm.c.

90  {
91  struct pci_driver *driver;
92  struct pci_device_id *id;
93  unsigned int i;
94 
96  for ( i = 0 ; i < driver->id_count ; i++ ) {
97  id = &driver->ids[i];
98  if ( ( id->vendor == pci->vendor ) &&
99  ( id->device == pci->device ) ) {
100  pci_set_driver ( pci, driver, id );
101  return 0;
102  }
103  }
104  }
105  return -ENOENT;
106 }
A PCI driver.
Definition: pci.h:224
unsigned int id_count
Number of entries in PCI ID table.
Definition: pci.h:228
struct pci_device_id * ids
PCI ID table.
Definition: pci.h:226
static void pci_set_driver(struct pci_device *pci, struct pci_driver *driver, struct pci_device_id *id)
Set PCI driver.
Definition: pci.h:324
#define ENOENT
No such file or directory.
Definition: errno.h:514
uint16_t device
Device ID.
Definition: pci.h:204
uint8_t id
Request identifier.
Definition: ena.h:12
#define for_each_table_entry(pointer, table)
Iterate through all entries within a linker table.
Definition: tables.h:358
A PCI device ID list entry.
Definition: pci.h:151
uint16_t vendor
Vendor ID.
Definition: pci.h:202
#define BOFM_DRIVERS
BOFM driver table.
Definition: bofm.h:318

References BOFM_DRIVERS, pci_device::device, ENOENT, for_each_table_entry, id, pci_driver::id_count, pci_driver::ids, pci_set_driver(), and pci_device::vendor.

Referenced by bofm(), and efi_bofm_supported().

◆ bofm_probe()

static int bofm_probe ( struct pci_device pci)
static

Probe PCI device for BOFM driver.

Parameters
pciPCI device
Return values
rcReturn status code

Definition at line 114 of file bofm.c.

114  {
115  int rc;
116 
117  /* Probe device */
118  if ( ( rc = pci_probe ( pci ) ) != 0 ) {
119  DBG ( "BOFM: " PCI_FMT " could not load driver: %s\n",
120  PCI_ARGS ( pci ), strerror ( rc ) );
121  return rc;
122  }
123 
124  return 0;
125 }
struct arbelprm_rc_send_wqe rc
Definition: arbel.h:14
char * strerror(int errno)
Retrieve string representation of error number.
Definition: strerror.c:78
#define PCI_FMT
PCI device debug message format.
Definition: pci.h:287
#define PCI_ARGS(pci)
PCI device debug message arguments.
Definition: pci.h:290
#define DBG(...)
Print a debugging message.
Definition: compiler.h:498
int pci_probe(struct pci_device *pci)
Probe a PCI device.
Definition: pci.c:286

References DBG, PCI_ARGS, PCI_FMT, pci_probe(), rc, and strerror().

Referenced by bofm().

◆ bofm_remove()

static void bofm_remove ( struct pci_device pci)
static

Remove PCI device.

Parameters
pciPCI device

Definition at line 132 of file bofm.c.

132  {
133 
134  /* Note that the IBM BIOS may re-read the expansion ROM after
135  * the BOFM initialisation call. The BOFM driver must ensure
136  * that the card is left in a state in which expansion ROM
137  * reads will succeed. (For example, if a card contains an
138  * embedded CPU that may issue reads to the same underlying
139  * flash device, and these reads are not locked against reads
140  * via the expansion ROM BAR, then the CPU must be stopped.)
141  *
142  * If this is not done, then occasional corrupted reads from
143  * the expansion ROM will be seen, and the BIOS may complain
144  * about a ROM checksum error.
145  */
146  pci_remove ( pci );
147  DBG ( "BOFM: " PCI_FMT " removed\n", PCI_ARGS ( pci ) );
148 }
#define PCI_FMT
PCI device debug message format.
Definition: pci.h:287
void pci_remove(struct pci_device *pci)
Remove a PCI device.
Definition: pci.c:308
#define PCI_ARGS(pci)
PCI device debug message arguments.
Definition: pci.h:290
#define DBG(...)
Print a debugging message.
Definition: compiler.h:498

References DBG, PCI_ARGS, PCI_FMT, and pci_remove().

Referenced by bofm().

◆ bofm_locate_section()

static size_t bofm_locate_section ( userptr_t  bofmtab,
size_t  len,
uint32_t  magic,
struct bofm_section_header bofmsec 
)
static

Locate BOFM table section.

Parameters
bofmtabBOFM table
lenLength of BOFM table
magicSection magic
bofmsecBOFM section header to fill in
Return values
offsetOffset to section, or 0 if not found

Definition at line 159 of file bofm.c.

161  {
162  size_t offset = sizeof ( struct bofm_global_header );
163 
164  while ( offset < len ) {
165  copy_from_user ( bofmsec, bofmtab, offset,
166  sizeof ( *bofmsec ) );
167  if ( bofmsec->magic == magic )
168  return offset;
169  if ( bofmsec->magic == BOFM_DONE_MAGIC )
170  break;
171  offset += ( sizeof ( *bofmsec ) + bofmsec->length );
172  }
173  return 0;
174 }
static __always_inline void copy_from_user(void *dest, userptr_t src, off_t src_off, size_t len)
Copy data from user buffer.
Definition: uaccess.h:337
uint32_t magic
Magic signature.
Definition: fdt.h:12
uint32_t magic
Signature.
Definition: bofm.h:137
uint16_t length
Length.
Definition: bofm.h:139
static userptr_t size_t offset
Offset of the first segment within the content.
Definition: deflate.h:259
#define BOFM_DONE_MAGIC
End marker.
Definition: bofm.h:154
BOFM table header.
Definition: bofm.h:77
uint32_t len
Length.
Definition: ena.h:14

References BOFM_DONE_MAGIC, copy_from_user(), len, bofm_section_header::length, magic, bofm_section_header::magic, and offset.

Referenced by bofm().

◆ bofm_en()

static int bofm_en ( struct bofm_device bofm,
struct bofm_en en 
)
static

Process BOFM Ethernet parameter entry.

Parameters
bofmBOFM device
enEN parameter entry
Return values
rcReturn status code

Definition at line 183 of file bofm.c.

183  {
184  uint8_t mac[6];
185  int rc;
186 
187  /* Retrieve current MAC address */
188  if ( ( rc = bofm->op->harvest ( bofm, en->mport, mac ) ) != 0 ) {
189  DBG ( "BOFM: " PCI_FMT " mport %d could not harvest: %s\n",
190  PCI_ARGS ( bofm->pci ), en->mport, strerror ( rc ) );
191  return rc;
192  }
193 
194  /* Harvest MAC address if necessary */
195  if ( en->options & BOFM_EN_RQ_HVST_MASK ) {
196  DBG ( "BOFM: " PCI_FMT " mport %d harvested MAC %s\n",
197  PCI_ARGS ( bofm->pci ), en->mport, eth_ntoa ( mac ) );
198  memcpy ( en->mac_a, mac, sizeof ( en->mac_a ) );
200  }
201 
202  /* Mark as changed if necessary */
203  if ( ( en->options & BOFM_EN_EN_A ) &&
204  ( memcmp ( en->mac_a, mac, sizeof ( en->mac_a ) ) != 0 ) ) {
205  DBG ( "BOFM: " PCI_FMT " mport %d MAC %s",
206  PCI_ARGS ( bofm->pci ), en->mport, eth_ntoa ( mac ) );
207  DBG ( " changed to %s\n", eth_ntoa ( en->mac_a ) );
209  }
210 
211  /* Apply MAC address if necessary */
212  if ( ( en->options & BOFM_EN_EN_A ) &&
213  ( en->options & BOFM_EN_USAGE_ENTRY ) &&
214  ( ! ( en->options & BOFM_EN_USAGE_HARVEST ) ) ) {
215  DBG ( "BOFM: " PCI_FMT " mport %d applied MAC %s\n",
216  PCI_ARGS ( bofm->pci ), en->mport,
217  eth_ntoa ( en->mac_a ) );
218  memcpy ( mac, en->mac_a, sizeof ( mac ) );
219  }
220 
221  /* Store MAC address */
222  if ( ( rc = bofm->op->update ( bofm, en->mport, mac ) ) != 0 ) {
223  DBG ( "BOFM: " PCI_FMT " mport %d could not update: %s\n",
224  PCI_ARGS ( bofm->pci ), en->mport, strerror ( rc ) );
225  return rc;
226  }
227 
228  return 0;
229 }
struct bofm_en en
Definition: bofm_test.c:45
struct arbelprm_rc_send_wqe rc
Definition: arbel.h:14
#define BOFM_EN_EN_A
MAC address A is present.
Definition: bofm.h:225
#define BOFM_EN_USAGE_HARVEST
Ignore values - it's harvest time.
Definition: bofm.h:252
uint8_t mac[ETH_ALEN]
MAC address.
Definition: ena.h:24
uint8_t mport
Multi-port index.
Definition: bofm.h:182
void * memcpy(void *dest, const void *src, size_t len) __nonnull
#define BOFM_EN_CHG_CHANGED
Consumed entry is different than previous active entry.
Definition: bofm.h:249
uint16_t options
Options.
Definition: bofm.h:165
char * strerror(int errno)
Retrieve string representation of error number.
Definition: strerror.c:78
#define PCI_FMT
PCI device debug message format.
Definition: pci.h:287
const char * eth_ntoa(const void *ll_addr)
Transcribe Ethernet address.
Definition: ethernet.c:175
#define BOFM_EN_HVST
Harvest complete.
Definition: bofm.h:261
#define BOFM_EN_RQ_HVST_MASK
Harvest request mask.
Definition: bofm.h:264
unsigned char uint8_t
Definition: stdint.h:10
#define BOFM_EN_USAGE_ENTRY
Use entry values for assignment.
Definition: bofm.h:255
uint8_t mac_a[6]
MAC address A.
Definition: bofm.h:190
int bofm(userptr_t bofmtab, struct pci_device *pci)
Process BOFM table.
Definition: bofm.c:238
#define PCI_ARGS(pci)
PCI device debug message arguments.
Definition: pci.h:290
#define DBG(...)
Print a debugging message.
Definition: compiler.h:498
int memcmp(const void *first, const void *second, size_t len)
Compare memory regions.
Definition: string.c:113

References bofm(), BOFM_EN_CHG_CHANGED, BOFM_EN_EN_A, BOFM_EN_HVST, BOFM_EN_RQ_HVST_MASK, BOFM_EN_USAGE_ENTRY, BOFM_EN_USAGE_HARVEST, DBG, en, eth_ntoa(), mac, bofm_en::mac_a, memcmp(), memcpy(), bofm_en::mport, bofm_en::options, PCI_ARGS, PCI_FMT, rc, and strerror().

◆ bofm()

int bofm ( userptr_t  bofmtab,
struct pci_device pci 
)

Process BOFM table.

Parameters
bofmtabBOFM table
pciPCI device
Return values
bofmrcBOFM return status

Definition at line 238 of file bofm.c.

238  {
239  struct bofm_global_header bofmhdr;
240  struct bofm_section_header bofmsec;
241  struct bofm_en en;
242  struct bofm_device *bofm;
243  size_t en_region_offset;
244  size_t en_offset;
245  int skip;
246  int rc;
247  int bofmrc;
248 
249  /* Read BOFM structure */
250  copy_from_user ( &bofmhdr, bofmtab, 0, sizeof ( bofmhdr ) );
251  if ( bofmhdr.magic != BOFM_IOAA_MAGIC ) {
252  DBG ( "BOFM: invalid table signature " BOFM_MAGIC_FMT "\n",
253  BOFM_MAGIC_ARGS ( bofmhdr.magic ) );
254  bofmrc = BOFM_ERR_INVALID_ACTION;
255  goto err_bad_signature;
256  }
257  DBG ( "BOFM: " BOFM_MAGIC_FMT " (profile \"%s\")\n",
258  BOFM_MAGIC_ARGS ( bofmhdr.action ), bofmhdr.profile );
259 
260  /* Determine whether or not we should skip normal POST
261  * initialisation.
262  */
263  switch ( bofmhdr.action ) {
264  case BOFM_ACTION_UPDT:
265  case BOFM_ACTION_DFLT:
266  case BOFM_ACTION_HVST:
267  skip = BOFM_SKIP_INIT;
268  break;
269  case BOFM_ACTION_PARM:
270  case BOFM_ACTION_NONE:
271  skip = 0;
272  break;
273  default:
274  DBG ( "BOFM: invalid action " BOFM_MAGIC_FMT "\n",
275  BOFM_MAGIC_ARGS ( bofmhdr.action ) );
276  bofmrc = BOFM_ERR_INVALID_ACTION;
277  goto err_bad_action;
278  }
279 
280  /* Find BOFM driver */
281  if ( ( rc = bofm_find_driver ( pci ) ) != 0 ) {
282  DBG ( "BOFM: " PCI_FMT " has no driver\n", PCI_ARGS ( pci ) );
283  bofmrc = BOFM_ERR_DEVICE_ERROR;
284  goto err_find_driver;
285  }
286 
287  /* Probe driver for PCI device */
288  if ( ( rc = bofm_probe ( pci ) ) != 0 ) {
289  bofmrc = BOFM_ERR_DEVICE_ERROR;
290  goto err_probe;
291  }
292 
293  /* Locate EN section, if present */
294  en_region_offset = bofm_locate_section ( bofmtab, bofmhdr.length,
295  BOFM_EN_MAGIC, &bofmsec );
296  if ( ! en_region_offset ) {
297  DBG ( "BOFM: No EN section found\n" );
298  bofmrc = ( BOFM_SUCCESS | skip );
299  goto err_no_en_section;
300  }
301 
302  /* Iterate through EN entries */
303  for ( en_offset = ( en_region_offset + sizeof ( bofmsec ) ) ;
304  en_offset < ( en_region_offset + sizeof ( bofmsec ) +
305  bofmsec.length ) ; en_offset += sizeof ( en ) ) {
306  copy_from_user ( &en, bofmtab, en_offset, sizeof ( en ) );
307  DBG2 ( "BOFM: EN entry found:\n" );
308  DBG2_HDA ( en_offset, &en, sizeof ( en ) );
309  if ( ( en.options & BOFM_EN_MAP_MASK ) != BOFM_EN_MAP_PFA ) {
310  DBG ( "BOFM: slot %d port %d has no PCI mapping\n",
311  en.slot, ( en.port + 1 ) );
312  continue;
313  }
314  DBG ( "BOFM: slot %d port %d%s is " PCI_FMT " mport %d\n",
315  en.slot, ( en.port + 1 ),
316  ( ( en.slot || en.port ) ? "" : "(?)" ), 0,
318  PCI_FUNC ( en.busdevfn ), en.mport );
320  if ( ! bofm ) {
321  DBG ( "BOFM: " PCI_FMT " mport %d ignored\n", 0,
323  PCI_FUNC ( en.busdevfn ), en.mport );
324  continue;
325  }
326  if ( ( rc = bofm_en ( bofm, &en ) ) == 0 ) {
328  } else {
330  }
331  DBG2 ( "BOFM: EN entry after processing:\n" );
332  DBG2_HDA ( en_offset, &en, sizeof ( en ) );
333  copy_to_user ( bofmtab, en_offset, &en, sizeof ( en ) );
334  }
335 
336  bofmrc = ( BOFM_SUCCESS | skip );
337 
338  err_no_en_section:
339  bofm_remove ( pci );
340  err_probe:
341  err_find_driver:
342  err_bad_action:
343  err_bad_signature:
344  return bofmrc;
345 }
#define PCI_FUNC(busdevfn)
Definition: pci.h:258
struct bofm_en en
Definition: bofm_test.c:45
#define PCI_BUS(busdevfn)
Definition: pci.h:256
struct arbelprm_rc_send_wqe rc
Definition: arbel.h:14
static void bofm_remove(struct pci_device *pci)
Remove PCI device.
Definition: bofm.c:132
uint8_t slot
Slot or mezzanine number.
Definition: bofm.h:175
#define BOFM_EN_CSM_FAILED
Entry has been used but failed.
Definition: bofm.h:240
static __always_inline void copy_from_user(void *dest, userptr_t src, off_t src_off, size_t len)
Copy data from user buffer.
Definition: uaccess.h:337
#define BOFM_EN_MAGIC
EN start marker.
Definition: bofm.h:151
struct pci_device * pci
Underlying PCI device.
Definition: bofm.h:288
#define BOFM_SUCCESS
Successful.
Definition: bofm.h:47
#define BOFM_ACTION_UPDT
Update MAC/WWN.
Definition: bofm.h:114
uint8_t mport
Multi-port index.
Definition: bofm.h:182
#define BOFM_MAGIC_FMT
BOFM magic value debug message format.
Definition: bofm.h:278
#define BOFM_SKIP_INIT
Skip option ROM initialisation.
Definition: bofm.h:70
#define BOFM_EN_MAP_PFA
Port mapping is by PCI bus:dev.fn.
Definition: bofm.h:213
#define BOFM_ACTION_NONE
Just initialise the device.
Definition: bofm.h:126
uint16_t busdevfn
PCI bus:dev.fn.
Definition: bofm.h:170
#define BOFM_IOAA_MAGIC
BOFM table header signature.
Definition: bofm.h:103
static int bofm_probe(struct pci_device *pci)
Probe PCI device for BOFM driver.
Definition: bofm.c:114
uint16_t options
Options.
Definition: bofm.h:165
#define BOFM_ERR_DEVICE_ERROR
Device error prohibited MAC/WWN update.
Definition: bofm.h:56
BOFM table header.
Definition: bofm.h:77
#define PCI_FMT
PCI device debug message format.
Definition: pci.h:287
#define DBG2_HDA(...)
Definition: compiler.h:516
#define PCI_SLOT(busdevfn)
Definition: pci.h:257
static __always_inline void copy_to_user(userptr_t dest, off_t dest_off, const void *src, size_t len)
Copy data to user buffer.
Definition: uaccess.h:324
#define BOFM_MAGIC_ARGS(magic)
BOFM magic value debug message arguments.
Definition: bofm.h:281
A BOFM device.
Definition: bofm.h:286
static struct bofm_device * bofm_find_busdevfn(unsigned int busdevfn)
Find BOFM device matching PCI bus:dev.fn address.
Definition: bofm.c:74
#define BOFM_ACTION_PARM
Update MAC/WWN and initialise device.
Definition: bofm.h:123
BOFM section header.
Definition: bofm.h:135
uint8_t port
Port number.
Definition: bofm.h:180
static size_t bofm_locate_section(userptr_t bofmtab, size_t len, uint32_t magic, struct bofm_section_header *bofmsec)
Locate BOFM table section.
Definition: bofm.c:159
#define BOFM_EN_MAP_MASK
Port mapping mask.
Definition: bofm.h:210
int bofm(userptr_t bofmtab, struct pci_device *pci)
Process BOFM table.
Definition: bofm.c:238
BOFM Ethernet parameter entry.
Definition: bofm.h:163
#define PCI_ARGS(pci)
PCI device debug message arguments.
Definition: pci.h:290
#define BOFM_ERR_INVALID_ACTION
Invalid action string.
Definition: bofm.h:50
int bofm_find_driver(struct pci_device *pci)
Find BOFM driver for PCI device.
Definition: bofm.c:90
#define BOFM_EN_CSM_SUCCESS
Entry has been used successfully.
Definition: bofm.h:237
#define DBG(...)
Print a debugging message.
Definition: compiler.h:498
#define BOFM_ACTION_HVST
Harvest MAC/WWN.
Definition: bofm.h:120
#define BOFM_ACTION_DFLT
Restore MAC/WWN to factory default.
Definition: bofm.h:117
#define DBG2(...)
Definition: compiler.h:515

References bofm_global_header::action, bofm(), BOFM_ACTION_DFLT, BOFM_ACTION_HVST, BOFM_ACTION_NONE, BOFM_ACTION_PARM, BOFM_ACTION_UPDT, BOFM_EN_CSM_FAILED, BOFM_EN_CSM_SUCCESS, BOFM_EN_MAGIC, BOFM_EN_MAP_MASK, BOFM_EN_MAP_PFA, BOFM_ERR_DEVICE_ERROR, BOFM_ERR_INVALID_ACTION, bofm_find_busdevfn(), bofm_find_driver(), BOFM_IOAA_MAGIC, bofm_locate_section(), BOFM_MAGIC_ARGS, BOFM_MAGIC_FMT, bofm_probe(), bofm_remove(), BOFM_SKIP_INIT, BOFM_SUCCESS, bofm_en::busdevfn, copy_from_user(), copy_to_user(), DBG, DBG2, DBG2_HDA, en, bofm_global_header::length, bofm_section_header::length, bofm_global_header::magic, bofm_en::mport, bofm_en::options, bofm_device::pci, PCI_ARGS, PCI_BUS, PCI_FMT, PCI_FUNC, PCI_SLOT, bofm_en::port, bofm_global_header::profile, rc, and bofm_en::slot.

Referenced by bofm(), bofm_en(), bofm_find_busdevfn(), bofm_init(), bofm_register(), bofm_test(), bofm_unregister(), efi_bofm_start(), hermon_bofm_harvest(), and hermon_bofm_update().