diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2020-03-27 11:19:33 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-27 15:36:56 -0700 |
commit | 4e2b5aa5676bf969b6e9fe936852caf2d583d47f (patch) | |
tree | 045dd6bc2e70b2f6c04aa05f99126f57f4fe0f35 /drivers/s390/net/qeth_core_mpc.h | |
parent | 5f4019a808399431636aa2adcb3aed611dbd2cd7 (diff) | |
download | lwn-4e2b5aa5676bf969b6e9fe936852caf2d583d47f.tar.gz lwn-4e2b5aa5676bf969b6e9fe936852caf2d583d47f.zip |
s390/qeth: make OSN / OSX support configurable
The last machine generation that supports OSN is z13, and OSX is only
supported up to z14. Allow users and distros to decide whether they
still need support for these device types.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_core_mpc.h')
-rw-r--r-- | drivers/s390/net/qeth_core_mpc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/s390/net/qeth_core_mpc.h b/drivers/s390/net/qeth_core_mpc.h index 6f304fdbb073..d89a04bfd8b0 100644 --- a/drivers/s390/net/qeth_core_mpc.h +++ b/drivers/s390/net/qeth_core_mpc.h @@ -74,8 +74,19 @@ enum qeth_card_types { #define IS_IQD(card) ((card)->info.type == QETH_CARD_TYPE_IQD) #define IS_OSD(card) ((card)->info.type == QETH_CARD_TYPE_OSD) #define IS_OSM(card) ((card)->info.type == QETH_CARD_TYPE_OSM) + +#ifdef CONFIG_QETH_OSN #define IS_OSN(card) ((card)->info.type == QETH_CARD_TYPE_OSN) +#else +#define IS_OSN(card) false +#endif + +#ifdef CONFIG_QETH_OSX #define IS_OSX(card) ((card)->info.type == QETH_CARD_TYPE_OSX) +#else +#define IS_OSX(card) false +#endif + #define IS_VM_NIC(card) ((card)->info.is_vm_nic) #define QETH_MPC_DIFINFO_LEN_INDICATES_LINK_TYPE 0x18 |