Lines Matching +full:- +full:- +full:disable +full:- +full:attr

1 /* SPDX-License-Identifier: GPL-2.0+ */
5 * Copyright 2015-2016 Freescale Semiconductor, Inc.
35 MC_CMD_OP(cmd, 0, 0, 16, uint16_t, cfg->mac_id)
42 #define DPMAC_RSP_GET_ATTRIBUTES(cmd, attr) \ argument
44 MC_RSP_OP(cmd, 0, 0, 32, int, attr->phy_id);\
45 MC_RSP_OP(cmd, 0, 32, 32, int, attr->id);\
46 MC_RSP_OP(cmd, 1, 32, 8, enum dpmac_link_type, attr->link_type);\
47 MC_RSP_OP(cmd, 1, 40, 8, enum dpmac_eth_if, attr->eth_if);\
48 MC_RSP_OP(cmd, 2, 0, 32, uint32_t, attr->max_rate);\
54 MC_CMD_OP(cmd, 0, 0, 8, uint8_t, cfg->phy_addr); \
55 MC_CMD_OP(cmd, 0, 8, 8, uint8_t, cfg->reg); \
65 MC_CMD_OP(cmd, 0, 0, 8, uint8_t, cfg->phy_addr); \
66 MC_CMD_OP(cmd, 0, 8, 8, uint8_t, cfg->reg); \
67 MC_CMD_OP(cmd, 0, 16, 16, uint16_t, cfg->data); \
73 MC_RSP_OP(cmd, 0, 0, 64, uint64_t, cfg->options); \
74 MC_RSP_OP(cmd, 1, 0, 32, uint32_t, cfg->rate); \
80 MC_CMD_OP(cmd, 0, 0, 64, uint64_t, cfg->options); \
81 MC_CMD_OP(cmd, 1, 0, 32, uint32_t, cfg->rate); \
82 MC_CMD_OP(cmd, 2, 0, 1, int, cfg->up); \
100 * dpmac_open() - Open a control session for the specified object.
122 * dpmac_close() - Close the control session of the object
137 * enum dpmac_link_type - DPMAC link type
151 * enum dpmac_eth_if - DPMAC Ethrnet interface
175 * struct dpmac_cfg - Structure representing DPMAC configuration
179 * MAC IDs for the 1st WRIOP: 1-16,
180 * MAC IDs for the 2nd WRIOP: 17-32.
187 * dpmac_create() - Create the DPMAC object.
215 * dpmac_destroy() - Destroy the DPMAC object and release all its resources.
232 /* IRQ event - indicates a change in link state */
234 /* irq event - Indicates that the link state changed */
238 * struct dpmac_attr - Structure representing DPMAC attributes
243 * @max_rate: Maximum supported rate - in Mbps
255 * dpmac_get_attributes - Retrieve DPMAC attributes.
260 * @attr: Returned object's attributes
267 struct dpmac_attr *attr);
270 * struct dpmac_mdio_cfg - DPMAC MDIO read/write parameters
283 * dpmac_mdio_read() - Perform MDIO read transaction
297 * dpmac_mdio_write() - Perform MDIO write transaction
312 /* Enable auto-negotiation */
314 /* Enable half-duplex mode */
318 /* Enable a-symmetric pause frames */
322 * struct dpmac_link_cfg - Structure representing DPMAC link configuration
323 * @rate: Link's rate - in Mbps
324 * @options: Enable/Disable DPMAC link cfg features (bitmap)
332 * dpmac_get_link_cfg() - Get Ethernet link configuration
346 * struct dpmac_link_state - DPMAC link configuration request
348 * @options: Enable/Disable DPMAC link cfg features (bitmap)
358 * dpmac_set_link_state() - Set the Ethernet link status
372 * enum dpni_counter - DPNI counter types
373 * @DPMAC_CNT_ING_FRAME_64: counts 64-octet frame, good or bad.
374 * @DPMAC_CNT_ING_FRAME_127: counts 65- to 127-octet frame, good or bad.
375 * @DPMAC_CNT_ING_FRAME_255: counts 128- to 255-octet frame, good or bad.
376 * @DPMAC_CNT_ING_FRAME_511: counts 256- to 511-octet frame, good or bad.
377 * @DPMAC_CNT_ING_FRAME_1023: counts 512- to 1023-octet frame, good or bad.
378 * @DPMAC_CNT_ING_FRAME_1518: counts 1024- to 1518-octet frame, good or bad.
379 * @DPMAC_CNT_ING_FRAME_1519_MAX: counts 1519-octet frame and larger
447 * dpmac_get_counter() - Read a specific DPMAC counter
462 * dpmac_get_api_version - Retrieve DPMAC Major and Minor version info.