Skip to content

Commit

Permalink
More functions regarding #35
Browse files Browse the repository at this point in the history
  • Loading branch information
MirMohammadd committed Mar 21, 2024
1 parent f750c80 commit cec5f8f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions include/mm/io.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* MIT License
*
* Copyright (c) 2024 Heisenberg
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* @author Heisenberg
* @file io.h
*/
#ifndef ASM_H
#define ASM_H

#include <mm/mm.h>
#include <mm/paging.h>
#include <types.h>

extern uint8_t inportb(uint16_t port);
extern uint16_t inportw(uint16_t port);
extern void outportb(uint16_t port, uint8_t val);
extern void halt();
void enable_int();
void disable_int();

#endif

0 comments on commit cec5f8f

Please sign in to comment.