| 188 | } |
| 189 | |
| 190 | bool USB::DoOHCIState(StateWrapper& sw) |
| 191 | { |
| 192 | if (!sw.DoMarker("USBOHCI")) |
| 193 | return false; |
| 194 | |
| 195 | sw.Do(&g_usb_last_cycle); |
| 196 | sw.Do(&s_usb_clocks); |
| 197 | sw.Do(&s_usb_remaining); |
| 198 | |
| 199 | sw.Do(&s_qemu_ohci->eof_timer); |
| 200 | sw.Do(&s_qemu_ohci->sof_time); |
| 201 | |
| 202 | sw.Do(&s_qemu_ohci->ctl); |
| 203 | sw.Do(&s_qemu_ohci->status); |
| 204 | sw.Do(&s_qemu_ohci->intr_status); |
| 205 | sw.Do(&s_qemu_ohci->intr); |
| 206 | |
| 207 | sw.Do(&s_qemu_ohci->hcca); |
| 208 | sw.Do(&s_qemu_ohci->ctrl_head); |
| 209 | sw.Do(&s_qemu_ohci->ctrl_cur); |
| 210 | sw.Do(&s_qemu_ohci->bulk_head); |
| 211 | sw.Do(&s_qemu_ohci->bulk_cur); |
| 212 | sw.Do(&s_qemu_ohci->per_cur); |
| 213 | sw.Do(&s_qemu_ohci->done); |
| 214 | sw.Do(&s_qemu_ohci->done_count); |
| 215 | |
| 216 | s_qemu_ohci->fsmps = sw.DoBitfield(s_qemu_ohci->fsmps); |
| 217 | s_qemu_ohci->fit = sw.DoBitfield(s_qemu_ohci->fit); |
| 218 | s_qemu_ohci->fi = sw.DoBitfield(s_qemu_ohci->fi); |
| 219 | s_qemu_ohci->frt = sw.DoBitfield(s_qemu_ohci->frt); |
| 220 | sw.Do(&s_qemu_ohci->frame_number); |
| 221 | sw.Do(&s_qemu_ohci->padding); |
| 222 | sw.Do(&s_qemu_ohci->pstart); |
| 223 | sw.Do(&s_qemu_ohci->lst); |
| 224 | |
| 225 | sw.Do(&s_qemu_ohci->rhdesc_a); |
| 226 | sw.Do(&s_qemu_ohci->rhdesc_b); |
| 227 | for (u32 i = 0; i < OHCI_MAX_PORTS; i++) |
| 228 | sw.Do(&s_qemu_ohci->rhport[i].ctrl); |
| 229 | |
| 230 | sw.Do(&s_qemu_ohci->old_ctl); |
| 231 | sw.DoArray(s_qemu_ohci->usb_buf, sizeof(s_qemu_ohci->usb_buf)); |
| 232 | sw.Do(&s_qemu_ohci->async_td); |
| 233 | sw.Do(&s_qemu_ohci->async_complete); |
| 234 | return true; |
| 235 | } |
| 236 | |
| 237 | void USB::DoDeviceState(USBDevice* dev, StateWrapper& sw) |
| 238 | { |
nothing calls this directly
no test coverage detected