diff --git a/src/network/net_ne2000.c b/src/network/net_ne2000.c index 7278a2e..e2d78c3 100644 --- a/src/network/net_ne2000.c +++ b/src/network/net_ne2000.c @@ -12,7 +12,7 @@ * - Realtek RTL8019AS (ISA 16-bit, PnP); * - Realtek RTL8029AS (PCI). * - * Version: @(#)net_ne2000.c 1.0.7 2018/04/29 + * Version: @(#)net_ne2000.c 1.0.8 2018/05/03 * * Based on @(#)ne2k.cc v1.56.2.1 2004/02/02 22:37:22 cbothamy * @@ -1072,7 +1072,7 @@ page2_read(nic_t *dev, uint32_t off, unsigned int len) { nelog(3, "%s: Page2 read from register 0x%02x, len=%u\n", dev->name, off, len); - + switch(off) { case 0x01: /* PSTART */ return(dev->page_start); @@ -1212,7 +1212,7 @@ page2_write(nic_t *dev, uint32_t off, uint32_t val, unsigned len) /* Writes to this page are illegal. */ static uint32_t page3_read(nic_t *dev, uint32_t off, unsigned int len) -{ +{ if (dev->board >= NE2K_RTL8019AS) switch(off) { case 0x1: /* 9346CR */ return(dev->_9346cr); @@ -1844,7 +1844,7 @@ nic_iocheckremove(nic_t *dev, uint16_t addr) static void nic_ioset(nic_t *dev, uint16_t addr) -{ +{ if (dev->is_pci) { io_sethandler(addr, 16, nic_readb, nic_readw, nic_readl, @@ -1903,7 +1903,7 @@ nic_ioremove(nic_t *dev, uint16_t addr) } io_removehandler(addr+0x1f, 1, nic_readb, NULL, NULL, - nic_writeb, NULL, NULL, dev); + nic_writeb, NULL, NULL, dev); } } @@ -1912,14 +1912,14 @@ static void nic_update_bios(nic_t *dev) { int reg_bios_enable; - + reg_bios_enable = 1; if (! dev->has_bios) return; if (PCI && dev->is_pci) reg_bios_enable = dev->pci_bar[1].addr_regs[0] & 0x01; - + /* PCI BIOS stuff, just enable_disable. */ if (reg_bios_enable) { mem_mapping_set_addr(&dev->bios_rom.mapping, @@ -2383,7 +2383,7 @@ nic_init(const device_t *info) uint32_t mac; wchar_t *rom; nic_t *dev; -#ifdef ENABLE_NIC_LOG +#ifdef ENABLE_NETWORK_DEV_LOG int i; #endif int c; @@ -2391,9 +2391,9 @@ nic_init(const device_t *info) uint64_t *eeprom_pnp_id; /* Get the desired debug level. */ -#ifdef ENABLE_NIC_LOG +#ifdef ENABLE_NETWORK_DEV_LOG i = device_get_config_int("debug"); - if (i > 0) nic_do_log = i; + if (i > 0) network_dev_do_log = i; #endif dev = malloc(sizeof(nic_t)); diff --git a/src/pc.c b/src/pc.c index a53154e..548247f 100644 --- a/src/pc.c +++ b/src/pc.c @@ -297,7 +297,9 @@ fatal(const char *fmt, ...) void pc_version(const char *platform) { +#if defined(BUILD) || defined(COMMIT) || defined(UPSTREAM) || defined(_MSC_VER) char temp[128]; +#endif sprintf(emu_title, "%s for %s", EMU_NAME, platform); diff --git a/src/pci_dummy.c b/src/pci_dummy.c index 341c540..0c7a04d 100644 --- a/src/pci_dummy.c +++ b/src/pci_dummy.c @@ -8,7 +8,7 @@ * * Example implementation of a PCI device. * - * Version: @(#)pci_dummy.c 1.0.1 2018/02/14 + * Version: @(#)pci_dummy.c 1.0.2 2018/05/03 * * Author: Miran Grca, * @@ -36,6 +36,7 @@ #include #include #include +#include "emu.h #include "io.h" #include "pci.h" #include "pci_dummy.h" diff --git a/src/win/msvc/vc14/VARCem.vcxproj b/src/win/msvc/vc14/VARCem.vcxproj index 53545e0..4ec69c9 100644 --- a/src/win/msvc/vc14/VARCem.vcxproj +++ b/src/win/msvc/vc14/VARCem.vcxproj @@ -70,21 +70,25 @@ - - - - - + + + + + + + + + + + + - - - @@ -125,10 +129,6 @@ - - - - @@ -155,12 +155,15 @@ - - + + + + + @@ -174,7 +177,6 @@ - @@ -250,6 +252,9 @@ + + + @@ -301,7 +306,6 @@ - @@ -310,7 +314,6 @@ - @@ -411,19 +414,15 @@ - - - - - + + + - - @@ -431,13 +430,10 @@ - - - @@ -461,12 +457,15 @@ - - + + + + + @@ -479,7 +478,6 @@ - @@ -542,7 +540,8 @@ - + + diff --git a/src/win/msvc/vc14/VARCem.vcxproj.filters b/src/win/msvc/vc14/VARCem.vcxproj.filters index 9953f09..736dc77 100644 --- a/src/win/msvc/vc14/VARCem.vcxproj.filters +++ b/src/win/msvc/vc14/VARCem.vcxproj.filters @@ -1,4 +1,4 @@ - + @@ -12,23 +12,14 @@ - - - - - - - - - @@ -36,7 +27,7 @@ - + cdrom @@ -173,20 +164,47 @@ floppy - - game + + floppy\lzf - - game + + floppy\lzf - - game + + input\game - - game + + input\game - - game + + input\game + + + input\game + + + input\game + + + input + + + input + + + input + + + input + + + input + + + input + + + input machine @@ -245,6 +263,9 @@ machine + + machine + machine @@ -278,6 +299,15 @@ machine + + machine + + + machine + + + machine + machine @@ -350,6 +380,21 @@ network + + ports + + + ports + + + ports + + + ports + + + ports + scsi @@ -377,6 +422,27 @@ scsi + + sio + + + sio + + + sio + + + sio + + + sio + + + sio + + + sio + sound\resid-fp @@ -578,6 +644,15 @@ sound + + ui + + + ui + + + ui + video @@ -644,6 +719,9 @@ video + + video + video @@ -728,9 +806,6 @@ win - - win - win @@ -755,58 +830,12 @@ win - - win - win win - - video - - - machine - - - machine - - - machine - - - machine - - - - sio - - - sio - - - sio - - - sio - - - sio - - - sio - - - sio - - - floppy\lzf - - - floppy\lzf - @@ -820,16 +849,12 @@ - - - - @@ -837,9 +862,8 @@ - - + cdrom @@ -1101,23 +1125,26 @@ floppy - - game + + floppy\lzf - - game + + floppy\lzf - - game + + floppy\lzf - - game + + floppy\lzf - - game + + input - - lang + + input + + + input\game machine @@ -1125,15 +1152,15 @@ machine + + machine + + + machine + network\slirp - - network\slirp - - - network\slirp - network\slirp @@ -1203,6 +1230,21 @@ network + + ports + + + ports + + + ports + + + ports + + + ports + scsi @@ -1230,6 +1272,9 @@ scsi + + sio + sound\resid-fp @@ -1410,6 +1455,12 @@ sound + + ui + + + ui + video @@ -1482,28 +1533,6 @@ win - - machine - - - machine - - - sio - - - - floppy\lzf - - - floppy\lzf - - - floppy\lzf - - - floppy\lzf - @@ -1521,11 +1550,14 @@ {a9a86e4f-b4eb-4687-a979-f97b394db706} - - {542ab504-19c9-43b6-91b6-b3a205ffeb97} + + {98d7b877-02b8-4c6b-b2b6-d2cc49f357bc} - - {232b8441-5106-47b6-939d-ebd46589c0b2} + + {923338ef-338a-4592-9839-9f8587d93c52} + + + {fc7fc92b-b4da-4f3c-a5c7-4d2548b60fb2} {a99de26d-e4fd-4223-952c-21f1657a20e7} @@ -1536,9 +1568,15 @@ {c0afa9df-08d3-40a6-a4d4-88fb97816009} + + {b9d0388f-b14d-4448-85fe-7179fff3f77f} + {515f18e5-5eab-42f6-8364-37f02bc4f964} + + {4fc4a59c-bb7c-45d7-a467-a06198e71472} + {2617b8d7-3afc-4f23-a0c8-936dab6c38b6} @@ -1554,18 +1592,15 @@ {144b7265-aa9e-453b-9855-78cd74ef9b76} + + {7cec753e-1e2c-4ebd-ba5b-e728767c949f} + {99b35c64-342c-4f15-89b0-47c15f8db344} {cb655d08-c712-4197-9eb8-2f5b7f49eed1} - - {4fc4a59c-bb7c-45d7-a467-a06198e71472} - - - {98d7b877-02b8-4c6b-b2b6-d2cc49f357bc} -