More sonarlint work
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include <86box/video.h>
|
||||
#include <86box/vid_svga.h>
|
||||
#include <86box/vid_svga_render.h>
|
||||
#include <86box/plat_unused.h>
|
||||
|
||||
typedef struct ht216_t {
|
||||
svga_t svga;
|
||||
@@ -92,8 +93,8 @@ typedef struct ht216_t {
|
||||
|
||||
void ht216_remap(ht216_t *ht216);
|
||||
|
||||
void ht216_out(uint16_t addr, uint8_t val, void *p);
|
||||
uint8_t ht216_in(uint16_t addr, void *p);
|
||||
void ht216_out(uint16_t addr, uint8_t val, void *priv);
|
||||
uint8_t ht216_in(uint16_t addr, void *priv);
|
||||
|
||||
#define BIOS_G2_GC205_PATH "roms/video/video7/BIOS.BIN"
|
||||
#define BIOS_VIDEO7_VGA_1024I_PATH "roms/video/video7/Video Seven VGA 1024i - BIOS - v2.19 - 435-0062-05 - U17 - 27C256.BIN"
|
||||
@@ -164,9 +165,9 @@ ht216_recalc_bank_regs(ht216_t *ht216, int mode)
|
||||
}
|
||||
|
||||
void
|
||||
ht216_out(uint16_t addr, uint8_t val, void *p)
|
||||
ht216_out(uint16_t addr, uint8_t val, void *priv)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) p;
|
||||
ht216_t *ht216 = (ht216_t *) priv;
|
||||
svga_t *svga = &ht216->svga;
|
||||
uint8_t old;
|
||||
|
||||
@@ -319,7 +320,7 @@ ht216_out(uint16_t addr, uint8_t val, void *p)
|
||||
svga->adv_flags &= ~FLAG_RAMDAC_SHIFT;
|
||||
if (val & 0x04)
|
||||
svga->adv_flags |= FLAG_RAMDAC_SHIFT;
|
||||
/* FALLTHROUGH */
|
||||
[[fallthrough]];
|
||||
/*Bank registers*/
|
||||
case 0xe8:
|
||||
case 0xe9:
|
||||
@@ -463,9 +464,9 @@ ht216_out(uint16_t addr, uint8_t val, void *p)
|
||||
}
|
||||
|
||||
uint8_t
|
||||
ht216_in(uint16_t addr, void *p)
|
||||
ht216_in(uint16_t addr, void *priv)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) p;
|
||||
ht216_t *ht216 = (ht216_t *) priv;
|
||||
svga_t *svga = &ht216->svga;
|
||||
uint8_t ret = 0xff;
|
||||
|
||||
@@ -606,7 +607,7 @@ ht216_remap(ht216_t *ht216)
|
||||
void
|
||||
ht216_recalctimings(svga_t *svga)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) svga->p;
|
||||
ht216_t *ht216 = (ht216_t *) svga->priv;
|
||||
int high_res_256 = 0;
|
||||
|
||||
switch ((((((svga->miscout >> 2) & 3) || ((ht216->ht_regs[0xa4] >> 2) & 3)) | ((ht216->ht_regs[0xa4] >> 2) & 4)) || ((ht216->ht_regs[0xf8] >> 5) & 0x0f)) | ((ht216->ht_regs[0xf8] << 1) & 8)) {
|
||||
@@ -702,7 +703,7 @@ ht216_recalctimings(svga_t *svga)
|
||||
static void
|
||||
ht216_hwcursor_draw(svga_t *svga, int displine)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) svga->p;
|
||||
ht216_t *ht216 = (ht216_t *) svga->priv;
|
||||
int shift = (ht216->adjust_cursor ? 2 : 1);
|
||||
uint32_t dat[2];
|
||||
int offset = svga->hwcursor_latch.x + svga->hwcursor_latch.xoff;
|
||||
@@ -1164,9 +1165,9 @@ ht216_write_common(ht216_t *ht216, uint32_t addr, uint8_t val)
|
||||
}
|
||||
|
||||
static void
|
||||
ht216_write(uint32_t addr, uint8_t val, void *p)
|
||||
ht216_write(uint32_t addr, uint8_t val, void *priv)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) p;
|
||||
ht216_t *ht216 = (ht216_t *) priv;
|
||||
svga_t *svga = &ht216->svga;
|
||||
uint32_t prev_addr = addr;
|
||||
|
||||
@@ -1185,9 +1186,9 @@ ht216_write(uint32_t addr, uint8_t val, void *p)
|
||||
}
|
||||
|
||||
static void
|
||||
ht216_writew(uint32_t addr, uint16_t val, void *p)
|
||||
ht216_writew(uint32_t addr, uint16_t val, void *priv)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) p;
|
||||
ht216_t *ht216 = (ht216_t *) priv;
|
||||
svga_t *svga = &ht216->svga;
|
||||
uint32_t prev_addr = addr;
|
||||
|
||||
@@ -1208,9 +1209,9 @@ ht216_writew(uint32_t addr, uint16_t val, void *p)
|
||||
}
|
||||
|
||||
static void
|
||||
ht216_writel(uint32_t addr, uint32_t val, void *p)
|
||||
ht216_writel(uint32_t addr, uint32_t val, void *priv)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) p;
|
||||
ht216_t *ht216 = (ht216_t *) priv;
|
||||
svga_t *svga = &ht216->svga;
|
||||
uint32_t prev_addr = addr;
|
||||
|
||||
@@ -1233,9 +1234,9 @@ ht216_writel(uint32_t addr, uint32_t val, void *p)
|
||||
}
|
||||
|
||||
static void
|
||||
ht216_write_linear(uint32_t addr, uint8_t val, void *p)
|
||||
ht216_write_linear(uint32_t addr, uint8_t val, void *priv)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) p;
|
||||
ht216_t *ht216 = (ht216_t *) priv;
|
||||
svga_t *svga = &ht216->svga;
|
||||
|
||||
addr -= ht216->linear_base;
|
||||
@@ -1250,9 +1251,9 @@ ht216_write_linear(uint32_t addr, uint8_t val, void *p)
|
||||
}
|
||||
|
||||
static void
|
||||
ht216_writew_linear(uint32_t addr, uint16_t val, void *p)
|
||||
ht216_writew_linear(uint32_t addr, uint16_t val, void *priv)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) p;
|
||||
ht216_t *ht216 = (ht216_t *) priv;
|
||||
svga_t *svga = &ht216->svga;
|
||||
|
||||
addr -= ht216->linear_base;
|
||||
@@ -1269,9 +1270,9 @@ ht216_writew_linear(uint32_t addr, uint16_t val, void *p)
|
||||
}
|
||||
|
||||
static void
|
||||
ht216_writel_linear(uint32_t addr, uint32_t val, void *p)
|
||||
ht216_writel_linear(uint32_t addr, uint32_t val, void *priv)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) p;
|
||||
ht216_t *ht216 = (ht216_t *) priv;
|
||||
svga_t *svga = &ht216->svga;
|
||||
|
||||
addr -= ht216->linear_base;
|
||||
@@ -1372,9 +1373,9 @@ ht216_read_common(ht216_t *ht216, uint32_t addr)
|
||||
}
|
||||
|
||||
static uint8_t
|
||||
ht216_read(uint32_t addr, void *p)
|
||||
ht216_read(uint32_t addr, void *priv)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) p;
|
||||
ht216_t *ht216 = (ht216_t *) priv;
|
||||
svga_t *svga = &ht216->svga;
|
||||
uint32_t prev_addr = addr;
|
||||
|
||||
@@ -1390,9 +1391,9 @@ ht216_read(uint32_t addr, void *p)
|
||||
}
|
||||
|
||||
static uint8_t
|
||||
ht216_read_linear(uint32_t addr, void *p)
|
||||
ht216_read_linear(uint32_t addr, void *priv)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) p;
|
||||
ht216_t *ht216 = (ht216_t *) priv;
|
||||
svga_t *svga = &ht216->svga;
|
||||
|
||||
addr -= ht216->linear_base;
|
||||
@@ -1427,7 +1428,7 @@ radius_mca_write(int port, uint8_t val, void *priv)
|
||||
}
|
||||
|
||||
static uint8_t
|
||||
radius_mca_feedb(void *priv)
|
||||
radius_mca_feedb(UNUSED(void *priv))
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -1611,9 +1612,9 @@ radius_svga_multiview_available(void)
|
||||
}
|
||||
|
||||
void
|
||||
ht216_close(void *p)
|
||||
ht216_close(void *priv)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) p;
|
||||
ht216_t *ht216 = (ht216_t *) priv;
|
||||
|
||||
svga_close(&ht216->svga);
|
||||
|
||||
@@ -1621,17 +1622,17 @@ ht216_close(void *p)
|
||||
}
|
||||
|
||||
void
|
||||
ht216_speed_changed(void *p)
|
||||
ht216_speed_changed(void *priv)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) p;
|
||||
ht216_t *ht216 = (ht216_t *) priv;
|
||||
|
||||
svga_recalctimings(&ht216->svga);
|
||||
}
|
||||
|
||||
void
|
||||
ht216_force_redraw(void *p)
|
||||
ht216_force_redraw(void *priv)
|
||||
{
|
||||
ht216_t *ht216 = (ht216_t *) p;
|
||||
ht216_t *ht216 = (ht216_t *) priv;
|
||||
|
||||
ht216->svga.fullchange = changeframecount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user