[Zion][Denali] Move to MSI for AHCI devices.
This will allow us to properly do interrupts for XHCI devices in the future. Also move PCI device header parsing to a shared library. Get rid of the old irq register format which supplied an irq number and instead pass the appropriate irq number back out to the caller.
This commit is contained in:
parent
c645405ca8
commit
f26fd73116
21 changed files with 371 additions and 124 deletions
|
|
@ -258,6 +258,7 @@ pub const kZionPortSend: u64 = 81;
|
|||
pub const kZionPortRecv: u64 = 82;
|
||||
pub const kZionPortPoll: u64 = 83;
|
||||
pub const kZionIrqRegister: u64 = 88;
|
||||
pub const kZionMsiIrqRegister: u64 = 89;
|
||||
pub const kZionEndpointCreate: u64 = 96;
|
||||
pub const kZionEndpointSend: u64 = 97;
|
||||
pub const kZionEndpointRecv: u64 = 98;
|
||||
|
|
@ -478,6 +479,12 @@ pub struct ZIrqRegisterReq {
|
|||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct ZMsiIrqRegisterReq {
|
||||
pub irq_num: *mut u64,
|
||||
pub port_cap: *mut z_cap_t,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct ZEndpointCreateReq {
|
||||
pub endpoint_cap: *mut z_cap_t,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue