kv2: initialize memory manager, early pci devices
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
parent
e5b55a6ba5
commit
a252a3f8e9
58 changed files with 1270 additions and 505 deletions
|
|
@ -329,13 +329,16 @@ typedef volatile struct {
|
|||
|
||||
} PACKED hbafis_t;
|
||||
|
||||
struct sata_device {
|
||||
struct pci_device *controller;
|
||||
uint8_t port;
|
||||
struct ahci_host {
|
||||
struct pci_device *device;
|
||||
hbamem_t *abar;
|
||||
};
|
||||
|
||||
struct sata_device {
|
||||
struct ahci_host *host;
|
||||
uint8_t port;
|
||||
size_t sector_size;
|
||||
size_t sector_count;
|
||||
hbamem_t *abar;
|
||||
};
|
||||
|
||||
int ahci_access_sectors(struct sata_device *dev, paddr_t lba, uint16_t count, paddr_t buf, bool write);
|
||||
|
|
|
|||
Loading…
Reference in a new issue