[zion] Move port calls to new syscall process.
This commit is contained in:
parent
77bb3acfb4
commit
bd431b94ce
11 changed files with 118 additions and 175 deletions
|
|
@ -113,17 +113,15 @@ SYS5(ChannelSend, z_cap_t, chan_cap, uint64_t, num_bytes, const void*, data,
|
|||
SYS5(ChannelRecv, z_cap_t, chan_cap, uint64_t*, num_bytes, void*, data,
|
||||
uint64_t*, num_caps, z_cap_t*, caps);
|
||||
|
||||
[[nodiscard]] z_err_t ZPortCreate(z_cap_t* port_cap);
|
||||
[[nodiscard]] z_err_t ZPortSend(z_cap_t port_cap, uint64_t num_bytes,
|
||||
const void* data, uint64_t num_caps,
|
||||
z_cap_t* caps);
|
||||
[[nodiscard]] z_err_t ZPortRecv(z_cap_t port_cap, uint64_t num_bytes,
|
||||
void* data, uint64_t num_caps, z_cap_t* caps,
|
||||
uint64_t* actual_bytes, uint64_t* actual_caps);
|
||||
[[nodiscard]] z_err_t ZPortPoll(z_cap_t port_cap, uint64_t num_bytes,
|
||||
void* data, uint64_t num_caps, z_cap_t* caps,
|
||||
uint64_t* actual_bytes, uint64_t* actual_caps);
|
||||
[[nodiscard]] z_err_t ZIrqRegister(uint64_t irq_num, z_cap_t* port_cap);
|
||||
SYS1(PortCreate, z_cap_t*, port_cap);
|
||||
SYS5(PortSend, z_cap_t, port_cap, uint64_t, num_bytes, const void*, data,
|
||||
uint64_t, num_caps, z_cap_t*, caps);
|
||||
SYS5(PortRecv, z_cap_t, port_cap, uint64_t*, num_bytes, void*, data, uint64_t*,
|
||||
num_caps, z_cap_t*, caps);
|
||||
SYS5(PortPoll, z_cap_t, port_cap, uint64_t*, num_bytes, void*, data, uint64_t*,
|
||||
num_caps, z_cap_t*, caps);
|
||||
|
||||
SYS2(IrqRegister, uint64_t, irq_num, z_cap_t*, port_cap);
|
||||
|
||||
[[nodiscard]] z_err_t ZCapDuplicate(z_cap_t cap_in, z_cap_t* cap_out);
|
||||
|
||||
|
|
|
|||
|
|
@ -54,12 +54,12 @@ const uint64_t kZionChannelSend = 0x41;
|
|||
const uint64_t kZionChannelRecv = 0x42;
|
||||
const uint64_t kZionChannelSendRecv = 0x43;
|
||||
|
||||
#define Z_PORT_CREATE 0x50
|
||||
#define Z_PORT_SEND 0x51
|
||||
#define Z_PORT_RECV 0x52
|
||||
#define Z_PORT_POLL 0x53
|
||||
const uint64_t kZionPortCreate = 0x50;
|
||||
const uint64_t kZionPortSend = 0x51;
|
||||
const uint64_t kZionPortRecv = 0x52;
|
||||
const uint64_t kZionPortPoll = 0x53;
|
||||
|
||||
#define Z_IRQ_REGISTER 0x58
|
||||
const uint64_t kZionIrqRegister = 0x58;
|
||||
|
||||
#define Z_IRQ_PCI_BASE 0x30
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue