basekernel/kernel/serial.h

21 lines
565 B
C
Raw Normal View History

2024-10-14 23:08:18 +02:00
/*
Copyright (C) 2016-2019 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file LICENSE for details.
*/
#ifndef SERIAL_H
#define SERIAL_H
void serial_init();
2024-12-09 20:43:25 +01:00
int serial_read(int port_no);
int serial_read_nonblock(int port_no);
2024-10-14 23:08:18 +02:00
void serial_write(int port_no, char a);
int serial_device_probe( int unit, int *blocksize, int *nblocks, char *info );
int serial_device_read( int unit, void *data, int length, int offset );
int serial_device_write( int unit, const void *data, int length, int offset );
#endif