cvmx-mgmt-port.h (215990) | cvmx-mgmt-port.h (217214) |
---|---|
1/***********************license start*************** 2 * Copyright (c) 2003-2010 Cavium Networks (support@cavium.com). All rights 3 * reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: --- 120 unchanged lines hidden (view full) --- 129 * @param port Management port 130 * @param packet_len Length of the packet to send. It does not include the final CRC 131 * @param buffer Packet data 132 * 133 * @return CVMX_MGMT_PORT_SUCCESS or an error code 134 */ 135extern cvmx_mgmt_port_result_t cvmx_mgmt_port_send(int port, int packet_len, void *buffer); 136 | 1/***********************license start*************** 2 * Copyright (c) 2003-2010 Cavium Networks (support@cavium.com). All rights 3 * reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: --- 120 unchanged lines hidden (view full) --- 129 * @param port Management port 130 * @param packet_len Length of the packet to send. It does not include the final CRC 131 * @param buffer Packet data 132 * 133 * @return CVMX_MGMT_PORT_SUCCESS or an error code 134 */ 135extern cvmx_mgmt_port_result_t cvmx_mgmt_port_send(int port, int packet_len, void *buffer); 136 |
137#if defined(__FreeBSD__) |
|
137/** | 138/** |
139 * Send a packet out the management port. The packet is copied so 140 * the input mbuf isn't used after this call. 141 * 142 * @param port Management port 143 * @param m Packet mbuf (with pkthdr) 144 * 145 * @return CVMX_MGMT_PORT_SUCCESS or an error code 146 */ 147extern cvmx_mgmt_port_result_t cvmx_mgmt_port_sendm(int port, const struct mbuf *m); 148#endif 149 150/** |
|
138 * Receive a packet from the management port. 139 * 140 * @param port Management port 141 * @param buffer_len Size of the buffer to receive the packet into 142 * @param buffer Buffer to receive the packet into 143 * 144 * @return The size of the packet, or a negative erorr code on failure. Zero 145 * means that no packets were available. 146 */ | 151 * Receive a packet from the management port. 152 * 153 * @param port Management port 154 * @param buffer_len Size of the buffer to receive the packet into 155 * @param buffer Buffer to receive the packet into 156 * 157 * @return The size of the packet, or a negative erorr code on failure. Zero 158 * means that no packets were available. 159 */ |
147extern int cvmx_mgmt_port_receive(int port, int buffer_len, void *buffer); | 160extern int cvmx_mgmt_port_receive(int port, int buffer_len, uint8_t *buffer); |
148 149/** 150 * Set the MAC address for a management port 151 * 152 * @param port Management port 153 * @param mac New MAC address. The lower 6 bytes are used. 154 * 155 * @return CVMX_MGMT_PORT_SUCCESS or an error code --- 62 unchanged lines hidden --- | 161 162/** 163 * Set the MAC address for a management port 164 * 165 * @param port Management port 166 * @param mac New MAC address. The lower 6 bytes are used. 167 * 168 * @return CVMX_MGMT_PORT_SUCCESS or an error code --- 62 unchanged lines hidden --- |