3b2: Fix windows build
This commit is contained in:
parent
d91d47d1f4
commit
c05190780b
2 changed files with 7 additions and 7 deletions
|
@ -325,7 +325,7 @@ t_stat contty_reset(DEVICE *dtpr)
|
|||
memset(&iu_contty, 0, sizeof(IU_PORT));
|
||||
brg_reg = 0;
|
||||
brg_clk = BRG_DEFAULT;
|
||||
parity_sel = PARITY_EVEN;
|
||||
parity_sel = IU_PARITY_EVEN;
|
||||
bits_per_char = 7;
|
||||
|
||||
sprintf(line_config, "%s-%d%s1",
|
||||
|
@ -644,13 +644,13 @@ void iu_write(uint32 pa, uint32 val, size_t size)
|
|||
if (modep == 0) {
|
||||
if ((bval >> 4) & 1) {
|
||||
/* No parity */
|
||||
parity_sel = PARITY_NONE;
|
||||
parity_sel = IU_PARITY_NONE;
|
||||
} else {
|
||||
/* Parity enabled */
|
||||
if (bval & 4) {
|
||||
parity_sel = PARITY_ODD;
|
||||
parity_sel = IU_PARITY_ODD;
|
||||
} else {
|
||||
parity_sel = PARITY_EVEN;
|
||||
parity_sel = IU_PARITY_EVEN;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -44,9 +44,9 @@
|
|||
#define IU_SPEED_REGS 2 /* Two speed select registers, */
|
||||
#define IU_SPEEDS 16 /* with 16 speeds each */
|
||||
|
||||
#define PARITY_ODD 0
|
||||
#define PARITY_EVEN 1
|
||||
#define PARITY_NONE 2
|
||||
#define IU_PARITY_ODD 0
|
||||
#define IU_PARITY_EVEN 1
|
||||
#define IU_PARITY_NONE 2
|
||||
|
||||
#define STS_RXR 0x01 /* Receiver ready */
|
||||
#define STS_FFL 0x02 /* FIFO full */
|
||||
|
|
Loading…
Add table
Reference in a new issue