Further parse AHCI information.
Send an IDENTIFY command to each drive and set up a hook to handle interrupts.
This commit is contained in:
parent
4e1888bd24
commit
0f0e39d1e9
25 changed files with 721 additions and 90 deletions
22
zion/object/port.h
Normal file
22
zion/object/port.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include "lib/linked_list.h"
|
||||
#include "object/kernel_object.h"
|
||||
#include "usr/zcall_internal.h"
|
||||
|
||||
class Port : public KernelObject {
|
||||
public:
|
||||
Port();
|
||||
|
||||
z_err_t Write(const ZMessage& msg);
|
||||
z_err_t Read(ZMessage& msg);
|
||||
|
||||
private:
|
||||
struct Message {
|
||||
uint64_t type;
|
||||
uint64_t num_bytes;
|
||||
uint8_t* bytes;
|
||||
};
|
||||
|
||||
LinkedList<Message> pending_messages_;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue