mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Add new CONSOLE_DRIVER macro which takes just the name of the console
and constructs the member function names with CPPs' ##. Do not include the checkc entry as it is going away.
This commit is contained in:
parent
8aed7613bd
commit
56de0c9a17
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158945
@ -86,6 +86,16 @@ struct consdev {
|
||||
}; \
|
||||
DATA_SET(cons_set, name##_consdev)
|
||||
|
||||
#define CONSOLE_DRIVER(name) \
|
||||
static struct consdev name##_consdev = { \
|
||||
.cn_probe = name##_cnprobe, \
|
||||
.cn_init = name##_cninit, \
|
||||
.cn_term = name##_cnterm, \
|
||||
.cn_getc = name##_cngetc, \
|
||||
.cn_putc = name##_cnputc, \
|
||||
}; \
|
||||
DATA_SET(cons_set, name##_consdev)
|
||||
|
||||
/* Other kernel entry points. */
|
||||
void cninit(void);
|
||||
void cninit_finish(void);
|
||||
|
Loading…
Reference in New Issue
Block a user