1/*-
2 * Copyright (C) 2012 Emulex
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 *
--- 21 unchanged lines hidden (view full) ---
32 * freebsd-drivers@emulex.com
33 *
34 * Emulex
35 * 3333 Susan Street
36 * Costa Mesa, CA 92626
37 */
38
39
40/* $FreeBSD: head/sys/dev/oce/oce_if.h 247880 2013-03-06 09:53:38Z delphij $ */
41
42#include <sys/param.h>
43#include <sys/endian.h>
44#include <sys/module.h>
45#include <sys/kernel.h>
46#include <sys/bus.h>
47#include <sys/mbuf.h>
48#include <sys/rman.h>
--- 43 unchanged lines hidden (view full) ---
92
93/* OCE devices supported by this driver */
94#define PCI_VENDOR_EMULEX 0x10df /* Emulex */
95#define PCI_VENDOR_SERVERENGINES 0x19a2 /* ServerEngines (BE) */
96#define PCI_PRODUCT_BE2 0x0700 /* BE2 network adapter */
97#define PCI_PRODUCT_BE3 0x0710 /* BE3 network adapter */
98#define PCI_PRODUCT_XE201 0xe220 /* XE201 network adapter */
99#define PCI_PRODUCT_XE201_VF 0xe228 /* XE201 with VF in Lancer */
100
101#define IS_BE(sc) (((sc->flags & OCE_FLAGS_BE3) | \
102 (sc->flags & OCE_FLAGS_BE2))? 1:0)
103#define IS_XE201(sc) ((sc->flags & OCE_FLAGS_XE201) ? 1:0)
104#define HAS_A0_CHIP(sc) ((sc->flags & OCE_FLAGS_HAS_A0_CHIP) ? 1:0)
105
106
107/* proportion Service Level Interface queues */
108#define OCE_MAX_UNITS 2
109#define OCE_MAX_PPORT OCE_MAX_UNITS
110#define OCE_MAX_VPORT OCE_MAX_UNITS
111
112extern int mp_ncpus; /* system's total active cpu cores */
113#define OCE_NCPUS mp_ncpus
114
115/* This should be powers of 2. Like 2,4,8 & 16 */
116#define OCE_MAX_RSS 4 /* TODO: 8*/
117#define OCE_LEGACY_MODE_RSS 4 /* For BE3 Legacy mode*/
118
119#define OCE_MIN_RQ 1
120#define OCE_MIN_WQ 1
121
122#define OCE_MAX_RQ OCE_MAX_RSS + 1 /* one default queue */
123#define OCE_MAX_WQ 8
124
125#define OCE_MAX_EQ 32
--- 18 unchanged lines hidden (view full) ---
144#define OCE_DEFAULT_PROMISCUOUS 0
145
146
147#define RSS_ENABLE_IPV4 0x1
148#define RSS_ENABLE_TCP_IPV4 0x2
149#define RSS_ENABLE_IPV6 0x4
150#define RSS_ENABLE_TCP_IPV6 0x8
151
152
153/* flow control definitions */
154#define OCE_FC_NONE 0x00000000
155#define OCE_FC_TX 0x00000001
156#define OCE_FC_RX 0x00000002
157#define OCE_DEFAULT_FLOW_CONTROL (OCE_FC_TX | OCE_FC_RX)
158
159
--- 29 unchanged lines hidden (view full) ---
189 BSWAP_16((x) >> 16))
190#define BSWAP_64(x) ((BSWAP_32(x) << 32) | \
191 BSWAP_32((x) >> 32))
192
193#define for_all_wq_queues(sc, wq, i) \
194 for (i = 0, wq = sc->wq[0]; i < sc->nwqs; i++, wq = sc->wq[i])
195#define for_all_rq_queues(sc, rq, i) \
196 for (i = 0, rq = sc->rq[0]; i < sc->nrqs; i++, rq = sc->rq[i])
197#define for_all_evnt_queues(sc, eq, i) \
198 for (i = 0, eq = sc->eq[0]; i < sc->neqs; i++, eq = sc->eq[i])
199#define for_all_cq_queues(sc, cq, i) \
200 for (i = 0, cq = sc->cq[0]; i < sc->ncqs; i++, cq = sc->cq[i])
201
202
203/* Flash specific */
204#define IOCTL_COOKIE "SERVERENGINES CORP"
--- 461 unchanged lines hidden (view full) ---
666
667struct oce_wq {
668 OCE_LOCK tx_lock;
669 void *parent;
670 oce_ring_buffer_t *ring;
671 struct oce_cq *cq;
672 bus_dma_tag_t tag;
673 struct oce_packet_desc pckts[OCE_WQ_PACKET_ARRAY_SIZE];
674 uint32_t packets_in;
675 uint32_t packets_out;
676 uint32_t wqm_used;
677 boolean_t resched;
678 uint32_t wq_free;
679 uint32_t tx_deferd;
680 uint32_t pkt_drops;
681 qstate_t qstate;
682 uint16_t wq_id;
683 struct wq_config cfg;
684 int queue_index;
685 struct oce_tx_queue_stats tx_stats;
686 struct buf_ring *br;
687 struct task txtask;
688};
689
690struct rq_config {
691 uint32_t q_len;
692 uint32_t frag_size;
693 uint32_t mtu;
694 uint32_t if_id;
695 uint32_t is_rss_queue;
--- 64 unchanged lines hidden (view full) ---
760#define OCE_FLAGS_USING_MSI 0x00000010
761#define OCE_FLAGS_USING_MSIX 0x00000020
762#define OCE_FLAGS_FUNCRESET_RQD 0x00000040
763#define OCE_FLAGS_VIRTUAL_PORT 0x00000080
764#define OCE_FLAGS_MBOX_ENDIAN_RQD 0x00000100
765#define OCE_FLAGS_BE3 0x00000200
766#define OCE_FLAGS_XE201 0x00000400
767#define OCE_FLAGS_BE2 0x00000800
768
769#define OCE_DEV_BE2_CFG_BAR 1
770#define OCE_DEV_CFG_BAR 0
771#define OCE_PCI_CSR_BAR 2
772#define OCE_PCI_DB_BAR 4
773
774typedef struct oce_softc {
775 device_t dev;
--- 52 unchanged lines hidden (view full) ---
828 struct oce_cq *cq[OCE_MAX_CQ]; /* Completion queues */
829 struct oce_eq *eq[OCE_MAX_EQ]; /* Event queues */
830 struct oce_mq *mq; /* Mailbox queue */
831
832 uint32_t neqs;
833 uint32_t ncqs;
834 uint32_t nrqs;
835 uint32_t nwqs;
836
837 uint32_t tx_ring_size;
838 uint32_t rx_ring_size;
839 uint32_t rq_frag_size;
840 uint32_t rss_enable;
841
842 uint32_t if_id; /* interface ID */
843 uint32_t nifs; /* number of adapter interfaces, 0 or 1 */
844 uint32_t pmac_id; /* PMAC id */
845
846 uint32_t if_cap_flags;
847
848 uint32_t flow_control;
--- 19 unchanged lines hidden (view full) ---
868
869
870
871/**************************************************
872 * BUS memory read/write macros
873 * BE3: accesses three BAR spaces (CFG, CSR, DB)
874 * Lancer: accesses one BAR space (CFG)
875 **************************************************/
876#define OCE_READ_REG32(sc, space, o) \
877 ((IS_BE(sc)) ? (bus_space_read_4((sc)->space##_btag, \
878 (sc)->space##_bhandle,o)) \
879 : (bus_space_read_4((sc)->devcfg_btag, \
880 (sc)->devcfg_bhandle,o)))
881#define OCE_READ_REG16(sc, space, o) \
882 ((IS_BE(sc)) ? (bus_space_read_2((sc)->space##_btag, \
883 (sc)->space##_bhandle,o)) \
884 : (bus_space_read_2((sc)->devcfg_btag, \
885 (sc)->devcfg_bhandle,o)))
886#define OCE_READ_REG8(sc, space, o) \
887 ((IS_BE(sc)) ? (bus_space_read_1((sc)->space##_btag, \
888 (sc)->space##_bhandle,o)) \
889 : (bus_space_read_1((sc)->devcfg_btag, \
890 (sc)->devcfg_bhandle,o)))
891
892#define OCE_WRITE_REG32(sc, space, o, v) \
893 ((IS_BE(sc)) ? (bus_space_write_4((sc)->space##_btag, \
894 (sc)->space##_bhandle,o,v)) \
895 : (bus_space_write_4((sc)->devcfg_btag, \
896 (sc)->devcfg_bhandle,o,v)))
897#define OCE_WRITE_REG16(sc, space, o, v) \
898 ((IS_BE(sc)) ? (bus_space_write_2((sc)->space##_btag, \
899 (sc)->space##_bhandle,o,v)) \
900 : (bus_space_write_2((sc)->devcfg_btag, \
901 (sc)->devcfg_bhandle,o,v)))
902#define OCE_WRITE_REG8(sc, space, o, v) \
903 ((IS_BE(sc)) ? (bus_space_write_1((sc)->space##_btag, \
904 (sc)->space##_bhandle,o,v)) \
905 : (bus_space_write_1((sc)->devcfg_btag, \
906 (sc)->devcfg_bhandle,o,v)))
907
908
909/***********************************************************
910 * DMA memory functions
911 ***********************************************************/
912#define oce_dma_sync(d, f) bus_dmamap_sync((d)->tag, (d)->map, f)
913int oce_dma_alloc(POCE_SOFTC sc, bus_size_t size, POCE_DMA_MEM dma, int flags);
914void oce_dma_free(POCE_SOFTC sc, POCE_DMA_MEM dma);
--- 104 unchanged lines hidden (view full) ---
1019int oce_mbox_create_rq(struct oce_rq *rq);
1020int oce_mbox_create_wq(struct oce_wq *wq);
1021int oce_mbox_create_eq(struct oce_eq *eq);
1022int oce_mbox_cq_create(struct oce_cq *cq, uint32_t ncoalesce,
1023 uint32_t is_eventable);
1024int oce_mbox_read_transrecv_data(POCE_SOFTC sc, uint32_t page_num);
1025void oce_mbox_eqd_modify_periodic(POCE_SOFTC sc, struct oce_set_eqd *set_eqd,
1026 int num);
1027void mbx_common_req_hdr_init(struct mbx_hdr *hdr,
1028 uint8_t dom,
1029 uint8_t port,
1030 uint8_t subsys,
1031 uint8_t opcode,
1032 uint32_t timeout, uint32_t pyld_len,
1033 uint8_t version);
1034
--- 32 unchanged lines hidden (view full) ---
1067#define OCE_NO_LOOPBACK 0xff
1068
1069#define atomic_inc_32(x) atomic_add_32(x, 1)
1070#define atomic_dec_32(x) atomic_subtract_32(x, 1)
1071
1072#define LE_64(x) htole64(x)
1073#define LE_32(x) htole32(x)
1074#define LE_16(x) htole16(x)
1075#define DW_SWAP(x, l)
1076#define IS_ALIGNED(x,a) ((x % a) == 0)
1077#define ADDR_HI(x) ((uint32_t)((uint64_t)(x) >> 32))
1078#define ADDR_LO(x) ((uint32_t)((uint64_t)(x) & 0xffffffff));
1079
1080#define IF_LRO_ENABLED(sc) (((sc)->ifp->if_capenable & IFCAP_LRO) ? 1:0)
1081#define IF_LSO_ENABLED(sc) (((sc)->ifp->if_capenable & IFCAP_TSO4) ? 1:0)
1082#define IF_CSUM_ENABLED(sc) (((sc)->ifp->if_capenable & IFCAP_HWCSUM) ? 1:0)
--- 16 unchanged lines hidden (view full) ---
1099 }
1100
1101 if (c == 1)
1102 return b;
1103
1104 return 0;
1105}
1106
1107#define TRANSCEIVER_DATA_NUM_ELE 64
1108#define TRANSCEIVER_DATA_SIZE 256
1109#define TRANSCEIVER_A0_SIZE 128
1110#define TRANSCEIVER_A2_SIZE 128
1111#define PAGE_NUM_A0 0xa0
1112#define PAGE_NUM_A2 0xa2
1113#define IS_QNQ_OR_UMC(sc) ((sc->pvid && (sc->function_mode & FNM_UMC_MODE ))\
1114 || (sc->qnqid && (sc->function_mode & FNM_FLEX10_MODE)))
1115
2 * Copyright (C) 2012 Emulex
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 *
--- 21 unchanged lines hidden (view full) ---
32 * freebsd-drivers@emulex.com
33 *
34 * Emulex
35 * 3333 Susan Street
36 * Costa Mesa, CA 92626
37 */
38
39
40/* $FreeBSD: head/sys/dev/oce/oce_if.h 247880 2013-03-06 09:53:38Z delphij $ */
41
42#include <sys/param.h>
43#include <sys/endian.h>
44#include <sys/module.h>
45#include <sys/kernel.h>
46#include <sys/bus.h>
47#include <sys/mbuf.h>
48#include <sys/rman.h>
--- 43 unchanged lines hidden (view full) ---
92
93/* OCE devices supported by this driver */
94#define PCI_VENDOR_EMULEX 0x10df /* Emulex */
95#define PCI_VENDOR_SERVERENGINES 0x19a2 /* ServerEngines (BE) */
96#define PCI_PRODUCT_BE2 0x0700 /* BE2 network adapter */
97#define PCI_PRODUCT_BE3 0x0710 /* BE3 network adapter */
98#define PCI_PRODUCT_XE201 0xe220 /* XE201 network adapter */
99#define PCI_PRODUCT_XE201_VF 0xe228 /* XE201 with VF in Lancer */
100
101#define IS_BE(sc) (((sc->flags & OCE_FLAGS_BE3) | \
102 (sc->flags & OCE_FLAGS_BE2))? 1:0)
103#define IS_XE201(sc) ((sc->flags & OCE_FLAGS_XE201) ? 1:0)
104#define HAS_A0_CHIP(sc) ((sc->flags & OCE_FLAGS_HAS_A0_CHIP) ? 1:0)
105
106
107/* proportion Service Level Interface queues */
108#define OCE_MAX_UNITS 2
109#define OCE_MAX_PPORT OCE_MAX_UNITS
110#define OCE_MAX_VPORT OCE_MAX_UNITS
111
112extern int mp_ncpus; /* system's total active cpu cores */
113#define OCE_NCPUS mp_ncpus
114
115/* This should be powers of 2. Like 2,4,8 & 16 */
116#define OCE_MAX_RSS 4 /* TODO: 8*/
117#define OCE_LEGACY_MODE_RSS 4 /* For BE3 Legacy mode*/
118
119#define OCE_MIN_RQ 1
120#define OCE_MIN_WQ 1
121
122#define OCE_MAX_RQ OCE_MAX_RSS + 1 /* one default queue */
123#define OCE_MAX_WQ 8
124
125#define OCE_MAX_EQ 32
--- 18 unchanged lines hidden (view full) ---
144#define OCE_DEFAULT_PROMISCUOUS 0
145
146
147#define RSS_ENABLE_IPV4 0x1
148#define RSS_ENABLE_TCP_IPV4 0x2
149#define RSS_ENABLE_IPV6 0x4
150#define RSS_ENABLE_TCP_IPV6 0x8
151
152
153/* flow control definitions */
154#define OCE_FC_NONE 0x00000000
155#define OCE_FC_TX 0x00000001
156#define OCE_FC_RX 0x00000002
157#define OCE_DEFAULT_FLOW_CONTROL (OCE_FC_TX | OCE_FC_RX)
158
159
--- 29 unchanged lines hidden (view full) ---
189 BSWAP_16((x) >> 16))
190#define BSWAP_64(x) ((BSWAP_32(x) << 32) | \
191 BSWAP_32((x) >> 32))
192
193#define for_all_wq_queues(sc, wq, i) \
194 for (i = 0, wq = sc->wq[0]; i < sc->nwqs; i++, wq = sc->wq[i])
195#define for_all_rq_queues(sc, rq, i) \
196 for (i = 0, rq = sc->rq[0]; i < sc->nrqs; i++, rq = sc->rq[i])
197#define for_all_evnt_queues(sc, eq, i) \
198 for (i = 0, eq = sc->eq[0]; i < sc->neqs; i++, eq = sc->eq[i])
199#define for_all_cq_queues(sc, cq, i) \
200 for (i = 0, cq = sc->cq[0]; i < sc->ncqs; i++, cq = sc->cq[i])
201
202
203/* Flash specific */
204#define IOCTL_COOKIE "SERVERENGINES CORP"
--- 461 unchanged lines hidden (view full) ---
666
667struct oce_wq {
668 OCE_LOCK tx_lock;
669 void *parent;
670 oce_ring_buffer_t *ring;
671 struct oce_cq *cq;
672 bus_dma_tag_t tag;
673 struct oce_packet_desc pckts[OCE_WQ_PACKET_ARRAY_SIZE];
674 uint32_t packets_in;
675 uint32_t packets_out;
676 uint32_t wqm_used;
677 boolean_t resched;
678 uint32_t wq_free;
679 uint32_t tx_deferd;
680 uint32_t pkt_drops;
681 qstate_t qstate;
682 uint16_t wq_id;
683 struct wq_config cfg;
684 int queue_index;
685 struct oce_tx_queue_stats tx_stats;
686 struct buf_ring *br;
687 struct task txtask;
688};
689
690struct rq_config {
691 uint32_t q_len;
692 uint32_t frag_size;
693 uint32_t mtu;
694 uint32_t if_id;
695 uint32_t is_rss_queue;
--- 64 unchanged lines hidden (view full) ---
760#define OCE_FLAGS_USING_MSI 0x00000010
761#define OCE_FLAGS_USING_MSIX 0x00000020
762#define OCE_FLAGS_FUNCRESET_RQD 0x00000040
763#define OCE_FLAGS_VIRTUAL_PORT 0x00000080
764#define OCE_FLAGS_MBOX_ENDIAN_RQD 0x00000100
765#define OCE_FLAGS_BE3 0x00000200
766#define OCE_FLAGS_XE201 0x00000400
767#define OCE_FLAGS_BE2 0x00000800
768
769#define OCE_DEV_BE2_CFG_BAR 1
770#define OCE_DEV_CFG_BAR 0
771#define OCE_PCI_CSR_BAR 2
772#define OCE_PCI_DB_BAR 4
773
774typedef struct oce_softc {
775 device_t dev;
--- 52 unchanged lines hidden (view full) ---
828 struct oce_cq *cq[OCE_MAX_CQ]; /* Completion queues */
829 struct oce_eq *eq[OCE_MAX_EQ]; /* Event queues */
830 struct oce_mq *mq; /* Mailbox queue */
831
832 uint32_t neqs;
833 uint32_t ncqs;
834 uint32_t nrqs;
835 uint32_t nwqs;
836
837 uint32_t tx_ring_size;
838 uint32_t rx_ring_size;
839 uint32_t rq_frag_size;
840 uint32_t rss_enable;
841
842 uint32_t if_id; /* interface ID */
843 uint32_t nifs; /* number of adapter interfaces, 0 or 1 */
844 uint32_t pmac_id; /* PMAC id */
845
846 uint32_t if_cap_flags;
847
848 uint32_t flow_control;
--- 19 unchanged lines hidden (view full) ---
868
869
870
871/**************************************************
872 * BUS memory read/write macros
873 * BE3: accesses three BAR spaces (CFG, CSR, DB)
874 * Lancer: accesses one BAR space (CFG)
875 **************************************************/
876#define OCE_READ_REG32(sc, space, o) \
877 ((IS_BE(sc)) ? (bus_space_read_4((sc)->space##_btag, \
878 (sc)->space##_bhandle,o)) \
879 : (bus_space_read_4((sc)->devcfg_btag, \
880 (sc)->devcfg_bhandle,o)))
881#define OCE_READ_REG16(sc, space, o) \
882 ((IS_BE(sc)) ? (bus_space_read_2((sc)->space##_btag, \
883 (sc)->space##_bhandle,o)) \
884 : (bus_space_read_2((sc)->devcfg_btag, \
885 (sc)->devcfg_bhandle,o)))
886#define OCE_READ_REG8(sc, space, o) \
887 ((IS_BE(sc)) ? (bus_space_read_1((sc)->space##_btag, \
888 (sc)->space##_bhandle,o)) \
889 : (bus_space_read_1((sc)->devcfg_btag, \
890 (sc)->devcfg_bhandle,o)))
891
892#define OCE_WRITE_REG32(sc, space, o, v) \
893 ((IS_BE(sc)) ? (bus_space_write_4((sc)->space##_btag, \
894 (sc)->space##_bhandle,o,v)) \
895 : (bus_space_write_4((sc)->devcfg_btag, \
896 (sc)->devcfg_bhandle,o,v)))
897#define OCE_WRITE_REG16(sc, space, o, v) \
898 ((IS_BE(sc)) ? (bus_space_write_2((sc)->space##_btag, \
899 (sc)->space##_bhandle,o,v)) \
900 : (bus_space_write_2((sc)->devcfg_btag, \
901 (sc)->devcfg_bhandle,o,v)))
902#define OCE_WRITE_REG8(sc, space, o, v) \
903 ((IS_BE(sc)) ? (bus_space_write_1((sc)->space##_btag, \
904 (sc)->space##_bhandle,o,v)) \
905 : (bus_space_write_1((sc)->devcfg_btag, \
906 (sc)->devcfg_bhandle,o,v)))
907
908
909/***********************************************************
910 * DMA memory functions
911 ***********************************************************/
912#define oce_dma_sync(d, f) bus_dmamap_sync((d)->tag, (d)->map, f)
913int oce_dma_alloc(POCE_SOFTC sc, bus_size_t size, POCE_DMA_MEM dma, int flags);
914void oce_dma_free(POCE_SOFTC sc, POCE_DMA_MEM dma);
--- 104 unchanged lines hidden (view full) ---
1019int oce_mbox_create_rq(struct oce_rq *rq);
1020int oce_mbox_create_wq(struct oce_wq *wq);
1021int oce_mbox_create_eq(struct oce_eq *eq);
1022int oce_mbox_cq_create(struct oce_cq *cq, uint32_t ncoalesce,
1023 uint32_t is_eventable);
1024int oce_mbox_read_transrecv_data(POCE_SOFTC sc, uint32_t page_num);
1025void oce_mbox_eqd_modify_periodic(POCE_SOFTC sc, struct oce_set_eqd *set_eqd,
1026 int num);
1027void mbx_common_req_hdr_init(struct mbx_hdr *hdr,
1028 uint8_t dom,
1029 uint8_t port,
1030 uint8_t subsys,
1031 uint8_t opcode,
1032 uint32_t timeout, uint32_t pyld_len,
1033 uint8_t version);
1034
--- 32 unchanged lines hidden (view full) ---
1067#define OCE_NO_LOOPBACK 0xff
1068
1069#define atomic_inc_32(x) atomic_add_32(x, 1)
1070#define atomic_dec_32(x) atomic_subtract_32(x, 1)
1071
1072#define LE_64(x) htole64(x)
1073#define LE_32(x) htole32(x)
1074#define LE_16(x) htole16(x)
1075#define DW_SWAP(x, l)
1076#define IS_ALIGNED(x,a) ((x % a) == 0)
1077#define ADDR_HI(x) ((uint32_t)((uint64_t)(x) >> 32))
1078#define ADDR_LO(x) ((uint32_t)((uint64_t)(x) & 0xffffffff));
1079
1080#define IF_LRO_ENABLED(sc) (((sc)->ifp->if_capenable & IFCAP_LRO) ? 1:0)
1081#define IF_LSO_ENABLED(sc) (((sc)->ifp->if_capenable & IFCAP_TSO4) ? 1:0)
1082#define IF_CSUM_ENABLED(sc) (((sc)->ifp->if_capenable & IFCAP_HWCSUM) ? 1:0)
--- 16 unchanged lines hidden (view full) ---
1099 }
1100
1101 if (c == 1)
1102 return b;
1103
1104 return 0;
1105}
1106
1107#define TRANSCEIVER_DATA_NUM_ELE 64
1108#define TRANSCEIVER_DATA_SIZE 256
1109#define TRANSCEIVER_A0_SIZE 128
1110#define TRANSCEIVER_A2_SIZE 128
1111#define PAGE_NUM_A0 0xa0
1112#define PAGE_NUM_A2 0xa2
1113#define IS_QNQ_OR_UMC(sc) ((sc->pvid && (sc->function_mode & FNM_UMC_MODE ))\
1114 || (sc->qnqid && (sc->function_mode & FNM_FLEX10_MODE)))
1115