feat: implemented ide read write operations

This commit is contained in:
2021-02-05 23:23:26 +01:00
parent b156509da1
commit a4651ca9d9
9 changed files with 286 additions and 62 deletions

View File

@@ -55,6 +55,8 @@
#define PCI_CONFIG_MAX_GRANT 0x3E
#define PCI_CONFIG_MAX_LATENCY 0x3F
#define PCI_INTERRUPT_LINE_DISABLED 0xff
typedef struct pci_driver pci_driver;
typedef struct pci_device pci_device;
@@ -80,7 +82,7 @@ typedef struct {
u8 present: 1;
u8 is_io_space: 1;
u8 type: 2;
u8 prefetchable: 3;
u8 prefetchable: 1;
} bar_info;
typedef struct pci_device {