x86: add GDT and IDT
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
parent
f10e3f31d7
commit
e5b55a6ba5
25 changed files with 1211 additions and 13 deletions
19
include/drivers/pci.h
Normal file
19
include/drivers/pci.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef _PCI_H_
|
||||
#define _PCI_H_
|
||||
|
||||
#include <kernel/common.h>
|
||||
|
||||
struct pci_device {
|
||||
u64 class;
|
||||
u64 vendor;
|
||||
u8 bus;
|
||||
u8 slot;
|
||||
u8 func;
|
||||
paddr_t bar0;
|
||||
paddr_t bar1;
|
||||
paddr_t bar2;
|
||||
paddr_t bar3;
|
||||
} PACKED;
|
||||
|
||||
#endif /* _PCI_H_ */
|
||||
Loading…
Reference in a new issue