aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/e1000e/82571.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e/82571.c')
-rw-r--r--drivers/net/ethernet/intel/e1000e/82571.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/82571.c b/drivers/net/ethernet/intel/e1000e/82571.c
index 2d4dc53a4fb8..a3e65fd26e09 100644
--- a/drivers/net/ethernet/intel/e1000e/82571.c
+++ b/drivers/net/ethernet/intel/e1000e/82571.c
@@ -1927,7 +1927,7 @@ static void e1000_clear_hw_cntrs_82571(struct e1000_hw *hw)
1927 er32(ICRXDMTC); 1927 er32(ICRXDMTC);
1928} 1928}
1929 1929
1930static struct e1000_mac_operations e82571_mac_ops = { 1930static const struct e1000_mac_operations e82571_mac_ops = {
1931 /* .check_mng_mode: mac type dependent */ 1931 /* .check_mng_mode: mac type dependent */
1932 /* .check_for_link: media type dependent */ 1932 /* .check_for_link: media type dependent */
1933 .id_led_init = e1000e_id_led_init, 1933 .id_led_init = e1000e_id_led_init,
@@ -1949,7 +1949,7 @@ static struct e1000_mac_operations e82571_mac_ops = {
1949 .read_mac_addr = e1000_read_mac_addr_82571, 1949 .read_mac_addr = e1000_read_mac_addr_82571,
1950}; 1950};
1951 1951
1952static struct e1000_phy_operations e82_phy_ops_igp = { 1952static const struct e1000_phy_operations e82_phy_ops_igp = {
1953 .acquire = e1000_get_hw_semaphore_82571, 1953 .acquire = e1000_get_hw_semaphore_82571,
1954 .check_polarity = e1000_check_polarity_igp, 1954 .check_polarity = e1000_check_polarity_igp,
1955 .check_reset_block = e1000e_check_reset_block_generic, 1955 .check_reset_block = e1000e_check_reset_block_generic,
@@ -1967,7 +1967,7 @@ static struct e1000_phy_operations e82_phy_ops_igp = {
1967 .cfg_on_link_up = NULL, 1967 .cfg_on_link_up = NULL,
1968}; 1968};
1969 1969
1970static struct e1000_phy_operations e82_phy_ops_m88 = { 1970static const struct e1000_phy_operations e82_phy_ops_m88 = {
1971 .acquire = e1000_get_hw_semaphore_82571, 1971 .acquire = e1000_get_hw_semaphore_82571,
1972 .check_polarity = e1000_check_polarity_m88, 1972 .check_polarity = e1000_check_polarity_m88,
1973 .check_reset_block = e1000e_check_reset_block_generic, 1973 .check_reset_block = e1000e_check_reset_block_generic,
@@ -1985,7 +1985,7 @@ static struct e1000_phy_operations e82_phy_ops_m88 = {
1985 .cfg_on_link_up = NULL, 1985 .cfg_on_link_up = NULL,
1986}; 1986};
1987 1987
1988static struct e1000_phy_operations e82_phy_ops_bm = { 1988static const struct e1000_phy_operations e82_phy_ops_bm = {
1989 .acquire = e1000_get_hw_semaphore_82571, 1989 .acquire = e1000_get_hw_semaphore_82571,
1990 .check_polarity = e1000_check_polarity_m88, 1990 .check_polarity = e1000_check_polarity_m88,
1991 .check_reset_block = e1000e_check_reset_block_generic, 1991 .check_reset_block = e1000e_check_reset_block_generic,
@@ -2003,7 +2003,7 @@ static struct e1000_phy_operations e82_phy_ops_bm = {
2003 .cfg_on_link_up = NULL, 2003 .cfg_on_link_up = NULL,
2004}; 2004};
2005 2005
2006static struct e1000_nvm_operations e82571_nvm_ops = { 2006static const struct e1000_nvm_operations e82571_nvm_ops = {
2007 .acquire = e1000_acquire_nvm_82571, 2007 .acquire = e1000_acquire_nvm_82571,
2008 .read = e1000e_read_nvm_eerd, 2008 .read = e1000e_read_nvm_eerd,
2009 .release = e1000_release_nvm_82571, 2009 .release = e1000_release_nvm_82571,
@@ -2013,7 +2013,7 @@ static struct e1000_nvm_operations e82571_nvm_ops = {
2013 .write = e1000_write_nvm_82571, 2013 .write = e1000_write_nvm_82571,
2014}; 2014};
2015 2015
2016struct e1000_info e1000_82571_info = { 2016const struct e1000_info e1000_82571_info = {
2017 .mac = e1000_82571, 2017 .mac = e1000_82571,
2018 .flags = FLAG_HAS_HW_VLAN_FILTER 2018 .flags = FLAG_HAS_HW_VLAN_FILTER
2019 | FLAG_HAS_JUMBO_FRAMES 2019 | FLAG_HAS_JUMBO_FRAMES
@@ -2034,7 +2034,7 @@ struct e1000_info e1000_82571_info = {
2034 .nvm_ops = &e82571_nvm_ops, 2034 .nvm_ops = &e82571_nvm_ops,
2035}; 2035};
2036 2036
2037struct e1000_info e1000_82572_info = { 2037const struct e1000_info e1000_82572_info = {
2038 .mac = e1000_82572, 2038 .mac = e1000_82572,
2039 .flags = FLAG_HAS_HW_VLAN_FILTER 2039 .flags = FLAG_HAS_HW_VLAN_FILTER
2040 | FLAG_HAS_JUMBO_FRAMES 2040 | FLAG_HAS_JUMBO_FRAMES
@@ -2052,7 +2052,7 @@ struct e1000_info e1000_82572_info = {
2052 .nvm_ops = &e82571_nvm_ops, 2052 .nvm_ops = &e82571_nvm_ops,
2053}; 2053};
2054 2054
2055struct e1000_info e1000_82573_info = { 2055const struct e1000_info e1000_82573_info = {
2056 .mac = e1000_82573, 2056 .mac = e1000_82573,
2057 .flags = FLAG_HAS_HW_VLAN_FILTER 2057 .flags = FLAG_HAS_HW_VLAN_FILTER
2058 | FLAG_HAS_WOL 2058 | FLAG_HAS_WOL
@@ -2070,7 +2070,7 @@ struct e1000_info e1000_82573_info = {
2070 .nvm_ops = &e82571_nvm_ops, 2070 .nvm_ops = &e82571_nvm_ops,
2071}; 2071};
2072 2072
2073struct e1000_info e1000_82574_info = { 2073const struct e1000_info e1000_82574_info = {
2074 .mac = e1000_82574, 2074 .mac = e1000_82574,
2075 .flags = FLAG_HAS_HW_VLAN_FILTER 2075 .flags = FLAG_HAS_HW_VLAN_FILTER
2076 | FLAG_HAS_MSIX 2076 | FLAG_HAS_MSIX
@@ -2091,7 +2091,7 @@ struct e1000_info e1000_82574_info = {
2091 .nvm_ops = &e82571_nvm_ops, 2091 .nvm_ops = &e82571_nvm_ops,
2092}; 2092};
2093 2093
2094struct e1000_info e1000_82583_info = { 2094const struct e1000_info e1000_82583_info = {
2095 .mac = e1000_82583, 2095 .mac = e1000_82583,
2096 .flags = FLAG_HAS_HW_VLAN_FILTER 2096 .flags = FLAG_HAS_HW_VLAN_FILTER
2097 | FLAG_HAS_WOL 2097 | FLAG_HAS_WOL