1
0

serial: Allow more than one serial device to be registered

This commit is contained in:
2012-10-07 10:28:33 -04:00
parent 828beb45bd
commit 0b7e14c69b
2 changed files with 13 additions and 5 deletions

View File

@ -18,9 +18,12 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <list.h>
struct serial_dev {
//TODO add more functions and attributes here
int (*putc)(char);
struct dlist_node list;
};
int serial_register_device(struct serial_dev *sdev);