38#ifdef LOSCFG_KERNEL_CONSOLE
50 struct inode *devInode;
59 RingbufSendCB *ringbufSendCB;
64 struct termios consoleTermios;
67extern CONSOLE_CB *OsGetConsoleByID(
INT32 consoleId);
68extern CONSOLE_CB *OsGetConsoleByTaskID(
UINT32 taskId);
70extern BOOL is_nonblock(
const CONSOLE_CB *consoleCB);
71extern BOOL IsConsoleOccupied(
const CONSOLE_CB *consoleCB);
75#ifdef LOSCFG_CONSOLE_UNIFIED_SERIAL_OUTPUT
79extern INT32 FilepOpen(
struct file *filep,
const struct file_operations_vfs *fops);
80extern INT32 FilepClose(
struct file *filep,
const struct file_operations_vfs *fops);
81extern INT32 FilepRead(
struct file *filep,
const struct file_operations_vfs *fops,
CHAR *buffer,
size_t bufLen);
82extern INT32 FilepWrite(
struct file *filep,
const struct file_operations_vfs *fops,
const CHAR *buffer,
size_t bufLen);
83extern INT32 FilepPoll(
struct file *filep,
const struct file_operations_vfs *fops, poll_table *fds);
84extern INT32 FilepIoctl(
struct file *filep,
const struct file_operations_vfs *fops,
INT32 cmd,
unsigned long arg);
85extern INT32 GetFilepOps(
const struct file *filep,
struct file **privFilep,
const struct file_operations_vfs **fops);
#define STATIC
Definition common_def.h:57
#define INLINE
Definition common_def.h:65
#define CONSOLE_FIFO_SIZE
Definition console.h:67
STATIC INLINE INT32 ConsoleUpdateFd(VOID)
Definition console_pri.h:89
signed int INT32
Definition los_typedef.h:55
#define VOID
Definition los_typedef.h:88
unsigned char UINT8
Definition los_typedef.h:50
unsigned int UINT32
Definition los_typedef.h:52
char CHAR
Definition los_typedef.h:58
size_t BOOL
Definition los_typedef.h:83
Definition los_ringbuf.h:67
Definition los_event.h:164