Store device's names and add more startup messages
This commit is contained in:
@ -20,11 +20,17 @@
|
||||
|
||||
#include <list.h>
|
||||
|
||||
#ifndef SERIAL_H
|
||||
#define SERIAL_H
|
||||
|
||||
struct serial_dev {
|
||||
//TODO add more functions and attributes here
|
||||
char *name;
|
||||
int (*putc)(char);
|
||||
struct dlist_node list;
|
||||
};
|
||||
|
||||
int serial_register_device(struct serial_dev *sdev);
|
||||
struct serial_dev *serial_first_device();
|
||||
|
||||
#endif /* SERIAL_H */
|
||||
|
Reference in New Issue
Block a user