mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2025-12-18 04:44:35 +03:00
lesson 20, preliminar
This commit is contained in:
11
20-interrupts-timer/drivers/ports.h
Normal file
11
20-interrupts-timer/drivers/ports.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef PORTS_H
|
||||
#define PORTS_H
|
||||
|
||||
#include "../cpu/types.h"
|
||||
|
||||
unsigned char port_byte_in (u16 port);
|
||||
void port_byte_out (u16 port, u8 data);
|
||||
unsigned short port_word_in (u16 port);
|
||||
void port_word_out (u16 port, u16 data);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user