Mon 14 Oct 23:06:38 CEST 2024
This commit is contained in:
		
							parent
							
								
									69d68cc839
								
							
						
					
					
						commit
						7c12d04cae
					
				
							
								
								
									
										19
									
								
								kernel/serial.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								kernel/serial.h
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | ||||||
|  | /*
 | ||||||
|  | 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(); | ||||||
|  | 
 | ||||||
|  | char serial_read(int port_no); | ||||||
|  | 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 | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user