Skip to content

Commit

Permalink
Use lowercase virtio-net for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
jserv committed Jul 27, 2023
1 parent b587e76 commit 3a9437c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion device.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void u8250_write(vm_t *core,
void u8250_check_ready(u8250_state_t *uart);
void capture_keyboard_input();

/* VirtIO-Net */
/* virtio-net */

#if SEMU_HAS(VIRTIONET)
#define IRQ_VNET 2
Expand Down
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static void mem_load(vm_t *vm, uint32_t addr, uint8_t width, uint32_t *value)
emu_update_uart_interrupts(vm);
return;
#if SEMU_HAS(VIRTIONET)
case 0x41: /* VirtIO-Net */
case 0x41: /* virtio-net */
virtio_net_read(vm, &data->vnet, addr & 0xFFFFF, width, value);
emu_update_vnet_interrupts(vm);
return;
Expand Down Expand Up @@ -132,7 +132,7 @@ static void mem_store(vm_t *vm, uint32_t addr, uint8_t width, uint32_t value)
emu_update_uart_interrupts(vm);
return;
#if SEMU_HAS(VIRTIONET)
case 0x41: /* VirtIO-Net */
case 0x41: /* virtio-net */
virtio_net_write(vm, &data->vnet, addr & 0xFFFFF, width, value);
emu_update_vnet_interrupts(vm);
return;
Expand Down

0 comments on commit 3a9437c

Please sign in to comment.