forked from Imagelibrary/rtems
Added NULL entry for setAttributes.
This commit is contained in:
@@ -52,6 +52,7 @@ console_fns ns16550_fns =
|
||||
ns16550_write_support_int, /* deviceWrite */
|
||||
ns16550_initialize_interrupts, /* deviceInitialize */
|
||||
ns16550_write_polled, /* deviceWritePolled */
|
||||
NULL, /* deviceSetAttributes */
|
||||
FALSE, /* deviceOutputUsesInterrupts */
|
||||
};
|
||||
|
||||
@@ -64,6 +65,7 @@ console_fns ns16550_fns_polled =
|
||||
ns16550_write_support_polled, /* deviceWrite */
|
||||
ns16550_init, /* deviceInitialize */
|
||||
ns16550_write_polled, /* deviceWritePolled */
|
||||
NULL, /* deviceSetAttributes */
|
||||
FALSE, /* deviceOutputUsesInterrupts */
|
||||
};
|
||||
|
||||
@@ -598,8 +600,8 @@ static int ns16550_inbyte_nonblocking_polled(
|
||||
ucLineStatus = (*getReg)(pNS16550, NS16550_LINE_STATUS);
|
||||
if(ucLineStatus & SP_LSR_RDY) {
|
||||
cChar = (*getReg)(pNS16550, NS16550_RECEIVE_BUFFER);
|
||||
return((int)cChar);
|
||||
return (int)cChar;
|
||||
} else {
|
||||
return(-1);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ typedef struct _console_fns {
|
||||
int (*deviceWrite)(int minor, const char *buf, int len);
|
||||
void (*deviceInitialize)(int minor);
|
||||
void (*deviceWritePolled)(int minor, char cChar);
|
||||
int (*deviceSetAttributes)(int minor, const struct termios *t);
|
||||
int deviceOutputUsesInterrupts;
|
||||
} console_fns;
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@ console_fns z85c30_fns =
|
||||
z85c30_write_support_int, /* deviceWrite */
|
||||
z85c30_initialize_interrupts, /* deviceInitialize */
|
||||
z85c30_write_polled, /* deviceWritePolled */
|
||||
NULL, /* deviceSetAttributes */
|
||||
FALSE, /* deviceOutputUsesInterrupts */
|
||||
};
|
||||
|
||||
@@ -79,6 +80,7 @@ console_fns z85c30_fns_polled =
|
||||
z85c30_write_support_polled, /* deviceWrite */
|
||||
z85c30_init, /* deviceInitialize */
|
||||
z85c30_write_polled, /* deviceWritePolled */
|
||||
NULL, /* deviceSetAttributes */
|
||||
FALSE, /* deviceOutputUsesInterrupts */
|
||||
};
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ console_fns ns16550_fns =
|
||||
ns16550_write_support_int, /* deviceWrite */
|
||||
ns16550_initialize_interrupts, /* deviceInitialize */
|
||||
ns16550_write_polled, /* deviceWritePolled */
|
||||
NULL, /* deviceSetAttributes */
|
||||
FALSE, /* deviceOutputUsesInterrupts */
|
||||
};
|
||||
|
||||
@@ -64,6 +65,7 @@ console_fns ns16550_fns_polled =
|
||||
ns16550_write_support_polled, /* deviceWrite */
|
||||
ns16550_init, /* deviceInitialize */
|
||||
ns16550_write_polled, /* deviceWritePolled */
|
||||
NULL, /* deviceSetAttributes */
|
||||
FALSE, /* deviceOutputUsesInterrupts */
|
||||
};
|
||||
|
||||
@@ -598,8 +600,8 @@ static int ns16550_inbyte_nonblocking_polled(
|
||||
ucLineStatus = (*getReg)(pNS16550, NS16550_LINE_STATUS);
|
||||
if(ucLineStatus & SP_LSR_RDY) {
|
||||
cChar = (*getReg)(pNS16550, NS16550_RECEIVE_BUFFER);
|
||||
return((int)cChar);
|
||||
return (int)cChar;
|
||||
} else {
|
||||
return(-1);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ typedef struct _console_fns {
|
||||
int (*deviceWrite)(int minor, const char *buf, int len);
|
||||
void (*deviceInitialize)(int minor);
|
||||
void (*deviceWritePolled)(int minor, char cChar);
|
||||
int (*deviceSetAttributes)(int minor, const struct termios *t);
|
||||
int deviceOutputUsesInterrupts;
|
||||
} console_fns;
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@ console_fns z85c30_fns =
|
||||
z85c30_write_support_int, /* deviceWrite */
|
||||
z85c30_initialize_interrupts, /* deviceInitialize */
|
||||
z85c30_write_polled, /* deviceWritePolled */
|
||||
NULL, /* deviceSetAttributes */
|
||||
FALSE, /* deviceOutputUsesInterrupts */
|
||||
};
|
||||
|
||||
@@ -79,6 +80,7 @@ console_fns z85c30_fns_polled =
|
||||
z85c30_write_support_polled, /* deviceWrite */
|
||||
z85c30_init, /* deviceInitialize */
|
||||
z85c30_write_polled, /* deviceWritePolled */
|
||||
NULL, /* deviceSetAttributes */
|
||||
FALSE, /* deviceOutputUsesInterrupts */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user