@@ -47,49 +47,56 @@ static const char *modenames[8] = {
4747 "NE2000"
4848};
4949
50- #define MODE_MAGIC 0x00 // Magic string
51- #define MODE_PROTOCOL 0x01 // Protocol version
52- #define MODE_FWSTRING 0x02 // Firmware string
53- #define MODE_BOOTMODE 0x03 // Mode (GUS, OPL, MPU, etc...)
54- #define MODE_GUSPORT 0x04 // GUS Base port
55- #define MODE_OPLPORT 0x05 // Adlib Base port
56- #define MODE_SBPORT 0x06 // SB Base port
57- #define MODE_MPUPORT 0x07 // MPU Base port
58- #define MODE_TANDYPORT 0x08 // Tandy Base port
59- #define MODE_CMSPORT 0x09 // CMS Base port
60- #define MODE_JOYEN 0x0f // enable joystick
61-
62- #define MODE_GUSBUF 0x10 // Audio buffer size
63- #define MODE_GUSDMA 0x11 // DMA interval
64- #define MODE_GUS44K 0x12 // Force 44k
65-
66- #define MODE_WTVOL 0x20 // Wavetable mixer volume
67- #define MODE_MPUDELAY 0x21 // MPU sysex delay
68- #define MODE_MPUFAKE 0x22 // MPU fake all notes off
69-
70- #define MODE_OPLWAIT 0x30 // Adlib speed sensitive fix
71-
72- #define MODE_MOUSEPORT 0x40 // Mouse Base port
73- #define MODE_MOUSEPROTO 0x41 // Mouse protocol
74- #define MODE_MOUSERATE 0x42 // Mouse report rate
75- #define MODE_MOUSESEN 0x43 // Mouse sensitivity
76-
77- #define MODE_NE2KPORT 0x50 // NE2000 Base port
78- #define MODE_WIFISSID 0x51 // WiFi SSID
79- #define MODE_WIFIPASS 0x52 // WiFi password
80- #define MODE_WIFIAPPLY 0x53 // apply WiFi settings
81- #define MODE_WIFISTAT 0x54 // WiFi status
82-
83- #define MODE_CDPORT 0x60 // CD base port
84- #define MODE_CDSTATUS 0x61 // Get CD image command status
85- #define MODE_CDERROR 0x62 // Get CD image error
86- #define MODE_CDLIST 0x63 // List CD images
87- #define MODE_CDLOAD 0x64 // Load CD image or get loaded image index
88- #define MODE_CDNAME 0x65 // Get name of loaded CD image
89- #define MODE_CDAUTOADV 0x66 // Set autoadvance for CD image on USB reinsert
90-
91- #define MODE_DEFAULTS 0xE0 // Select reset to defaults register
92- #define MODE_SAVE 0xE1 // Select save settings register
93- #define MODE_REBOOT 0xE2 // Select reboot register
94- #define MODE_HWTYPE 0xF0 // Hardware type
95- #define MODE_FLASH 0xFF // Firmware write mode
50+ #define CMD_MAGIC 0x00 // Magic string
51+ #define CMD_PROTOCOL 0x01 // Protocol version
52+ #define CMD_FWSTRING 0x02 // Firmware string
53+ #define CMD_BOOTMODE 0x03 // Mode (GUS, OPL, MPU, etc...)
54+ #define CMD_GUSPORT 0x04 // GUS Base port
55+ #define CMD_OPLPORT 0x05 // Adlib Base port
56+ #define CMD_SBPORT 0x06 // SB Base port
57+ #define CMD_MPUPORT 0x07 // MPU Base port
58+ #define CMD_TANDYPORT 0x08 // Tandy Base port
59+ #define CMD_CMSPORT 0x09 // CMS Base port
60+ #define CMD_JOYEN 0x0f // enable joystick
61+
62+ #define CMD_GUSBUF 0x10 // Audio buffer size
63+ #define CMD_GUSDMA 0x11 // DMA interval
64+ #define CMD_GUS44K 0x12 // Force 44k
65+
66+ #define CMD_WTVOL 0x20 // Wavetable mixer volume
67+ #define CMD_MPUDELAY 0x21 // MPU sysex delay
68+ #define CMD_MPUFAKE 0x22 // MPU fake all notes off
69+
70+ #define CMD_OPLWAIT 0x30 // Adlib speed sensitive fix
71+
72+ #define CMD_MOUSEPORT 0x40 // Mouse Base port
73+ #define CMD_MOUSEPROTO 0x41 // Mouse protocol
74+ #define CMD_MOUSERATE 0x42 // Mouse report rate
75+ #define CMD_MOUSESEN 0x43 // Mouse sensitivity
76+
77+ #define CMD_NE2KPORT 0x50 // NE2000 Base port
78+ #define CMD_WIFISSID 0x51 // WiFi SSID
79+ #define CMD_WIFIPASS 0x52 // WiFi password
80+ #define CMD_WIFIAPPLY 0x53 // apply WiFi settings
81+ #define CMD_WIFISTAT 0x54 // WiFi status
82+
83+ #define CMD_CDPORT 0x60 // CD base port
84+ #define CMD_CDSTATUS 0x61 // Get CD image command status
85+ #define CMD_CDERROR 0x62 // Get CD image error
86+ #define CMD_CDLIST 0x63 // List CD images
87+ #define CMD_CDLOAD 0x64 // Load CD image or get loaded image index
88+ #define CMD_CDNAME 0x65 // Get name of loaded CD image
89+ #define CMD_CDAUTOADV 0x66 // Set autoadvance for CD image on USB reinsert
90+
91+ #define CMD_MAINVOL 0x70 // Main Volume
92+ #define CMD_OPLVOL 0x71 // Adlib volume
93+ #define CMD_SBVOL 0x72 // Sound Blaster volume
94+ #define CMD_CDVOL 0x73 // CD Audio Volume
95+ #define CMD_GUSVOL 0x74 // GUS Volume
96+ #define CMD_PSGVOL 0x75 // PSG Volume
97+
98+ #define CMD_DEFAULTS 0xE0 // Select reset to defaults register
99+ #define CMD_SAVE 0xE1 // Select save settings register
100+ #define CMD_REBOOT 0xE2 // Select reboot register
101+ #define CMD_HWTYPE 0xF0 // Hardware type
102+ #define CMD_FLASH 0xFF // Firmware write mode
0 commit comments