forked from Imagelibrary/rtems
adapt _write_ functions to new prototype
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2010-04-10 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
|
||||||
|
|
||||||
|
* libchip/serial/serial.h, serial/mc68681.c, serial/mc68681_p.h,
|
||||||
|
serial/ns16550.c, serial/ns16550_p.h, serial/serial.h,
|
||||||
|
serial/z85c30.c, serial/z85c30_p.h: adapt _write_ functions to new
|
||||||
|
prototype
|
||||||
|
|
||||||
2010-04-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
2010-04-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
||||||
|
|
||||||
* libchip/ide/ata.c: Change missed use of ATA_USE_OLD_EXCEPTIONS to
|
* libchip/ide/ata.c: Change missed use of ATA_USE_OLD_EXCEPTIONS to
|
||||||
|
|||||||
@@ -448,10 +448,10 @@ MC68681_STATIC void mc68681_initialize_interrupts(int minor)
|
|||||||
* Console Termios output entry point when using interrupt driven output.
|
* Console Termios output entry point when using interrupt driven output.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
MC68681_STATIC int mc68681_write_support_int(
|
MC68681_STATIC ssize_t mc68681_write_support_int(
|
||||||
int minor,
|
int minor,
|
||||||
const char *buf,
|
const char *buf,
|
||||||
int len
|
size_t len
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
uint32_t Irql;
|
uint32_t Irql;
|
||||||
@@ -481,7 +481,7 @@ MC68681_STATIC int mc68681_write_support_int(
|
|||||||
(*setReg)(pMC68681_port, MC68681_TX_BUFFER, *buf);
|
(*setReg)(pMC68681_port, MC68681_TX_BUFFER, *buf);
|
||||||
rtems_interrupt_enable(Irql);
|
rtems_interrupt_enable(Irql);
|
||||||
|
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -491,10 +491,10 @@ MC68681_STATIC int mc68681_write_support_int(
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
MC68681_STATIC int mc68681_write_support_polled(
|
MC68681_STATIC ssize_t mc68681_write_support_polled(
|
||||||
int minor,
|
int minor,
|
||||||
const char *buf,
|
const char *buf,
|
||||||
int len
|
size_t len
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int nwrite = 0;
|
int nwrite = 0;
|
||||||
|
|||||||
@@ -279,16 +279,16 @@ MC68681_STATIC void mc68681_write_polled(
|
|||||||
|
|
||||||
MC68681_STATIC void mc68681_initialize_interrupts(int minor);
|
MC68681_STATIC void mc68681_initialize_interrupts(int minor);
|
||||||
|
|
||||||
MC68681_STATIC int mc68681_write_support_int(
|
MC68681_STATIC ssize_t mc68681_write_support_int(
|
||||||
int minor,
|
int minor,
|
||||||
const char *buf,
|
const char *buf,
|
||||||
int len
|
size_t len
|
||||||
);
|
);
|
||||||
|
|
||||||
MC68681_STATIC int mc68681_write_support_polled(
|
MC68681_STATIC ssize_t mc68681_write_support_polled(
|
||||||
int minor,
|
int minor,
|
||||||
const char *buf,
|
const char *buf,
|
||||||
int len
|
size_t len
|
||||||
);
|
);
|
||||||
|
|
||||||
MC68681_STATIC int mc68681_inbyte_nonblocking_polled(
|
MC68681_STATIC int mc68681_inbyte_nonblocking_polled(
|
||||||
|
|||||||
@@ -531,10 +531,10 @@ NS16550_STATIC void ns16550_process( int minor)
|
|||||||
*
|
*
|
||||||
* Returns always zero.
|
* Returns always zero.
|
||||||
*/
|
*/
|
||||||
NS16550_STATIC int ns16550_write_support_int(
|
NS16550_STATIC ssize_t ns16550_write_support_int(
|
||||||
int minor,
|
int minor,
|
||||||
const char *buf,
|
const char *buf,
|
||||||
int len
|
size_t len
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
console_tbl *c = &Console_Port_Tbl [minor];
|
console_tbl *c = &Console_Port_Tbl [minor];
|
||||||
@@ -659,10 +659,10 @@ NS16550_STATIC void ns16550_initialize_interrupts( int minor)
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
NS16550_STATIC int ns16550_write_support_polled(
|
NS16550_STATIC ssize_t ns16550_write_support_polled(
|
||||||
int minor,
|
int minor,
|
||||||
const char *buf,
|
const char *buf,
|
||||||
int len
|
size_t len
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int nwrite = 0;
|
int nwrite = 0;
|
||||||
|
|||||||
@@ -171,16 +171,16 @@ NS16550_STATIC int ns16550_negate_DTR(
|
|||||||
|
|
||||||
NS16550_STATIC void ns16550_initialize_interrupts(int minor);
|
NS16550_STATIC void ns16550_initialize_interrupts(int minor);
|
||||||
|
|
||||||
NS16550_STATIC int ns16550_write_support_int(
|
NS16550_STATIC ssize_t ns16550_write_support_int(
|
||||||
int minor,
|
int minor,
|
||||||
const char *buf,
|
const char *buf,
|
||||||
int len
|
size_t len
|
||||||
);
|
);
|
||||||
|
|
||||||
NS16550_STATIC int ns16550_write_support_polled(
|
NS16550_STATIC ssize_t ns16550_write_support_polled(
|
||||||
int minor,
|
int minor,
|
||||||
const char *buf,
|
const char *buf,
|
||||||
int len
|
size_t len
|
||||||
);
|
);
|
||||||
|
|
||||||
NS16550_STATIC int ns16550_inbyte_nonblocking_polled(
|
NS16550_STATIC int ns16550_inbyte_nonblocking_polled(
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ typedef struct _console_fns {
|
|||||||
int (*deviceFirstOpen)(int major, int minor, void *arg);
|
int (*deviceFirstOpen)(int major, int minor, void *arg);
|
||||||
int (*deviceLastClose)(int major, int minor, void *arg);
|
int (*deviceLastClose)(int major, int minor, void *arg);
|
||||||
int (*deviceRead)(int minor);
|
int (*deviceRead)(int minor);
|
||||||
int (*deviceWrite)(int minor, const char *buf, int len);
|
ssize_t (*deviceWrite)(int minor, const char *buf, size_t len);
|
||||||
void (*deviceInitialize)(int minor);
|
void (*deviceInitialize)(int minor);
|
||||||
void (*deviceWritePolled)(int minor, char cChar);
|
void (*deviceWritePolled)(int minor, char cChar);
|
||||||
int (*deviceSetAttributes)(int minor, const struct termios *t);
|
int (*deviceSetAttributes)(int minor, const struct termios *t);
|
||||||
|
|||||||
@@ -743,10 +743,10 @@ Z85C30_STATIC void z85c30_initialize_interrupts(
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Z85C30_STATIC int z85c30_write_support_int(
|
Z85C30_STATIC ssize_t z85c30_write_support_int(
|
||||||
int minor,
|
int minor,
|
||||||
const char *buf,
|
const char *buf,
|
||||||
int len)
|
size_t len)
|
||||||
{
|
{
|
||||||
uint32_t Irql;
|
uint32_t Irql;
|
||||||
uint32_t ulCtrlPort;
|
uint32_t ulCtrlPort;
|
||||||
@@ -778,7 +778,7 @@ Z85C30_STATIC int z85c30_write_support_int(
|
|||||||
(*setReg)(ulCtrlPort, SCC_WR0_SEL_WR8, *buf);
|
(*setReg)(ulCtrlPort, SCC_WR0_SEL_WR8, *buf);
|
||||||
rtems_interrupt_enable(Irql);
|
rtems_interrupt_enable(Irql);
|
||||||
|
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -820,10 +820,10 @@ Z85C30_STATIC int z85c30_inbyte_nonblocking_polled(
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Z85C30_STATIC int z85c30_write_support_polled(
|
Z85C30_STATIC ssize_t z85c30_write_support_polled(
|
||||||
int minor,
|
int minor,
|
||||||
const char *buf,
|
const char *buf,
|
||||||
int len)
|
size_t len)
|
||||||
{
|
{
|
||||||
int nwrite=0;
|
int nwrite=0;
|
||||||
|
|
||||||
|
|||||||
@@ -381,16 +381,16 @@ Z85C30_STATIC int z85c30_negate_DTR(
|
|||||||
|
|
||||||
Z85C30_STATIC void z85c30_initialize_interrupts(int minor);
|
Z85C30_STATIC void z85c30_initialize_interrupts(int minor);
|
||||||
|
|
||||||
Z85C30_STATIC int z85c30_write_support_int(
|
Z85C30_STATIC ssize_t z85c30_write_support_int(
|
||||||
int minor,
|
int minor,
|
||||||
const char *buf,
|
const char *buf,
|
||||||
int len
|
size_t len
|
||||||
);
|
);
|
||||||
|
|
||||||
Z85C30_STATIC int z85c30_write_support_polled(
|
Z85C30_STATIC ssize_t z85c30_write_support_polled(
|
||||||
int minor,
|
int minor,
|
||||||
const char *buf,
|
const char *buf,
|
||||||
int len
|
size_t len
|
||||||
);
|
);
|
||||||
|
|
||||||
Z85C30_STATIC int z85c30_inbyte_nonblocking_polled(
|
Z85C30_STATIC int z85c30_inbyte_nonblocking_polled(
|
||||||
|
|||||||
Reference in New Issue
Block a user