mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 09:32:33 +03:00
[MTNIC] Minor cleanups of vendor-provided driver for Mellanox 10GigE cards
Drivers are not allowed to call printf(). Converted eprintf() to DBG(), and removed spurious startup banner. Fixed hardcoded inclusion of little_bswap.h Use EIO rather than 1 as an error number.
This commit is contained in:
@@ -57,19 +57,11 @@
|
||||
#define ROUND_TO_CHECK 0x400
|
||||
|
||||
|
||||
/*
|
||||
* Helper macros
|
||||
*/
|
||||
/* Print in case of an error */
|
||||
#define eprintf(fmt, a...) \
|
||||
printf("%s:%d: " fmt "\n", __func__, __LINE__, ##a)
|
||||
|
||||
#define XNOR(x,y) (!(x) == !(y))
|
||||
#define dma_addr_t unsigned long
|
||||
#define PAGE_SIZE 4096
|
||||
#define PAGE_MASK (PAGE_SIZE - 1)
|
||||
#define MTNIC_MAILBOX_SIZE PAGE_SIZE
|
||||
#define MTNIC_ERROR 1
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user