From cc9d445005a329e4c07541d13f12ccefd49a2e39 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Sun, 24 Apr 2022 22:54:04 -0700 Subject: [PATCH] Move driver-specific code out of mqnic_hw.h Signed-off-by: Alex Forencich --- modules/mqnic/mqnic.h | 8 ++++++++ modules/mqnic/mqnic_hw.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/mqnic/mqnic.h b/modules/mqnic/mqnic.h index bf9738d67..8f22c505a 100644 --- a/modules/mqnic/mqnic.h +++ b/modules/mqnic/mqnic.h @@ -58,6 +58,14 @@ #include "mqnic_hw.h" +#ifdef CONFIG_OF +/* platform driver OF-related definitions */ +#define MQNIC_PROP_MAC_ADDR_INC_BYTE "mac-address-increment-byte" +#define MQNIC_PROP_MAC_ADDR_INC "mac-address-increment" +#define MQNIC_PROP_MAC_ADDR_LOCAL "mac-address-local" +#define MQNIC_PROP_MODULE_EEPROM "module-eeproms" +#endif + extern unsigned int mqnic_num_ev_queue_entries; extern unsigned int mqnic_num_tx_queue_entries; extern unsigned int mqnic_num_rx_queue_entries; diff --git a/modules/mqnic/mqnic_hw.h b/modules/mqnic/mqnic_hw.h index e789608b4..496b560dc 100644 --- a/modules/mqnic/mqnic_hw.h +++ b/modules/mqnic/mqnic_hw.h @@ -38,14 +38,6 @@ #include -#ifdef CONFIG_OF -/* platform driver OF-related definitions */ -#define MQNIC_PROP_MAC_ADDR_INC_BYTE "mac-address-increment-byte" -#define MQNIC_PROP_MAC_ADDR_INC "mac-address-increment" -#define MQNIC_PROP_MAC_ADDR_LOCAL "mac-address-local" -#define MQNIC_PROP_MODULE_EEPROM "module-eeproms" -#endif - #define MQNIC_MAX_IRQ 32 #define MQNIC_MAX_IF 8