|
@@ -1927,7 +1927,7 @@ static void e1000_clear_hw_cntrs_82571(struct e1000_hw *hw)
|
|
er32(ICRXDMTC);
|
|
er32(ICRXDMTC);
|
|
}
|
|
}
|
|
|
|
|
|
-static struct e1000_mac_operations e82571_mac_ops = {
|
|
|
|
|
|
+static const struct e1000_mac_operations e82571_mac_ops = {
|
|
/* .check_mng_mode: mac type dependent */
|
|
/* .check_mng_mode: mac type dependent */
|
|
/* .check_for_link: media type dependent */
|
|
/* .check_for_link: media type dependent */
|
|
.id_led_init = e1000e_id_led_init,
|
|
.id_led_init = e1000e_id_led_init,
|
|
@@ -1949,7 +1949,7 @@ static struct e1000_mac_operations e82571_mac_ops = {
|
|
.read_mac_addr = e1000_read_mac_addr_82571,
|
|
.read_mac_addr = e1000_read_mac_addr_82571,
|
|
};
|
|
};
|
|
|
|
|
|
-static struct e1000_phy_operations e82_phy_ops_igp = {
|
|
|
|
|
|
+static const struct e1000_phy_operations e82_phy_ops_igp = {
|
|
.acquire = e1000_get_hw_semaphore_82571,
|
|
.acquire = e1000_get_hw_semaphore_82571,
|
|
.check_polarity = e1000_check_polarity_igp,
|
|
.check_polarity = e1000_check_polarity_igp,
|
|
.check_reset_block = e1000e_check_reset_block_generic,
|
|
.check_reset_block = e1000e_check_reset_block_generic,
|
|
@@ -1967,7 +1967,7 @@ static struct e1000_phy_operations e82_phy_ops_igp = {
|
|
.cfg_on_link_up = NULL,
|
|
.cfg_on_link_up = NULL,
|
|
};
|
|
};
|
|
|
|
|
|
-static struct e1000_phy_operations e82_phy_ops_m88 = {
|
|
|
|
|
|
+static const struct e1000_phy_operations e82_phy_ops_m88 = {
|
|
.acquire = e1000_get_hw_semaphore_82571,
|
|
.acquire = e1000_get_hw_semaphore_82571,
|
|
.check_polarity = e1000_check_polarity_m88,
|
|
.check_polarity = e1000_check_polarity_m88,
|
|
.check_reset_block = e1000e_check_reset_block_generic,
|
|
.check_reset_block = e1000e_check_reset_block_generic,
|
|
@@ -1985,7 +1985,7 @@ static struct e1000_phy_operations e82_phy_ops_m88 = {
|
|
.cfg_on_link_up = NULL,
|
|
.cfg_on_link_up = NULL,
|
|
};
|
|
};
|
|
|
|
|
|
-static struct e1000_phy_operations e82_phy_ops_bm = {
|
|
|
|
|
|
+static const struct e1000_phy_operations e82_phy_ops_bm = {
|
|
.acquire = e1000_get_hw_semaphore_82571,
|
|
.acquire = e1000_get_hw_semaphore_82571,
|
|
.check_polarity = e1000_check_polarity_m88,
|
|
.check_polarity = e1000_check_polarity_m88,
|
|
.check_reset_block = e1000e_check_reset_block_generic,
|
|
.check_reset_block = e1000e_check_reset_block_generic,
|
|
@@ -2003,7 +2003,7 @@ static struct e1000_phy_operations e82_phy_ops_bm = {
|
|
.cfg_on_link_up = NULL,
|
|
.cfg_on_link_up = NULL,
|
|
};
|
|
};
|
|
|
|
|
|
-static struct e1000_nvm_operations e82571_nvm_ops = {
|
|
|
|
|
|
+static const struct e1000_nvm_operations e82571_nvm_ops = {
|
|
.acquire = e1000_acquire_nvm_82571,
|
|
.acquire = e1000_acquire_nvm_82571,
|
|
.read = e1000e_read_nvm_eerd,
|
|
.read = e1000e_read_nvm_eerd,
|
|
.release = e1000_release_nvm_82571,
|
|
.release = e1000_release_nvm_82571,
|
|
@@ -2013,7 +2013,7 @@ static struct e1000_nvm_operations e82571_nvm_ops = {
|
|
.write = e1000_write_nvm_82571,
|
|
.write = e1000_write_nvm_82571,
|
|
};
|
|
};
|
|
|
|
|
|
-struct e1000_info e1000_82571_info = {
|
|
|
|
|
|
+const struct e1000_info e1000_82571_info = {
|
|
.mac = e1000_82571,
|
|
.mac = e1000_82571,
|
|
.flags = FLAG_HAS_HW_VLAN_FILTER
|
|
.flags = FLAG_HAS_HW_VLAN_FILTER
|
|
| FLAG_HAS_JUMBO_FRAMES
|
|
| FLAG_HAS_JUMBO_FRAMES
|
|
@@ -2034,7 +2034,7 @@ struct e1000_info e1000_82571_info = {
|
|
.nvm_ops = &e82571_nvm_ops,
|
|
.nvm_ops = &e82571_nvm_ops,
|
|
};
|
|
};
|
|
|
|
|
|
-struct e1000_info e1000_82572_info = {
|
|
|
|
|
|
+const struct e1000_info e1000_82572_info = {
|
|
.mac = e1000_82572,
|
|
.mac = e1000_82572,
|
|
.flags = FLAG_HAS_HW_VLAN_FILTER
|
|
.flags = FLAG_HAS_HW_VLAN_FILTER
|
|
| FLAG_HAS_JUMBO_FRAMES
|
|
| FLAG_HAS_JUMBO_FRAMES
|
|
@@ -2052,7 +2052,7 @@ struct e1000_info e1000_82572_info = {
|
|
.nvm_ops = &e82571_nvm_ops,
|
|
.nvm_ops = &e82571_nvm_ops,
|
|
};
|
|
};
|
|
|
|
|
|
-struct e1000_info e1000_82573_info = {
|
|
|
|
|
|
+const struct e1000_info e1000_82573_info = {
|
|
.mac = e1000_82573,
|
|
.mac = e1000_82573,
|
|
.flags = FLAG_HAS_HW_VLAN_FILTER
|
|
.flags = FLAG_HAS_HW_VLAN_FILTER
|
|
| FLAG_HAS_WOL
|
|
| FLAG_HAS_WOL
|
|
@@ -2070,7 +2070,7 @@ struct e1000_info e1000_82573_info = {
|
|
.nvm_ops = &e82571_nvm_ops,
|
|
.nvm_ops = &e82571_nvm_ops,
|
|
};
|
|
};
|
|
|
|
|
|
-struct e1000_info e1000_82574_info = {
|
|
|
|
|
|
+const struct e1000_info e1000_82574_info = {
|
|
.mac = e1000_82574,
|
|
.mac = e1000_82574,
|
|
.flags = FLAG_HAS_HW_VLAN_FILTER
|
|
.flags = FLAG_HAS_HW_VLAN_FILTER
|
|
| FLAG_HAS_MSIX
|
|
| FLAG_HAS_MSIX
|
|
@@ -2091,7 +2091,7 @@ struct e1000_info e1000_82574_info = {
|
|
.nvm_ops = &e82571_nvm_ops,
|
|
.nvm_ops = &e82571_nvm_ops,
|
|
};
|
|
};
|
|
|
|
|
|
-struct e1000_info e1000_82583_info = {
|
|
|
|
|
|
+const struct e1000_info e1000_82583_info = {
|
|
.mac = e1000_82583,
|
|
.mac = e1000_82583,
|
|
.flags = FLAG_HAS_HW_VLAN_FILTER
|
|
.flags = FLAG_HAS_HW_VLAN_FILTER
|
|
| FLAG_HAS_WOL
|
|
| FLAG_HAS_WOL
|