mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/net: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-42-richard.henderson@linaro.org>
This commit is contained in:
parent
e4ea952fb0
commit
1de81b426c
41 changed files with 80 additions and 80 deletions
|
@ -1437,7 +1437,7 @@ static const VMStateDescription vmstate_e1000_mit_state = {
|
|||
.name = "e1000/mit_state",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(mac_reg[RDTR], E1000State),
|
||||
VMSTATE_UINT32(mac_reg[RADV], E1000State),
|
||||
VMSTATE_UINT32(mac_reg[TADV], E1000State),
|
||||
|
@ -1452,7 +1452,7 @@ static const VMStateDescription vmstate_e1000_full_mac_state = {
|
|||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.needed = e1000_full_mac_needed,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32_ARRAY(mac_reg, E1000State, 0x8000),
|
||||
VMSTATE_END_OF_LIST()
|
||||
}
|
||||
|
@ -1464,7 +1464,7 @@ static const VMStateDescription vmstate_e1000_tx_tso_state = {
|
|||
.minimum_version_id = 1,
|
||||
.needed = e1000_tso_state_needed,
|
||||
.post_load = e1000_tx_tso_post_load,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT8(tx.tso_props.ipcss, E1000State),
|
||||
VMSTATE_UINT8(tx.tso_props.ipcso, E1000State),
|
||||
VMSTATE_UINT16(tx.tso_props.ipcse, E1000State),
|
||||
|
@ -1486,7 +1486,7 @@ static const VMStateDescription vmstate_e1000 = {
|
|||
.minimum_version_id = 1,
|
||||
.pre_save = e1000_pre_save,
|
||||
.post_load = e1000_post_load,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_PCI_DEVICE(parent_obj, E1000State),
|
||||
VMSTATE_UNUSED_TEST(is_version_1, 4), /* was instance id */
|
||||
VMSTATE_UNUSED(4), /* Was mmio_base. */
|
||||
|
@ -1558,7 +1558,7 @@ static const VMStateDescription vmstate_e1000 = {
|
|||
E1000_VLAN_FILTER_TBL_SIZE),
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
.subsections = (const VMStateDescription*[]) {
|
||||
.subsections = (const VMStateDescription * const []) {
|
||||
&vmstate_e1000_mit_state,
|
||||
&vmstate_e1000_full_mac_state,
|
||||
&vmstate_e1000_tx_tso_state,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue