num_interfaces = cvmx_helper_get_number_of_interfaces();
for (interface = 0; interface < num_interfaces; interface++) {
- enum cvmx_helper_interface_mode imode =
+ cvmx_helper_interface_mode_t imode =
cvmx_helper_interface_get_mode(interface);
int num_ports = cvmx_helper_ports_on_interface(interface);
int port;
CVMX_SPI_MODE_DUPLEX = 3
};
-enum cvmx_helper_interface_mode {
+typedef enum {
CVMX_HELPER_INTERFACE_MODE_DISABLED,
CVMX_HELPER_INTERFACE_MODE_RGMII,
CVMX_HELPER_INTERFACE_MODE_GMII,
CVMX_HELPER_INTERFACE_MODE_PICMG,
CVMX_HELPER_INTERFACE_MODE_NPI,
CVMX_HELPER_INTERFACE_MODE_LOOP,
-};
+} cvmx_helper_interface_mode_t;
typedef enum {
CVMX_POW_WAIT = 1,
cvmx_pko_port_status_t *status)
{ }
-static inline enum cvmx_helper_interface_mode cvmx_helper_interface_get_mode(int
- interface)
+static inline cvmx_helper_interface_mode_t cvmx_helper_interface_get_mode(int
+ interface)
{
return 0;
}