@@ -11,25 +11,25 @@ where
11
11
M : Mapper + Clone ,
12
12
{
13
13
/// Capability Registers Length
14
- pub caplength : single:: ReadWrite < CapabilityRegistersLength , M > ,
14
+ pub caplength : single:: ReadOnly < CapabilityRegistersLength , M > ,
15
15
/// Host Controller Interface Version Number
16
- pub hciversion : single:: ReadWrite < InterfaceVersionNumber , M > ,
16
+ pub hciversion : single:: ReadOnly < InterfaceVersionNumber , M > ,
17
17
/// Structural Parameters 1
18
- pub hcsparams1 : single:: ReadWrite < StructuralParameters1 , M > ,
18
+ pub hcsparams1 : single:: ReadOnly < StructuralParameters1 , M > ,
19
19
/// Structural Parameters 2
20
- pub hcsparams2 : single:: ReadWrite < StructuralParameters2 , M > ,
20
+ pub hcsparams2 : single:: ReadOnly < StructuralParameters2 , M > ,
21
21
/// Structural Parameters 3
22
- pub hcsparams3 : single:: ReadWrite < StructuralParameters3 , M > ,
22
+ pub hcsparams3 : single:: ReadOnly < StructuralParameters3 , M > ,
23
23
/// Capability Parameters 1
24
- pub hccparams1 : single:: ReadWrite < CapabilityParameters1 , M > ,
24
+ pub hccparams1 : single:: ReadOnly < CapabilityParameters1 , M > ,
25
25
/// Doorbell Offset
26
- pub dboff : single:: ReadWrite < DoorbellOffset , M > ,
26
+ pub dboff : single:: ReadOnly < DoorbellOffset , M > ,
27
27
/// Runtime Register Space Offset
28
- pub rtsoff : single:: ReadWrite < RuntimeRegisterSpaceOffset , M > ,
28
+ pub rtsoff : single:: ReadOnly < RuntimeRegisterSpaceOffset , M > ,
29
29
/// Capability Parameters 2
30
- pub hccparams2 : single:: ReadWrite < CapabilityParameters2 , M > ,
30
+ pub hccparams2 : single:: ReadOnly < CapabilityParameters2 , M > ,
31
31
/// Virtualization Based Trusted IO Register Space Offset
32
- pub vtiosoff : single:: ReadWrite < VirtualizationBasedTrustedIoRegisterSpaceOffset , M > ,
32
+ pub vtiosoff : single:: ReadOnly < VirtualizationBasedTrustedIoRegisterSpaceOffset , M > ,
33
33
}
34
34
impl < M > Capability < M >
35
35
where
51
51
{
52
52
macro_rules! m {
53
53
( $offset: expr) => {
54
- single:: ReadWrite :: new( mmio_base + $offset, mapper. clone( ) )
54
+ single:: ReadOnly :: new( mmio_base + $offset, mapper. clone( ) )
55
55
} ;
56
56
}
57
57
0 commit comments