| 
									
										
										
										
											2018-02-24 10:00:00 +01:00
										 |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*
 | 
					
						
							|  |  |  |  * return a byte from a port. | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2018-02-26 15:02:25 +01:00
										 |  |  | unsigned char port_byte_in(unsigned short port); | 
					
						
							| 
									
										
										
										
											2018-02-24 10:00:00 +01:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * write a byte of data to a port. | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2018-02-26 15:02:25 +01:00
										 |  |  | void port_byte_out(unsigned short port, unsigned char data); | 
					
						
							| 
									
										
										
										
											2018-02-24 10:00:00 +01:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * return a word of data from a port. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | unsigned short port_word_in(unsigned short port); | 
					
						
							|  |  |  | /*
 | 
					
						
							|  |  |  |  * write a word of data to a port. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | void port_word_out(unsigned short port, unsigned short data); |