Deleted Added
full compact
oce_hw.h (257187) oce_hw.h (268046)
1/*-
2 * Copyright (C) 2013 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,

--- 22 unchanged lines hidden (view full) ---

31 * Contact Information:
32 * freebsd-drivers@emulex.com
33 *
34 * Emulex
35 * 3333 Susan Street
36 * Costa Mesa, CA 92626
37 */
38
1/*-
2 * Copyright (C) 2013 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,

--- 22 unchanged lines hidden (view full) ---

31 * Contact Information:
32 * freebsd-drivers@emulex.com
33 *
34 * Emulex
35 * 3333 Susan Street
36 * Costa Mesa, CA 92626
37 */
38
39/* $FreeBSD: stable/10/sys/dev/oce/oce_hw.h 257187 2013-10-26 19:02:39Z delphij $ */
39/* $FreeBSD: stable/10/sys/dev/oce/oce_hw.h 268046 2014-06-30 16:23:31Z delphij $ */
40
41#include <sys/types.h>
42
43#undef _BIG_ENDIAN /* TODO */
44#pragma pack(1)
45
46#define OC_CNA_GEN2 0x2
47#define OC_CNA_GEN3 0x3

--- 970 unchanged lines hidden (view full) ---

1018 } rsp;
1019 } u0;
1020};
1021#define OCE_BMBX_RHDR_SZ 20
1022#define OCE_MBX_RRHDR_SZ sizeof (struct mbx_hdr)
1023#define OCE_MBX_ADDL_STATUS(_MHDR) ((_MHDR)->u0.rsp.additional_status)
1024#define OCE_MBX_STATUS(_MHDR) ((_MHDR)->u0.rsp.status)
1025
40
41#include <sys/types.h>
42
43#undef _BIG_ENDIAN /* TODO */
44#pragma pack(1)
45
46#define OC_CNA_GEN2 0x2
47#define OC_CNA_GEN3 0x3

--- 970 unchanged lines hidden (view full) ---

1018 } rsp;
1019 } u0;
1020};
1021#define OCE_BMBX_RHDR_SZ 20
1022#define OCE_MBX_RRHDR_SZ sizeof (struct mbx_hdr)
1023#define OCE_MBX_ADDL_STATUS(_MHDR) ((_MHDR)->u0.rsp.additional_status)
1024#define OCE_MBX_STATUS(_MHDR) ((_MHDR)->u0.rsp.status)
1025
1026/* [05] OPCODE_COMMON_QUERY_LINK_CONFIG */
1026/* [05] OPCODE_COMMON_QUERY_LINK_CONFIG_V1 */
1027struct mbx_query_common_link_config {
1028 struct mbx_hdr hdr;
1029 union {
1030 struct {
1031 uint32_t rsvd0;
1032 } req;
1033
1034 struct {
1027struct mbx_query_common_link_config {
1028 struct mbx_hdr hdr;
1029 union {
1030 struct {
1031 uint32_t rsvd0;
1032 } req;
1033
1034 struct {
1035 /* dw 0 */
1036 uint8_t physical_port;
1037 uint8_t mac_duplex;
1038 uint8_t mac_speed;
1039 uint8_t mac_fault;
1040 /* dw 1 */
1041 uint8_t mgmt_mac_duplex;
1042 uint8_t mgmt_mac_speed;
1035 #ifdef _BIG_ENDIAN
1036 uint32_t physical_port_fault:8;
1037 uint32_t physical_port_speed:8;
1038 uint32_t link_duplex:8;
1039 uint32_t pt:2;
1040 uint32_t port_number:6;
1041
1043 uint16_t qos_link_speed;
1042 uint16_t qos_link_speed;
1044 uint32_t logical_link_status;
1043 uint16_t rsvd0;
1044
1045 uint32_t rsvd1:21;
1046 uint32_t phys_fcv:1;
1047 uint32_t phys_rxf:1;
1048 uint32_t phys_txf:1;
1049 uint32_t logical_link_status:8;
1050 #else
1051 uint32_t port_number:6;
1052 uint32_t pt:2;
1053 uint32_t link_duplex:8;
1054 uint32_t physical_port_speed:8;
1055 uint32_t physical_port_fault:8;
1056
1057 uint16_t rsvd0;
1058 uint16_t qos_link_speed;
1059
1060 uint32_t logical_link_status:8;
1061 uint32_t phys_txf:1;
1062 uint32_t phys_rxf:1;
1063 uint32_t phys_fcv:1;
1064 uint32_t rsvd1:21;
1065 #endif
1045 } rsp;
1046 } params;
1047};
1048
1049/* [57] OPCODE_COMMON_SET_LINK_SPEED */
1050struct mbx_set_common_link_speed {
1051 struct mbx_hdr hdr;
1052 union {

--- 2656 unchanged lines hidden ---
1066 } rsp;
1067 } params;
1068};
1069
1070/* [57] OPCODE_COMMON_SET_LINK_SPEED */
1071struct mbx_set_common_link_speed {
1072 struct mbx_hdr hdr;
1073 union {

--- 2656 unchanged lines hidden ---