git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: add dummy process to keep scheduler busy
[lunaix-os.git]
/
lunaix-os
/
includes
/
hal
/
pci.h
diff --git
a/lunaix-os/includes/hal/pci.h
b/lunaix-os/includes/hal/pci.h
index 24c4e2963b804ab0497ca0a0f95f6498a3ad96fd..95d5fb80f0c17d12b1c1028c1977d1a0dbdd4480 100644
(file)
--- a/
lunaix-os/includes/hal/pci.h
+++ b/
lunaix-os/includes/hal/pci.h
@@
-56,6
+56,16
@@
typedef unsigned int pci_reg_t;
// PCI device header format
// Ref: "PCI Local Bus Specification, Rev.3, Section 6.1"
// PCI device header format
// Ref: "PCI Local Bus Specification, Rev.3, Section 6.1"
+#define BAR_TYPE_MMIO 0x1
+#define BAR_TYPE_CACHABLE 0x2
+
+struct pci_base_addr
+{
+ uint32_t start;
+ uint32_t size;
+ uint32_t type;
+};
+
struct pci_device
{
struct llist_header dev_chain;
struct pci_device
{
struct llist_header dev_chain;
@@
-64,6
+74,7
@@
struct pci_device
uint32_t cspace_base;
uint32_t msi_loc;
uint16_t intr_info;
uint32_t cspace_base;
uint32_t msi_loc;
uint16_t intr_info;
+ struct pci_base_addr bar[6];
};
// PCI Configuration Space (C-Space) r/w:
};
// PCI Configuration Space (C-Space) r/w: